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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
SaranyaDurairaj
New Member

How to calculate grand difference (similar to grand total) in matrix view

Hi Members,

 

I'm working on a requirement that demands grand difference (similar to grand total) in matrix view.

How to acheive difference column that is in red font below. I tried matrix view and I was able to get result except for difference column. Appreciate if there is a better way to acheive this. Thanks!

 

Dataset: Table1

daterevenueqtyorders
1/1/201810011
1/2/201810112
1/3/201810213
1/4/201810314
1/5/201810415
1/6/201810516
1/7/201810617
1/8/201810718
1/9/201810819
1/10/2018109110
1/11/2018110111
1/12/2018111112
1/1/2019112113
1/2/2019113114
1/3/2019114115
1/4/2019115116
1/5/2019116117
1/6/2019117118
1/7/2019118119
1/8/20191191

20

 

Result:

 

GPI,ROI,TT are all calculated measure.

ROI = Sum('Table1'[revenue])

TT = COUNT('Table1'[qty])

GPI = DIVIDE([ROI],[TT])

 

KPI20182019DIFFERENCE
GPI105.5115.510
ROI1266924342
TT1284
1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your semantic model looks like, but one of ways is to create Calculation Groups.

Please check the below picture and the attached pbix file.

 

Jihwan_Kim_0-1714306672702.pngJihwan_Kim_1-1714306682334.png

 

Jihwan_Kim_2-1714306769281.png

 

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

1 REPLY 1
Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your semantic model looks like, but one of ways is to create Calculation Groups.

Please check the below picture and the attached pbix file.

 

Jihwan_Kim_0-1714306672702.pngJihwan_Kim_1-1714306682334.png

 

Jihwan_Kim_2-1714306769281.png

 

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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