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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
krrish116
Resolver II
Resolver II

Aggregate value based on two columns in Matrix Visual

Hi @amitchandak ,

I have to show some data in a matrix visual

where in rows it contains Group , Division , Branch 

In columns it contains Value , Target.

 

Group     Division     Branch            Value    Target

A               IT             Admin               25         60

                                 Users                  10         50

                                 Workers             25         100

                                               

B             Btech          Admin              35             50

                                 Users                25             100

 

C            CSC             Admin              45          100

                                  Users               35             50

                                  Contracts         55            75

 

For Every Group they had a different values and targets.

Now i have to show aggregate in that matrix visual like

for A  -    Value(25+10+25) / Target(60+50+100)

for  B -  Value(35+25)/ Target(50+100)

etc.,

 

So final result is 

Group     Division     Branch            Value    Target

A               IT             Admin               25         60

                                 Users                  10         50

                                 Workers             25         100

                                Aggregate         total value / total target                      

B             Btech          Admin              35             50

                                 Users                25             100

                                 Aggregate         total value / total target

C            CSC             Admin              45          100

                                  Users               35             50

                                  Contracts         55            75

                                 Aggregate         total value / total target

 

Please help me in solving this.

Thanks,

Krishh

1 ACCEPTED SOLUTION

@krrish116 , Can update your final result with the numbers. Not able to get that yet 

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

View solution in original post

5 REPLIES 5
amitchandak
Super User
Super User

@krrish116 , that  you should get as subtotal ?

or add new measure

 


divide(sum(Table[Value]), sum(Table[Target]))

 

or

 

calculate(divide(sum(Table[Value]), sum(Table[Target])), filter(allselected(Table), Table[Group] =max(Table[Group])))

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

Hi @amitchandak ,

I want aggregate for each and every group in the place of subtotal?,

and the value and target are mesures not columns.

Thanks,

Krishhh

 

@krrish116 , do you want to remove the subtotal of division?  Under subtotal, you have an option for Per Row Level Switch on and remove subtotal for division and branch as per need

 

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

Hi @amitchandak ,

The Value and Target and Subtotal is coming only for Branch.

The Aggregate mesures are not working on matrix visual, if i put that measure on visual then it is showing Blank.

Please help me to sort it out .

I need Aggregate for the bottom of each branch i.e Total Value / Total Target.

Plese let me know, if is not possible due to limitations then i will leave this issue.

Thanks for your support in every issue.

Thanks,

Krishh..

@krrish116 , Can update your final result with the numbers. Not able to get that yet 

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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