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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I'm trying to create a calculated column in my Date table for fiscal year based on the CalendarDate column. Here's what I'm after:
If the calendar date is greater than or equal 09/01/2022 and less than or equal to 08/31/2023, the result should be 2023. Otherwise, the result should be 2024. My date table only has dates that encompass both fiscal years 09/01/2022 to 08/31/2024 so anything that isn't 2023 should automatically be 2024. The DAX I'm using is this:
Solved! Go to Solution.
@rbowen Try:
FiscalYear = IF('Dates'[CalendarDate] >= DATE(2022,9,1) && 'Dates'[CalendarDate] <= DATE(2023,8,31), "2023", "2024")
@rbowen Try:
FiscalYear = IF('Dates'[CalendarDate] >= DATE(2022,9,1) && 'Dates'[CalendarDate] <= DATE(2023,8,31), "2023", "2024")
That worked, thank you Greg!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 41 | |
| 39 | |
| 37 | |
| 29 | |
| 24 |
| User | Count |
|---|---|
| 119 | |
| 100 | |
| 72 | |
| 69 | |
| 65 |