Forum Discussion
Dynamic date period
- 3 years ago
Hi,
Create a Calendar Table and write these calculated column formulas
Month name = format(calendar[Date],"mmmm")
Month number = month(calendar[date])
Appraisal year = if(calendar[month number]<=6,year(calendar[date])-1&" "&year(calendar[date]),year(calendar[date])&" "&year(calendar[date])+1)
Hope this helps.
Thank you for this. If i am correct, this measure just calculates everything that falls within the date of the parameter. The idea is to calculate eveything between a set period that changes every year. Sort of like how the financial year for certain countries begin in April. So say i want to calculate data from April 2022 to March 2023.
Hi,
Create a Calendar Table and write these calculated column formulas
Month name = format(calendar[Date],"mmmm")
Month number = month(calendar[date])
Appraisal year = if(calendar[month number]<=6,year(calendar[date])-1&" "&year(calendar[date]),year(calendar[date])&" "&year(calendar[date])+1)
Hope this helps.