Forum Discussion
Plan vs realization
- Anonymous2 years ago
Hi al1981 ,
If we add loops as a filter with salesperson as the filter, then we can make some changes to the original DAX.
PlanCount = CALCULATE (COUNTROWS('Plan'), ALLEXCEPT(Plan,'Plan'[Cycle],'Plan'[Sales Rep]))Hope it helps!
Best regards,
Community Support Team_ Tom ShenIf this post helps then please consider Accept it as the solution to help the other members find it more quickly.
Dear Anonymous you were correct. Solution offered by bhanu_gautam is something i already tried and i get all counted. Anyway, yours is closer but i would need that calculaton respects one filter more: Cycle. As in plan we have cycle 1 or 2 for same account (1st half a year or 2nd half) it should respect it as now it sums cycle and 2! But i am closer 🙂
Hi al1981 ,
If we add loops as a filter with salesperson as the filter, then we can make some changes to the original DAX.
PlanCount = CALCULATE
(COUNTROWS('Plan'),
ALLEXCEPT(Plan,'Plan'[Cycle],'Plan'[Sales Rep]))
Hope it helps!
Best regards,
Community Support Team_ Tom Shen
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.