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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors