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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.