Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
Check it out now!Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more
How can i create a calendar table in power bi showing latest 2 years (current and previous year)?
Solved! Go to Solution.
Hi,
Try this calcuated table formula
Calendar = calendar(date(year(today())-1,1,1),today())
If you want the Calendar table to extend till the last day of the current year, then try this
Calendar = calendar(date(year(today())-1,1,1),eomonth(date(year(today()),1,1),11))
Hope this helps.
Hi,
Try this calcuated table formula
Calendar = calendar(date(year(today())-1,1,1),today())
If you want the Calendar table to extend till the last day of the current year, then try this
Calendar = calendar(date(year(today())-1,1,1),eomonth(date(year(today()),1,1),11))
Hope this helps.
thanks!
You are welcome.