Forum Discussion
Lodewyk
Helper I
2 years agoCalculate Sales Tracking against target
Hi I have 2 tables namely the target table and sales table. the target table indicates the resource, with the target and whether it is monthly or annually. When the target is annual, the SUM ...
- 2 years ago
Here is the PBIX file
Anonymous
2 years agoNot applicable
Hi Lodewyk
Please try the following measure:
Month target =
IF (
CALCULATE (
SELECTEDVALUE ( Sales[Sales] ) > SELECTEDVALUE ( Target[Target] ),
FILTER ( 'Sales', SELECTEDVALUE ( Target[Period] ) = "Monthly" )
),
"yes",
"no"
)
Year target =
IF (
CALCULATE (
SUM ( Sales[Sales] ) > SELECTEDVALUE ( Target[Target] ),
FILTER ( ALL ( 'Sales' ), SELECTEDVALUE ( Target[Period] ) = "Annual" )
),
"yes",
"no"
)
Result:
Best Regards,
Jayleny
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.