Forum Discussion
RichOB
Post Partisan
1 year agoCount based on date
Hi, how can I get the total count of properties that have an expiry date within each financial year? My financial year runs 1st April - 31st March. I make it: FY 24/25 = 4 FY 25/26 = 6 Pr...
- 1 year ago
Hi there, assuming you do not use Date table and you are going to use the Expiry Date in this sample table. You'd need to create one Column with DAX below for FY.
Financial Year = VAR Expiry = 'CountBasedOnDate'[Expiry Date] VAR FY_EndYear = YEAR(Expiry) + IF(MONTH(Expiry) >= 4, 1, 0) RETURN "FY " & RIGHT(FY_EndYear - 1, 2) & "/" & RIGHT(FY_EndYear, 2)In reporting, it will be,
Hope it helps:)
Greg_Deckler
Community Champion
1 year agoRichOB The proper way to do that would be to create a date table that contains your fiscal year information. I would recommend Melissa de Korte's date table. However, there are also DAX-based date table formulas such as this one: DAX Custom 445 Calendar - Microsoft Fabric Community