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
Anonymous
Not applicable

Sort matrix by column from another table

Hi, guys!

 

Please find below the use case from the end user :

 

1) Enter a formula.

2) In a matrix, get all formulas that contain at least the same RM (Raw materials) that the formula selected.

3) Sort the matrix by RM to see first the RM of the formula selected (in this case : 1749, 633 B, 712 R 56), then other (no importance of order for others).

Capture d’écran1.png

For part 2) I duplicate the data table, to filter one with the formula selected, and use the other to display the final result.

 

Capture d’écran3.png

Then i create a column "Composition" which concatenates all the values of RM for each formula and used the following measure :

 

Capture d’écran2.png

 

I have some trouble for the part 3).

It look like we can't sort by a measure, only column. And i have no relation between tables because of the filter formula selection.

 

Is it possible ?

Thanks,

Louis

 

 

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous,

I think you can't get input text from filter without any data table source field. AFAIK, power bi filter effect is based on the filtered row contexts, I don't think you can use Dax expression to interaction with these custom strings)

Row Context & Filter Context in DAX / Blogs / Perficient

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Top Solution Authors