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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Issue with percentage metric over sorted column

Good morning!

 

I would like your help with the next issue.

I'm working on Power BI consuming data from a SSAS Tabular Model. In this model, i have defined a metric like this:

somePercentage := divide([someCountMetric];calculate([someCountMetric];allselected(anyTable[anyColumn])))

At first, anyColumn wasn't sorted and the metric worked just fine. The issue began when i applied a sort over anyColumn by anotherColumn in the same table. At this point, when consumig the model from Excel, it worked fine and showed the exact calculated values, but in Power BI all the values where shown as 100%, so i had to remove the sorting from the column for it to work fine

It is not the first time that i see this behavior and i would like any light about this.

 

Thanks for your help.

1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@Anonymous 

 

You may take a look at the post below.

https://community.powerbi.com/t5/Desktop/Sort-By-Column-changes-the-Measure-results/m-p/91258#M38515

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-chuncz-msft
Community Support
Community Support

@Anonymous 

 

You may take a look at the post below.

https://community.powerbi.com/t5/Desktop/Sort-By-Column-changes-the-Measure-results/m-p/91258#M38515

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

¡Thanks a lot! Right to the point.

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.