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

Sort matrix by measure results

Hi !!

I have a Matrix constructed from a KPI table, basically, I have the raw data with 1M rows, then I have the actual calculations like 70 KPI metrics or so, to summarize this in different periods and I have some formulas like:

 

 

 

Selection (Formatted) = 
IF(HASONEVALUE('Metrics and Customization'[Metric (List)]),
SWITCH(VALUES('Metrics and Customization'[Metric (List)]),
"KPI1", [KPI1 (Count)],
"KPI1%", FORMAT([KPI1],"Percent"),
"KPI2", FORMAT([KPI2],"Standard"),
"KPI3", [KPI3]...
"KPI70",[KPI70],0))

 

 

 

It works as mi matrix only have in Rows the dimension I created for "KPI list" and in values I only have "Selection Formatted" showing all 70 KPIs in a simple table, now the issue is coming when I adding something in the Columns like "Company Name" and the columns are sorted A-Z based on the company name, but I want to sort them based on one specific KPI but there are no options in the Sort by:

 

WorkingChepe_0-1627576662483.png

 

This is how the matrix is constructed:

WorkingChepe_1-1627576711951.png

 

I want to be able to sort this in 2 out of the 70 KPIs, Company Name cases and Company Name time

Like the matrix showing left to right the company with the most cases and not alphabetically, if I throw all 70 KPIs individually I have the option to sort by the specific KPI

 

WorkingChepe_2-1627576997221.png

 

Is there any way to do this?

3 REPLIES 3
v-angzheng-msft
Community Support
Community Support

please share your sample pbix file's link hereso that i may work out with a workaround

Best Regards,
Community Support Team _ Zeon Zheng

Anonymous
Not applicable

I'll do a copy and send it ASAP

lbendlin
Super User
Super User

Only if you have row totals in your matrix visual.

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.