Forum Discussion
Calendar Table
- 6 years ago
azeemnazim - Calendar tables are just a common dimension in many data models and Power BI wants you to use a star schema data model. You need a calendar table for many time intelligence functions to operate.
But, if you don't want one, there are other ways. You may find this helpful - https://community.powerbi.com/t5/Community-Blog/To-bleep-With-Time-Intelligence/ba-p/1260000
Also, see if my Time Intelligence the Hard Way provides a different way of accomplishing what you are going for.
https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TITHW/m-p/434008
Hey azeemnazim ,
Creating a calender table is very easy using this m query:
List.Dates(start as date, count as number, step as duration)
List.Dates(#date(2011, 12, 31), 5, #duration(1, 0, 0, 0))
| 12/31/2011 12:00:00 AM |
| 1/1/2012 12:00:00 AM |
| 1/2/2012 12:00:00 AM |
| 1/3/2012 12:00:00 AM |
| 1/4/2012 12:00:00 AM |
Why calender tables is required?
- It allows you to aggregate data by non-standard columns (think your company’s financial year, or your timesheet weeks, or the Mayan calendar!).
- It gives you access to all of the wonderful time-intelligence functions in DAX, with names like TOTALYTD and CLOSINGBALANCE. Without a calendar table these won’t work.
If your problem is solved then accept this reply as solution.
Thank you