The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hello, I already have data column in my data set. Do I need to create calendar table for my further calculations, like MoM, YoY...What is a better solution?
Solved! Go to Solution.
Yes, it is always advisable to create a date dimension table and join it via a relationship to the fact table on some date field. Why? You need CONTIGUOUS DATES to do correct date intelligence with DAX.
The good news: You can create a date table with a simple DAX statement:
MyDates = CALENDAR("1/1/2025", "12/31/2025")
Then you will need to flesh out the other columns like month number, name, etc.
Hope that helps.
Proud to be a Super User! | |
Thanks, that helps a lot!
Yes, it is always advisable to create a date dimension table and join it via a relationship to the fact table on some date field. Why? You need CONTIGUOUS DATES to do correct date intelligence with DAX.
The good news: You can create a date table with a simple DAX statement:
MyDates = CALENDAR("1/1/2025", "12/31/2025")
Then you will need to flesh out the other columns like month number, name, etc.
Hope that helps.
Proud to be a Super User! | |