Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
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.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
126 | |
113 | |
69 | |
59 | |
46 |