Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago

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:

 

 

This is how the matrix is constructed:

 

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

 

 

Is there any way to do this?

3 Replies

  • 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's avatar
      Anonymous
      Not applicable

      I'll do a copy and send it ASAP