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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
Anonymous
Not applicable

Matrix-Format Values by Row

Hello-

 

I am trying to format each row values seperatly like the KPI Matrix allows but I need to not use the KPI Matrix; please help:

 

anicholls_0-1595441397182.png

 

1 ACCEPTED SOLUTION
v-alq-msft
Community Support
Community Support

Hi, @Anonymous 

 

Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.

 

Table:

f1.png

 

A measure can only have a data type. You may create a measure to make it display different text like below.

FormatMeasure = 
IF(
    ISINSCOPE('Table'[Name]),
    SWITCH(
        SELECTEDVALUE('Table'[Name]),
        "A",SUM('Table'[Score])&"!",
        "B",SUM('Table'[Score])&"@",
        "C",SUM('Table'[Score])&"#",
        "D",SUM('Table'[Score])&"$",
        "E",SUM('Table'[Score])&"%",
        "F",SUM('Table'[Score])&"^",
        SUM('Table'[Score])
    ),
    IF(
        ISINSCOPE('Table'[Class]),
        SWITCH(
            SELECTEDVALUE('Table'[Class]),
            "c1",SUM('Table'[Score])&"c1",
            "c2",SUM('Table'[Score])&"c2",
            "c3",SUM('Table'[Score])&"c3",
            SUM('Table'[Score])
        ),
        IF(
            ISINSCOPE('Table'[Grade]),
            SWITCH(
                SELECTEDVALUE('Table'[Grade]),
                "g1",SUM('Table'[Score])&"g1",
                "g2",SUM('Table'[Score])&"g2",
                SUM('Table'[Score])
            ),
            SUM('Table'[Score])
        )
    )
)

 

Result:

f2.png

 

Best Regards

Allan

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-alq-msft
Community Support
Community Support

Hi, @Anonymous 

 

Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.

 

Table:

f1.png

 

A measure can only have a data type. You may create a measure to make it display different text like below.

FormatMeasure = 
IF(
    ISINSCOPE('Table'[Name]),
    SWITCH(
        SELECTEDVALUE('Table'[Name]),
        "A",SUM('Table'[Score])&"!",
        "B",SUM('Table'[Score])&"@",
        "C",SUM('Table'[Score])&"#",
        "D",SUM('Table'[Score])&"$",
        "E",SUM('Table'[Score])&"%",
        "F",SUM('Table'[Score])&"^",
        SUM('Table'[Score])
    ),
    IF(
        ISINSCOPE('Table'[Class]),
        SWITCH(
            SELECTEDVALUE('Table'[Class]),
            "c1",SUM('Table'[Score])&"c1",
            "c2",SUM('Table'[Score])&"c2",
            "c3",SUM('Table'[Score])&"c3",
            SUM('Table'[Score])
        ),
        IF(
            ISINSCOPE('Table'[Grade]),
            SWITCH(
                SELECTEDVALUE('Table'[Grade]),
                "g1",SUM('Table'[Score])&"g1",
                "g2",SUM('Table'[Score])&"g2",
                SUM('Table'[Score])
            ),
            SUM('Table'[Score])
        )
    )
)

 

Result:

f2.png

 

Best Regards

Allan

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi, @Anonymous 

 

If you take the answer of someone, please mark it as the solution to help the other members who have same problems find it more quickly. If not, let me know and I'll try to help you further. Thanks.

 

Best Regards

Allan

Greg_Deckler
Community Champion
Community Champion

@Anonymous - Not sure what the KPI Matrix allows but generally you would create a Measure that returns different values in particular instances within the matrix and you base your conditional formatting on that measure. It is sort of kind of like the Complex Selector only probably a bit fancier. https://community.powerbi.com/t5/Quick-Measures-Gallery/The-Complex-Selector/m-p/1116633#M534



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Thank you; however, I am not trying to apply conidtional formatting I understand that. I am trying to change the format of the value by row. One line might be a % the other a number, the next a text. The KPI Matrix Vis allows you to do this through a drop down menu for each row item as shown below; I can not figure out how to recreate this on my own:

 

anicholls_0-1595443751684.png

 

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

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.