Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hello, I need to have in PowerBI a column which will display number of month in callendar.
At this moment I have an Callendar table created by
Solved! Go to Solution.
Hi @Maciek048
please try
Number of Month =
RANKX ( 'CALENDAR', FORMAT ( 'CALENDAR'[Date], "YYYYMM" ),, Asc, DENSE ) - 1
Thanks it works. I needed only to add "-" before statement to achieve exactly what I want.