Hi Everyone, hoping someone can help me, I am pretty new to Power Bi. I’ve built some really nice reports with the help of Enterprise DNA of course But I have hit a wall! My Company’s financial reporting year has changed. Previously, they had a November year end but this has changed to March. SO, our 2022 financial year has change from 01.12.21 - 30.11.22 to 01.12.21 to 31.03.23. I am trying to recalculate the FY Qtrs in my Date Table to account for the additional 4 months of this financial year…by calling them “Q5”. Previously I just used the “Switch (True)” formula to calculate the FY Qtrs which worked perfectly, below is my attempt to account for “Q5” which isn’t working, would someone be able to guide me as to where I am going wrong?
FY Quarters =
SWITCH( TRUE(),
Dates[MonthOfYear] = 1 , “Q1”,
Dates[MonthOfYear] = 2 , “Q1”,
Dates[MonthOfYear] = 3 , “Q2”,
Dates[MonthOfYear] = 4 ,“Q2”,
Dates[MonthOfYear] = 5 , “Q2”,
Dates[MonthOfYear] = 6 , “Q3”,
Dates[MonthOfYear] = 7 , “Q3”,
Dates[MonthOfYear] = 8 , “Q3”,
Dates[MonthOfYear] = 9 , “Q4”,
Dates[MonthOfYear] = 10 , “Q4”,
Dates[MonthOfYear] = 11 , “Q4”,
Dates[MonthOfYear] = 12 , “Q1”,
IF(Dates[Year] = “2022”,
SWITCH( TRUE(),
Dates[MonthOfYear] = 12, “Q5”,
IF( Dates[Year] = “2023”,
SWITCH( TRUE (),
Dates[MonthOfYear] = 1, “Q5”,
Dates[MonthOfYear] = 2, “Q5”,
Dates[MonthOfYear] = 3, “Q5”,
BLANK() )))))
Many thanks
Melissa