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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Sampathkumar_v
Helper II
Helper II

How to sort the column in "Desc" order using drill through option?

Hi Folks,

I need to sort by DESC order (Practice column) using Discount in Matrix view.

I have two columns "Project Division" and "Practice" (Project Division column I have make the sequence of BU1,BU2,BU3,BU4,etc till BU10) While creating matrix view using column "Project Division" and "Practice" data shows as below.

Sampathkumar_v_0-1683781650868.png

 

When I am doing sort by Discount my project devision sequence also get changed. I want project division should have same sequence what is there at view. how to sort by desc order using Discount by Practice column?

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

Hi @Sampathkumar_v 

You can create a measure.

e.g 

Measure = IF(ISINSCOPE('Table'[Column2]),RANKX(ALLSELECTED('Table'[Column2]),CALCULATE(SUM('Table'[Column3])),,DESC,Dense))

Then put it into the matrix, and close all "text wrap" and put the widenth of the measure to '0'

vxinruzhumsft_0-1684119832267.png

and select sort by 'measure' and 'sort ascending'

vxinruzhumsft_1-1684119977506.png

 

Output

vxinruzhumsft_2-1684119990782.png

Best Regards!

Yolo Zhu

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

Hi

Thank you it's working as expected. 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @Sampathkumar_v 

You can create a measure.

e.g 

Measure = IF(ISINSCOPE('Table'[Column2]),RANKX(ALLSELECTED('Table'[Column2]),CALCULATE(SUM('Table'[Column3])),,DESC,Dense))

Then put it into the matrix, and close all "text wrap" and put the widenth of the measure to '0'

vxinruzhumsft_0-1684119832267.png

and select sort by 'measure' and 'sort ascending'

vxinruzhumsft_1-1684119977506.png

 

Output

vxinruzhumsft_2-1684119990782.png

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

Hi

Thank you it's working as expected. 

Anonymous
Not applicable

Hi @Sampathkumar_v 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards!

Yolo Zhu

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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 Solution Authors