Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi,
I have a table with four hierarchical levels, and each level has its own sort column. When I apply sorting for each level in Power BI Desktop based on its corresponding sort column, it works correctly. However, when connecting Excel to the same Power BI model published to the service, the sorting doesnโt behave as expected โ all blank values are getting grouped together.
Data :
Expectation :
In Excel :
Can anyone please help on this ?
Thank you !
@PoojaReddy When you say "apply sorting for each level in Power BI Desktop based on its corresponding sort column" how are you doing that exactly? Because you can't define Sort by columns with the data that you have because you have multiple different sort values for blank values and that is not allowed.

Hi @Greg_Deckler,
Thank you for the response !
We use Tabular Editor to make changes in the model hence it is getting treated with a warning.
Our concern is mainly on the excel. Even though we have same sort order number for blanks it doesnt work in excel.
This is a situation where Power BI Desktop and Excel handle things differently, even when working with the same model. When you use Tabular Editor to set the sort order, Power BI Desktop allows multiple blank values to have the same sort key, but Excel is stricter and groups all blanks together, ignoring the sort metadata.
You can try these options:
1. Replace blank values with placeholders like ~ or Undefined so Excel can tell them apart, and assign each a unique sort number.
2. Create a composite sort column, such as combining LevelName and SortOrder, and sort your display column by this new field to ensure uniqueness.
3. Check how Excel is applying the sort, especially if youโre using a Pivot Table, as it may use its own sorting logic in addition to the modelโs sort order.
Regards,
Yugandhar.
| User | Count |
|---|---|
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |