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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Anonymous
Not applicable

Matrix with different number format by row/column

Hi  I have raw data as below and want to display the data as a matrix as shown in next picture. The user requirment is, some Columns such as Column Sim should show numbers in percentage for all KPIs and some of the KPI (such as KPI4)should show numbers in percentage in first two (Target, Actual Column).   How to achieve this? 

yalesg_0-1652770240844.png

yalesg_1-1652770271894.png

 

1 ACCEPTED SOLUTION
Arul
Super User
Super User

@Anonymous ,

First you need to pivot the column based on values and then write the below measure,

 

Arul_0-1652779195191.png

 

Target_ = IF(SELECTEDVALUE('row/column'[KPI]) = "K4",FORMAT(SUM('row/column'[Target]),"Percent"),SUMX('row/column','row/column'[Target]))
Actual_ = IF(SELECTEDVALUE('row/column'[KPI]) = "K4",FORMAT(SUM('row/column'[Actual]),"Percent"),SUMX('row/column','row/column'[Actual]))

 

Thanks,

Arul





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


View solution in original post

1 REPLY 1
Arul
Super User
Super User

@Anonymous ,

First you need to pivot the column based on values and then write the below measure,

 

Arul_0-1652779195191.png

 

Target_ = IF(SELECTEDVALUE('row/column'[KPI]) = "K4",FORMAT(SUM('row/column'[Target]),"Percent"),SUMX('row/column','row/column'[Target]))
Actual_ = IF(SELECTEDVALUE('row/column'[KPI]) = "K4",FORMAT(SUM('row/column'[Actual]),"Percent"),SUMX('row/column','row/column'[Actual]))

 

Thanks,

Arul





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.