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

Create a 2 x 2 matrix populated with 4 metrics and column / row labels?

Hi, 

 

I'm trying to create a 2x2 matrix with 4 metrics that have been created.  

  • The reason is due to space limitations of KPIs for a scorecard.

 

Essentially I would Like it to look like the below photoshopped image

slacey7070_0-1648130462261.png

 

Out of the Box, If I put these 4 metrics as values in a matrix it's displayed like this. 

slacey7070_1-1648130613350.png

 

If I select 'show on rows' under the values tab, it will put them all in one row as columns. 

slacey7070_2-1648130676581.png

 

I've tried a few other options with multi-row cards, and having 2 tables, but this is the only option I really have to minimize the space of the information to get it in the real estate I have to work with. 

 

 

Thank you for any help on this one!

 

 

 

 

 

 

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

Hi, @Anonymous 

You need to add a table 'Table2' :

1.png

Then try formulas as below:

Vs LY = 
SWITCH (
    SELECTEDVALUE ( Table2[Type] ),
    "Var$", [Var$ vs LY],
    "Var%", FORMAT ( [Var% vs LY], "Percent" )
)
Vs Budget = 
SWITCH (
    SELECTEDVALUE ( Table2[Type] ),
    "Var$", [Var$ vs Budget],
    "Var%", FORMAT ( [Var% vs Budget], "percent" )
)

1.png

 

 

Best Regards,
Community Support Team _ Eason

View solution in original post

2 REPLIES 2
v-easonf-msft
Community Support
Community Support

Hi, @Anonymous 

You need to add a table 'Table2' :

1.png

Then try formulas as below:

Vs LY = 
SWITCH (
    SELECTEDVALUE ( Table2[Type] ),
    "Var$", [Var$ vs LY],
    "Var%", FORMAT ( [Var% vs LY], "Percent" )
)
Vs Budget = 
SWITCH (
    SELECTEDVALUE ( Table2[Type] ),
    "Var$", [Var$ vs Budget],
    "Var%", FORMAT ( [Var% vs Budget], "percent" )
)

1.png

 

 

Best Regards,
Community Support Team _ Eason

amitchandak
Super User
Super User

@Anonymous , refer to this video on calculation group, I have discussed a few formats like this 

Calculation Groups- Measure Slicer, Measure Header Grouping, Measure to dimension conversion. Complex Table display : https://youtu.be/qMNv67P8Go0

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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