Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
ganeshnr073
Helper I
Helper I

Get the current month

I have a column with months in it. Need it to be filtered with current month so that I can perform calculation after it. Kindly help to get the current month and dynamically it will change to next month and so on. 

 

ganeshnr073_0-1663851784806.png

 

1 ACCEPTED SOLUTION
davehus
Memorable Member
Memorable Member

Hi @ganeshnr073 ,

 

Add a calculated column to your table as below.

 

Hope this helps

 

Did I help you today? Please accept my solution and hit the Kudos button.

MonthNum = Var vMonthNum = MONTH(DATEVALUE('Table'[Month]&"/01/01"))
Var vCurMonth = MONTH(TODAY())
Var IsCurMonth = IF(vMonthNum = vCurMonth,"Y","N")
Return IsCurMonth

View solution in original post

4 REPLIES 4
davehus
Memorable Member
Memorable Member

Hi @ganeshnr073 , You're more than welcome. 🙂

davehus
Memorable Member
Memorable Member

Hi @ganeshnr073 ,

 

Add a calculated column to your table as below.

 

Hope this helps

 

Did I help you today? Please accept my solution and hit the Kudos button.

MonthNum = Var vMonthNum = MONTH(DATEVALUE('Table'[Month]&"/01/01"))
Var vCurMonth = MONTH(TODAY())
Var IsCurMonth = IF(vMonthNum = vCurMonth,"Y","N")
Return IsCurMonth
davehus
Memorable Member
Memorable Member

Hi @ganeshnr073 ,

 

Add a calculated column to your table as below.

 

Hope this helps

 

Did I help you today? Please accept my solution and hit the Kudos button.

MonthNum = Var vMonthNum = MONTH(DATEVALUE('Table'[Month]&"/01/01"))
Var vCurMonth = MONTH(TODAY())
Var IsCurMonth = IF(vMonthNum = vCurMonth,"Y","N")
Return IsCurMonth

Thank you for the help ! it worked 

Cheers !!

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.