March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi I am trying to create a dynamic calendar at the Month level (There is no need for day level) I have created a master calendar with no problem and I am now trying to create the Dynamic period filter table that will link to the Master calendar and filters can be applied to the required monthly periods in a visualisation
The dynamic period filter table will look like this. (Only some values shown)
Expected outcome for a sample of Periods
BasePeriod PeriodMeasure PeriodKey
201901 YTD 201901
201902 YTD 201901
201902 YTD 201902
201903 YTD 201901
201903 YTD 201902
210903 YTD 201903
201904 YTD 201901
201904 YTD 201902
201904 YTD 201903
201904 YTD 201904
201901 Last Year YTD 201801
201902 Last Year YTD 201801
201902 Last Year YTD 201802
201903 Last Year YTD 201801
201903 Last Year YTD 201802
201903 Last Year YTD 201803
202002 Last 3 months 201912
202002 Last 3 months 202001
202002 Last 3 months 202002
202003 Last 3 months 202001
202003 Last 3 months 202002
202003 Last 3 months 202003
I am able to generate the PeriodKey for a number of PeriodMeasures using a fixed BasePeriod using this Dax
I would like to generate all the PeriodKey's for all the PeriodMeasure,s for all the BasePeriod's between the first period in StartYear and the end period in Endyear which are two paramaters used to generate the main Calender file
Any help would be appreciated.
What is objective of this calendar. Are you trying to YTD, LYD or rolling months? Can time intelligence help you in that?
@wmeads001 ,if you need more help make me @
Appreciate your Kudos.
So you want the first table displayed between StartYear and EndYear and you want Base Periods
Table =
VAR __Years = GENERATESERIES([StartYear],[EndYear],1)
VAR __Months = { "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12")
VAR __Table =
ADDCOLUMNS(
GENERATE(__Years,__Months)
"__Base Period",[Value1] & [Value2]
)
RETURN
SELECTCOLUMNS(__Table,"Base Period",[__Base Period])
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
133 | |
91 | |
88 | |
64 | |
58 |
User | Count |
---|---|
201 | |
137 | |
107 | |
73 | |
68 |