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 currently have the following measure that counts the number of appointments. :
Date | Number of appointments |
11-07-2021 | 100 |
12-07-2021 | 97 |
@Sohan
Since you are using today, to next 6 month, you will only have 1 value in the measure.
Change change Today to max(Date) in the measure:
Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.
This measure:
Rolling 6 month = CALCULATE(COUNT(Afspraken[Datum afspraak]),
DATESINPERIOD(Afspraken[Datum afspraak], MAX(Afspraken[Datum afspraak]), 6, MONTH))
Seems to give the following result, which unfortunately isn't what I'm looking for. Am I doing something wrong?
@Sohan , Create a new column like this with dates
new column =
var _max = Table[Date]
return
calculate(countrows(filter(Table, Table[Date] <= _max && Table[Date] >= date(year(_max), month(_max)-6, day(_max)))))
or summarize with dates
Thanks for your responde @amitchandak!
I'm getting the following result with this:
Any idea why this happens?
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 |
---|---|
108 | |
100 | |
78 | |
64 | |
58 |
User | Count |
---|---|
148 | |
111 | |
94 | |
84 | |
67 |