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.
I have 2 measures:
Solved! Go to Solution.
Cases as of today = SUM('!Data'[Cases])
Cases as 20 days ago =
var _lastdate= max(Calendar[Dates])
var _total=CALCULATE(SUM('!Data'[Cases]),DATESINPERIOD(Calendar[Dates],_lastdate,-20,DAY))
return _total
Did I answer your question? Mark my post as a solution!
Appreciate with a kudos 🙂
@Anonymous Could you please elaborate on creating proper Calendar, please? I fixed my typo in formula, tried to use your code. Still doesn't work
Cases as of today = SUM('!Data'[Cases])
Cases as 20 days ago =
var _lastdate= max(Calendar[Dates])
var _total=CALCULATE(SUM('!Data'[Cases]),DATESINPERIOD(Calendar[Dates],_lastdate,-20,DAY))
return _total
Did I answer your question? Mark my post as a solution!
Appreciate with a kudos 🙂
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 |
---|---|
47 | |
24 | |
20 | |
15 | |
12 |
User | Count |
---|---|
55 | |
48 | |
43 | |
19 | |
18 |