Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
I have a list of dates in an appointments table. For all the dates in the appointments table, I want to measure how many appointments there are from x date in the appointments table in the coming 6 months.
Does anyone know how to do this? Currently, I have the following, however this is not a correct DAX formula as you cannot have Appointments[Date appointments] in that place. I don't know what the starting date should be as I want this calculation for every appointment date in the table.
Any help is appreciated!
Rolling appts =
CALCULATE(COUNT(Appointments[Date appointment]),
DATESINPERIOD(Calendar[Date], Appointments[Date appointment], 6, MONTH))
Solved! Go to Solution.
Hi,
Use this measure :
Hi,
try
VAR maxDate = MAX(Calendar[Date])
RETURN
CALCULATE(
COUNT(Appointments[Date appointment]),
FILTER(
ALL(Calendar),
Calendar[Date] > maxDate && Calendar[Date] <= EDATE(maxDate, 6)
)
)
BR
Hi,
Use this measure :
Hi,
even if you choose a date? When there's no date selected, then there are no appointments outside maxDate ...
If you just want to - regardless of user selections - show the next 6 months, replace MAX(Calendar[Date]) with TODAY()
@lukiz84 This then shows the same value for all dates in the date table. I want it to show a different value for every date (provided that is correct). See image for reference.
yeah sorry,
just dont filter the date table via FILTER, add the Calculate params as @MahyarTF did, then it works.
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 62 | |
| 53 | |
| 42 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 123 | |
| 105 | |
| 45 | |
| 32 | |
| 24 |