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

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.

Reply
YunJ
Post Prodigy
Post Prodigy

Measure result changed when add a sort column.

Hi,

I create a measure as following:

Capture.PNG

Now I want to sort Sub-Category. So I add a index column in the Dim Sub-Category table, and sort Sub-Category by index.

But as you can see, the result of the measure I created changed.. which is not what I want.. 

Capture3.PNG

Capture2.PNG

Thanks a lot for your time.

1 ACCEPTED SOLUTION
az38
Community Champion
Community Champion

@YunJ 

try

Total_red_incluBLANK = 
CALCULATE(SUM(MU_red[Sales]),ALL('Sub-Category'[Sub-Category], 'Sub-Category'[Index]))

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

View solution in original post

2 REPLIES 2
az38
Community Champion
Community Champion

@YunJ 

try

Total_red_incluBLANK = 
CALCULATE(SUM(MU_red[Sales]),ALL('Sub-Category'[Sub-Category], 'Sub-Category'[Index]))

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Thanks a lot @az38 

Helpful resources

Announcements
October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.

Top Kudoed Authors