I have a calendar table in Power BI linked to two other tables, one with occupancy by date and another with predicted occupancy by date. The second table goes well into the future.
I want the report to have a rolling 15 day range, 7 days prior to today and 7 days into the future. I tried to create a custom column using:
ReportRange = IF(DATESBETWEEN (Calendar[SQL_Date], (TODAY()-7), (TODAY()+7)),1,0)
I get a response "No syntax errors have been detected."
But when I click "OK", I get a yellow bar/warning: "Expression.Error: The name 'IF' wasn't recognized. Make sure it's spelled correctly."
Can anyone help with this? Thanks!