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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Jos13
Helper III
Helper III

Power BI Table visual Formatting

Hi,

I have a table with sales details of different products. When I drag required columns in the power bi table visual, I get following output.

req 1.png

Is it possible to get a visual like the following in power BI ?

req2.png

 

Your help is much appreciated.

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

Hi,

 

Please take following steps:

1)Try this measure:

Total = 
IF (
    ISINSCOPE ( 'Table'[Category] )
        && MAX ( 'Table'[Product] )
            = MINX (
                FILTER (
                    ALLSELECTED ( 'Table' ),
                    'Table'[Category] IN FILTERS ( 'Table'[Category] )
                ),
                'Table'[Product]
            ),
    CALCULATE (
        SUM ( 'Table'[Sales] ),
        FILTER (
            ALLSELECTED ( 'Table' ),
            'Table'[Category] IN FILTERS ( 'Table'[Category] )
        )
    )
)

2)Choose matrix visual, the result shows:

1.PNG

See my attached pbix file.

 

Best Regards,

Giotto

View solution in original post

2 REPLIES 2
v-gizhi-msft
Community Support
Community Support

Hi,

 

Please take following steps:

1)Try this measure:

Total = 
IF (
    ISINSCOPE ( 'Table'[Category] )
        && MAX ( 'Table'[Product] )
            = MINX (
                FILTER (
                    ALLSELECTED ( 'Table' ),
                    'Table'[Category] IN FILTERS ( 'Table'[Category] )
                ),
                'Table'[Product]
            ),
    CALCULATE (
        SUM ( 'Table'[Sales] ),
        FILTER (
            ALLSELECTED ( 'Table' ),
            'Table'[Category] IN FILTERS ( 'Table'[Category] )
        )
    )
)

2)Choose matrix visual, the result shows:

1.PNG

See my attached pbix file.

 

Best Regards,

Giotto

amitchandak
Super User
Super User

@Jos13 , Refer

If one of format fits in https://www.burningsuit.co.uk/blog/2019/04/7-secrets-of-the-matrix-visual/

 

I doubt you can get exactly.

Try creating a measure like this and see if isinscope can help

Sub Total = Calculate(sum(Table[Sales]), allexpect(Table[Category]))

 

https://www.kasperonbi.com/use-isinscope-to-get-the-right-hierarchy-level-in-dax/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.