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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
rveerasamy
Helper III
Helper III

Matrix Visual

In matrix table visualization we have account name added in row fields, sales amount added in values , Category (mettal, robots) added in column fields. So the sales values splitted into mettal and robots. We want to display count of fleet id next to account name column, Can you please guide is there any possibility or workarounds?Capture22.JPG

3 REPLIES 3
v-yalanwu-msft
Community Support
Community Support

Hi, @rveerasamy ;

Is the above answer helpful to you? If so, Would you mind accept the helpful replies as solutions? Then we are able to close the thread. More people who have the same requirement will find the solution quickly and benefit here. Thank you.

Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

v-yalanwu-msft
Community Support
Community Support

Hi, @rveerasamy ;

You could create a new column to add a “Fleet id" row ,then create a measure as follows:

1.create a new table

new =
VAR _cate =
    SUMMARIZE ( 'Table', [ Category] )
VAR _fleet =
    SUMMARIZE ( 'Table', "Category", "Fleet id" )
RETURN
    UNION ( _cate, _fleet )

2.new measure

Measure =
VAR _count =
    CALCULATE (
        COUNT ( 'Table'[ID] ),
        ALLEXCEPT ( 'Table', 'Table'[account name] ))
VAR _sum =
    CALCULATE (
        SUM ( [sales amount ] ),
        FILTER (
            ALLEXCEPT ( 'Table', 'Table'[account name] ),
            [ Category] = MAX ( 'new'[ Category] )))
VAR _value =
    IF ( MAX ( 'new'[ Category] ) = "Fleet id", _count, _sum )
RETURN
    IF (
        HASONEVALUE ( 'new'[ Category] ),
        _value,
        CALCULATE (
            SUM ( [sales amount ] ),
            ALLEXCEPT ( 'Table', 'Table'[account name] )
        ) + _count)

The final output is shown below:

vyalanwumsft_0-1629958509969.png

Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

mahoneypat
Microsoft Employee
Microsoft Employee

I think you are describing an "asymmetric" matrix.  Please see the 2nd approach described in this article (Calculation Groups).

Building a Matrix with Asymmetrical Columns and Rows in Power BI - Excelerator BI

 

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.