Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
jonasr
Advocate I
Advocate I

Duplication of rows in column sorted by another column

Hi, I noticed strange behaviour when trying to sort stacked bar chart by an overall sum of stacked values.

 

I set the variable in Axis (name) to sort by column (in Modelling) created by the following command where the c var cointains the sum of the stacked vars:

 

SortingCol = RANKX(ALL('table'),'table'[c],,DESC)

 

When the soring is set, it duplicates the values in the chart. As can be seen in the example below, the correct display is in the top chart (before setting the sorting) and the incorrect result after the sorting is in the bottom chart.

 

error_vs_correct.png

 

Any idea what is causing this behaviour and how to solve it?

 

Thanks,

 

Jonas

1 REPLY 1
v-haibl-msft
Employee
Employee

@jonasr

 

I tested with following simple data and did not see the strange behavior. Could you please give some more details about your data to repro it?

Duplication of rows in column sorted by another column_1.jpg

 

Duplication of rows in column sorted by another column_2.jpg

 

Best Regards,

Herbert

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.