Forum Discussion
GhadaMehrez
Helper III
4 years agoadd filter to measure formula
Please I need support here I have measure calculating percentage of {Total estimated cost} per each strategy category but now I need to add filter to the measure to give me the percentage also b...
GhadaMehrez
Helper III
4 years agov-chenwuz-msft Thanks for your support,
But the output of the measure is wrong it gives me 132% as the screen below:
I tried to update the measure to rely on another measure {Duration Flag}
but it gives error could you support :
% AB = DIVIDE ( [ETC This Year], CALCULATE ( [ETC This Year], FILTER ( ALLSELECTED ( Projects ), [Duration Flag] Short Term ) ) )
v-chenwuz-msft
Community Support
4 years agoHi GhadaMehrez ,
This:
%AB =
VAR _all =
CALCULATE (
[ETC This Year],
FILTER ( ALLSELECTED ( Projects ), [no.month] <= 12 )
)
VAR _s =
SUMMARIZE (
Projects,
[fls_strategythemename],
[pum_name],
"etc", [etc this year],
"ab", DIVIDE ( [etc this year], _all )
)
RETURN
SUMX ( _s, [ab] )
Best Regards
Community Support Team _ chenwu zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- GhadaMehrez4 years ago
Helper III
thanks a lot for your support but still the output not correct it give me above 100%
I'm attaching link of simplified PBI i hope if you can access it and help.
Thanks in advance.
https://drive.google.com/file/d/1emP0cQwYm9OHvqQrveVkwR69AH5TzG1S/view?usp=sharing