Forum Discussion
%IMpact
- 4 years ago
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
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
_3
I've attached a PBIX for further assistance as well.
Thanks,
Theo
- Lobs4 years ago
Helper II
Thank you, ill give this a try, however my SurveyMix and PTG NPS are measures would the approach be the same?
- TheoC4 years ago
Community Champion
Lobs yeah, should be the same logic just change the SUM (...) to the [measure]. Everything else should be good. If it doesn't work, I'll send through solution when I'm in front of computer next.
Cheers,
Theo
- Lobs4 years ago
Helper II
Finally, i can sleep 🙂 the ignoring filters paved the way, appreciate it