Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi all,
I feel like I am missing something very obvious but can't put my finger on it. Any help would be greatly appreciated.
My first measure is this:
Closed = CALCULATE(
DISTINCTCOUNTNOBLANK(
Fact[Case ID]
),
FILTER(
Fact,
Fact[Categories] = "New" && SUM(Fact[Revenue])>0
),
)
This counts the number of "New" cases where Revenue is +ve.
Then I tried to do the same thing for last year, but getting a blank:
Closed LY = CALCULATE(
DISTINCTCOUNTNOBLANK(
Fact[Case ID]
),
FILTER(
Fact,
Fact[Categories] = "New" && SUM(Fact[Revenue])>0
),
SAMEPERIODLASTYEAR(Calendar[Date])
)
Please help!
Solved! Go to Solution.
Try
Closed LY =
CALCULATE(
[Closed],
SAMEPERIODLASTYEAR(Calendar[Date])
)
Try
Closed LY =
CALCULATE(
[Closed],
SAMEPERIODLASTYEAR(Calendar[Date])
)
Thank you so much! I feel like kicking myself now 😁
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
106 | |
79 | |
71 | |
66 |
User | Count |
---|---|
141 | |
107 | |
100 | |
82 | |
74 |