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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

Using different string formatting in specific rows in Matrix

My matrix roughly looks like this: 

KPIUnit1Unit2Unit3
KPI10.2%0.4%0.6%
KPI20.3%0.5%0.7%
KPI32.0%3.0%4.0%

 

I need KPI2's units to be in pp format. so in this case, KPI2:Unit1 should read 0.3pp and all the same for the other units; but it should stay the same for the other KPIs. The data is all in one table, and must be the same order as above. 

 

The resulting matrix visual that I'm looking for would roughly look like this: 

KPIUnit1Unit2Unit3
KPI10.2%0.4%0.6%
KPI20.3pp0.5pp0.7pp
KPI32.0%3.0%4.0%

 

Any help would be appreciated.

1 ACCEPTED SOLUTION
NaveenGandhi
Memorable Member
Memorable Member

Hi @Anonymous 

Pleasue use below DAX.

Unit1 % =

Var unit = DIVIDE(sum('Table'[Unit1]),CALCULATE(sum('Table'[Unit1]),ALL('Table')))

RETURN if(SELECTEDVALUE('Table'[KPI])="KPI2",FORMAT(unit,"0.0"&"pp"),FORMAT(unit,"Percent"))
NaveenGandhi_0-1721329125073.png



Let me know if thist helps.

If this post helps, then please consider Accept it as the solution to help the others find it more quickly. Appreciate you kudos!!

Follow me on LinkedIn!!!



View solution in original post

1 REPLY 1
NaveenGandhi
Memorable Member
Memorable Member

Hi @Anonymous 

Pleasue use below DAX.

Unit1 % =

Var unit = DIVIDE(sum('Table'[Unit1]),CALCULATE(sum('Table'[Unit1]),ALL('Table')))

RETURN if(SELECTEDVALUE('Table'[KPI])="KPI2",FORMAT(unit,"0.0"&"pp"),FORMAT(unit,"Percent"))
NaveenGandhi_0-1721329125073.png



Let me know if thist helps.

If this post helps, then please consider Accept it as the solution to help the others find it more quickly. Appreciate you kudos!!

Follow me on LinkedIn!!!



Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.