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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
simpletech_data
Regular Visitor

Matrix with several measures grouped by topic

Hello guys! I would like if it is possible and how is the best way to create the following matrix in Power BI.

 

matrix example.png

 

Each row represents a topic:
1st row - revenue related measures

2nd row - investment related measures

3rd row - profit related measures

and it goes on...

 

And for each row, there is 5 columns to calculate these topics in different ways. For exemple:
For revenue:
- The actual day revenue
- The average from last 7 days

- MTD revenue

- Monthly goal

- Difference between MTD and goal

 

This repeats for every row.

 

I tried to use the matrix visual but I couldn't find the settings to transform it like the picture.

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

Hi @simpletech_data ,

 

You can use the following formula in matrix to fill in the result of 1, 2 and so on with the result you want to calculate.

diff_ =
IF (
    ISFILTERED ( 'Table'[Attribute] )
        && MAX ( 'Table'[Attribute] ) = "Difference",
    1,
    IF (
        ISFILTERED ( 'Table'[Attribute] )
            && MAX ( 'Table'[Attribute] ) = "Goal",
        2,
        0
    )
)

 

vkongfanfmsft_0-1719305005245.png

Best Regards,
Adamk Kong

 

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

1 REPLY 1
v-kongfanf-msft
Community Support
Community Support

Hi @simpletech_data ,

 

You can use the following formula in matrix to fill in the result of 1, 2 and so on with the result you want to calculate.

diff_ =
IF (
    ISFILTERED ( 'Table'[Attribute] )
        && MAX ( 'Table'[Attribute] ) = "Difference",
    1,
    IF (
        ISFILTERED ( 'Table'[Attribute] )
            && MAX ( 'Table'[Attribute] ) = "Goal",
        2,
        0
    )
)

 

vkongfanfmsft_0-1719305005245.png

Best Regards,
Adamk Kong

 

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

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.