Forum Discussion
Anonymous
5 years agoNot applicable
How Formula Only Works for Parent, not Child Level?
Hi Guys, I am pretty new to power BI and please help me for this formula. I'd like to create the formula Needed to selling to meet Target =100-parent sales, but I don't want the formula works for ch...
- Anonymous5 years ago
Hi Anonymous ,
Based on your description, you can create a measure as follows.
Measure =
var x1=100-CALCULATE(SUM(P_C[Sales]),ALLEXCEPT(P_C,P_C[Parent]))
return
IF(HASONEVALUE(P_C[Sales]),BLANK(),x1)Then you can create a matrix visual.Result:
Hope that's what you were looking for.
Best Regards,
Yuna
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
5 years agoNot applicable
Hi Anonymous ,
Based on your description, you can create a measure as follows.
Measure =
var x1=100-CALCULATE(SUM(P_C[Sales]),ALLEXCEPT(P_C,P_C[Parent]))
return
IF(HASONEVALUE(P_C[Sales]),BLANK(),x1)
Then you can create a matrix visual.
Result:
Hope that's what you were looking for.
Best Regards,
Yuna
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.