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
Anonymous
Not applicable

Calculated column to get the first date of next month?

I have a column with dates of the format: 4/25/21. I want a new column that will calculate the first date of next month, no matter what day it is this month

 

I tried this code:

Future Effective Date = EOMONTH('Account Move Audit Log - Dashboard'[Effective Date],1)+1
 
It seems to only give me the end of next month, however. I'm lost on this one... 
1 ACCEPTED SOLUTION

Hi, @Anonymous 

Thank you for your feedback.

 

Yes, you can create that.

 

nextmonthfirstdate = IF( 'Calendar'[Date] >= TODAY(), EOMONTH('Calendar'[Date],0)+1)
 

Jihwan Kim

If this post helps, then please consider accept it as the solution to help the other members find it more quickly.

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


View solution in original post

3 REPLIES 3
Jihwan_Kim
Super User
Super User

Hi, @Anonymous 

 

I am not sure about your table name and column name.

Please try something like below to make a calculated column.

 

nextmonthfirstdate = EOMONTH('Calendar'[Date],0)+1
 

Jihwan Kim

If this post helps, then please consider accept it as the solution to help the other members find it more quickly.

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


Anonymous
Not applicable

@Jihwan_Kim This works great, but I have noticed an issue in my logic. It will apply to any date, even past dates.

 

Is there any way to apply a filter on top of this EOMONTH to also filter any date out that is in the past? So for example, if date >=today, then EOMONTH('Calendar'[Date],0)+1?

 

i.e. 

Future Dates = IF('Account Move Audit Log - Dashboard'[Effective Date]<=TODAY() THEN EOMONTH('Account Move Audit Log - Dashboard'[Effective Date],0)+1 ?

Hi, @Anonymous 

Thank you for your feedback.

 

Yes, you can create that.

 

nextmonthfirstdate = IF( 'Calendar'[Date] >= TODAY(), EOMONTH('Calendar'[Date],0)+1)
 

Jihwan Kim

If this post helps, then please consider accept it as the solution to help the other members find it more quickly.

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


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.