Forum Discussion

EvaHello's avatar
EvaHello
Helper I
11 months ago
Solved

Why is my sorting not working?

Hi all,

 

Im a bit confused why my sorting isnt working - im probably missing something very obvious.  This is my data set for my matrix table.  Level 2 and also Level 1 order is in my rows, then Type and the amounts are all in my values section.  I have done it this way so i can apply conditional formatting to the rows.  

 

I have based Type on the level 1 order so its working for this, but for some reason my level 2 is showing as Net Revenue, then Gross Profit % then Gross Profit.  I want the order to be Net Revenue, Gross Profit and then Gross Profit %.   Can anyone suggest why this is happening and how to do the sorting so it is in the right order?

 

Data set below :

 

Level 2Type MTD ActualLevel 1 order
Net RevenueTotal 1,716.71
Net RevenueApples 382.22
Net RevenuePears 304.63
Net RevenueBananas 289.94
Net RevenuePlums 646.75
Net RevenueOranges 93.36
Net RevenueOther (0.0)7
Gross ProfitTotal 670.28
Gross ProfitApples 175.79
Gross ProfitPears 136.810
Gross ProfitBananas 116.911
Gross ProfitPlums 199.312
Gross ProfitOranges 41.613
Gross ProfitOther (0.0)14
Gross Profit Margin %Total 39.0%15
Gross Profit Margin %Apples 46.0%16
Gross Profit Margin %Pears 44.9%17
Gross Profit Margin %Bananas 40.3%18
Gross Profit Margin %Plums 30.8%19
Gross Profit Margin %Oranges 44.5%20

 

5 Replies

  • v-hashadapu's avatar
    v-hashadapu
    Community Support

    Hi EvaHello , Thank you for reaching out to the Microsoft Fabric Community Forum.

     

    I reproduced the scenario on my end using sample data and it worked successfully. To help you better understand the implementation, I’ve attached the .pbix file for your reference. Please take a look at it and let me know your observations.

     

    Thank you for being part of the Microsoft Fabric Community!

  • v-hashadapu's avatar
    v-hashadapu
    Community Support

    Hi EvaHello , hope you are doing great. May we know if your issue is solved or if you are still experiencing difficulties. Please share the details as it will help the community, especially others with similar issues.

  • v-hashadapu's avatar
    v-hashadapu
    Community Support

    Hi EvaHello , Hope you're doing okay! May we know if it worked for you, or are you still experiencing difficulties? Let us know — your feedback can really help others in the same situation.

  • v-hashadapu's avatar
    v-hashadapu
    Community Support

    Hi EvaHello , Hope you're doing fine. Can you confirm if the problem is solved or still persists? Sharing your details will help others in the community.