Forum Discussion
Limited calendar with an IF statement
- 3 years ago
hi Anonymous
it seems the up limit of the calendar table shall be aligned with data record.
try like:
Calendar = CALENDAR( DATE(2022, 1, 10), MAX(RecordTable[Date]))
try like:
I mean, yes, I could do that. In fact it's what I'm using right now on my dashboard.
What I want to do is to make it so when 2024 arrives, I don't have to make a patch that my boss has to download so they don't get confused about why 2024 is selectable when there's no data available. Today there was a bit of confusion surrounding 2023 in the 2022 dashboard, which is why I thought of using the IF() statement. If it's not possible, it's fine, I just want to be able to avoid that future change if I can.
hi Anonymous
it seems the up limit of the calendar table shall be aligned with data record.
try like:
Calendar = CALENDAR( DATE(2022, 1, 10), MAX(RecordTable[Date]))
try like:
- Anonymous3 years agoNot applicable
Nice trick! I didn't know you could do that. Thanks for the help!