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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors