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
ok_kpop
Frequent Visitor

Creating Total Row for Matrix Table

I'm trying to create a total row in a matrix table similar to the Excel example pictured below. I want the sum of "A" and "B" for each day as well as the absolute average % difference of "A". Formula I used in Excel to calculate is pictured up top. I've also added my dummy pbix file below. I've spent hours trying to do this and not the best as creating measures. Please help ASAP!

 

image001 (1).png

Dummy File 

2 REPLIES 2
ok_kpop
Frequent Visitor

Hi there. Thanks for responding. The totals for "A" and "B" were perfect. But, ideally, I would like to keep the original % difference values with the negative values in the table and just do the absolute average as the total like in the picture below. Is that possible to do? I've also attached my updated dummy file. Test.png

 

Dummy File 2 

Kishore_KVN
Super User
Super User

Hello @ok_kpop ,

You have to create measures instead of taking those columns directly. Create three measures as below and drag them in the values field of the visual. So the three measures are as below:

Total A = SUMX(Sheet1,Sheet1[A])
Total B = SUMX(Sheet1,Sheet1[B])
Difference Average = AVERAGEX(Sheet1,ABS(Sheet1[% Difference]))

Your output looks like below:

Kishore_KVN_0-1689320916632.png

Dont forget to turnon row sub totals at last. 

 

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

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.