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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Syndicate_Admin
Administrator
Administrator

Formula for the current month

Hello!

There are formulas for the previous month (last month), last three months, next month... but is there a formula for the current month?

That is, I need to indicate the sales number of the current month and I can not find a way to do it.

Can you tell me the formula, please?

Thank you!

1 ACCEPTED SOLUTION

The DAX formula that has served me is this:

Current Month = IF(format([date],"YYYYMM")-format(today(),"YYYYMM"),"Other Months","Current Month")

View solution in original post

4 REPLIES 4
v-binbinyu-msft
Community Support
Community Support

Hi @Syndicate_Admin ,

Please try below dax formula

Current date =
IF ( MONTH ( 'CALENDAR'[Date] ) = MONTH ( TODAY () ), "S", "N" )

 

Best regards,
Community Support Team_ Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Shreeram04
Resolver III
Resolver III

Hi @Syndicate_Admin,

 

Please find the below link for your reference.

 

https://community.powerbi.com/t5/Desktop/CURRENTMONTH/m-p/8673#M1493

 

If I resolve your problem Mark it as a solution and give kudos.

 

Thanks,

@Syndicate_Admin

Hello!

None of the solutions proposed in the post you have passed me solves my problem.

For example, for the current date, I have this formula in the Calendar table.

Current date = IF('CALENDAR'[Date] = TODAY(), "S", "N")
I want the same thing but with the current month, that in the days of September I get an "S".
Thank you and greetings!

The DAX formula that has served me is this:

Current Month = IF(format([date],"YYYYMM")-format(today(),"YYYYMM"),"Other Months","Current Month")

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors