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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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.


Go to My LinkedIn Page


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.


Go to My LinkedIn Page


Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

Top Solution Authors