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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
AMAN560
Frequent Visitor

facing proble in sorting a matrix bt a measure

Hello Everyone,

I am facing issues in sorting a matrix by a measure. The problem is as follows:

 

Table 1
Column AColumn BColumn CColumn D
1223A112
1223A13
1223B142
1223A11
2236A13
2236F15
2236F17
4652F16
4652F14
4652A11
4652A13

 

Table 2
ValuesIndex
Column C   1
Column D   2
Measure 1   3

 

Where:

Measure 1 =SUMX(Table1,[Column C] + [Column D])

I have a matrix with the following Field Placement:

Rows: Column A, Column B

Column: Values (Table 2)

Values: Measure 2

Where:

Measure 2=IF(Table2[Index]=1,table1[Column C],IF(Table2[Index=2,Table1[Column D],IF(Table2[Index]=3,[Measure1])))

I got the matrix as follows:

 

Matrix
Column AColumn BColumn CColumn DMeasure 1
1223A31619
1223B14243
2236A134
2236F21214
4652A246
4652F21012

 

Now I want to sort this matrix by Measure 1

4 REPLIES 4
v-luwang-msft
Community Support
Community Support

Hi  @AMAN560 ,

Could you pls share your pbix file ?

I directly use table1 to create a table, if sorted according to measure1, directly click can:

vluwangmsft_0-1627632172923.pngvluwangmsft_1-1627632186301.png

I was unable to create the same matrix as you did based on the steps you provided, and the matrix I created is as follows:

vluwangmsft_2-1627632241016.png

Best Regards

Lucien

 

 

amitchandak
Super User
Super User

@AMAN560 , I think You should be able to see an option in three dots to sort on measure 1

NO

In my case, the measure name won't show up in 3 dots to sort 

 

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.