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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Here is an strange behaviour I've found out when using the following expresion:
year=YEAR(TODAY())
I get the correct value: 2023.
The issue is I need to calculate previous year, so when I go for this:
previousyear = FORMAT(YEAR(TODAY())-1,"yyyy")
the result is 1905
This is needed to compare between Fiscal years (the actual formula is more complex, but the issue stems from here) so I cant hardcode the year, as that would mean I have to rewrite a big ammount of the formluas after each FY
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.