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
Anonymous
Not applicable

Total in matrix

Hi all,

In Power BI I have a matrix where I would like to add total records: is there any way the total for some fields could be a lookup that gets a value I already have in the data (in the data I already have a total record, I need the matrix to show the total just for layout reasons)?
I need to obtain something like this, where the total is the value for which "subcategory1" and "subcategory2" have the same value:

Immagine.png
I successfully had this situation using Report builder for Power BI and now I'd like to replicate the format in Power BI.
Thank you!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

I'm not sure how you get this visual and the total value, better to share some sample data to us if you don't have any Confidential Information.

My current thought is to create two measures to replace value columns, such as below.

Measure = IF(SELECTEDVALUE('Table'[subcategory2])="A"||SELECTEDVALUE('Table'[subcategory2])="B",BLANK(),SUM('Table'[value1]))
Measure 2 = IF(SELECTEDVALUE('Table'[subcategory2])="A"||SELECTEDVALUE('Table'[subcategory2])="B",BLANK(),SUM('Table'[value2]))

Results comparison: 

1.PNG

It's just a thought, the values may not be accurate, and later we can filter and calculate the correct values by adding some conditions.

 

Best Regards,

Jay

Community Support Team _ Jay Wang

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

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

 

I'm not sure how you get this visual and the total value, better to share some sample data to us if you don't have any Confidential Information.

My current thought is to create two measures to replace value columns, such as below.

Measure = IF(SELECTEDVALUE('Table'[subcategory2])="A"||SELECTEDVALUE('Table'[subcategory2])="B",BLANK(),SUM('Table'[value1]))
Measure 2 = IF(SELECTEDVALUE('Table'[subcategory2])="A"||SELECTEDVALUE('Table'[subcategory2])="B",BLANK(),SUM('Table'[value2]))

Results comparison: 

1.PNG

It's just a thought, the values may not be accurate, and later we can filter and calculate the correct values by adding some conditions.

 

Best Regards,

Jay

Community Support Team _ Jay Wang

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

Anonymous
Not applicable

I don't understand the two subcategories as it makes the visual not really make sense becasue the total is totalling a subcategory two that now you cannot see. So I assume I am not understanding properly. 

 

However, my assumption would be to remove the second subcategory column and simply create a splicer to the side for the subcategory.

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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.