Forum Discussion
%IMpact
Hi,
Im trying to get the impact of my survey mix to the percent to goal total using a measure.
But i always end up hitting the survey mix on the same row/line of the current PTG value instead of the total.
In Excel it would normally be calculated like this
Hi Lobs
To get the "cell locked" like you would in Excel for the total (i.e. if total was in A1 you would use $A$1), you need to tell Power BI to ignore all filters in your measure. You can use the below:
_mImpact =
VAR _1 = SUM ('Table'[PTG NPS] )
VAR _2 = CALCULATE ( SUM ('Table'[% Survey Mix] ) , ALL ('Table' ) )
VAR _3 = DIVIDE ( _1 , _2 )
RETURN
_3Output will be like below:I've attached a PBIX for further assistance as well.
Thanks,
Theo
5 Replies
- TheoCCommunity Champion
Hi Lobs
To get the "cell locked" like you would in Excel for the total (i.e. if total was in A1 you would use $A$1), you need to tell Power BI to ignore all filters in your measure. You can use the below:
_mImpact =
VAR _1 = SUM ('Table'[PTG NPS] )
VAR _2 = CALCULATE ( SUM ('Table'[% Survey Mix] ) , ALL ('Table' ) )
VAR _3 = DIVIDE ( _1 , _2 )
RETURN
_3Output will be like below:I've attached a PBIX for further assistance as well.
Thanks,
Theo
- LobsHelper II
Thank you, ill give this a try, however my SurveyMix and PTG NPS are measures would the approach be the same?