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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Leone
New Member

Adding a statement date column

DatesDatesUsed FormulaUsed Formula

 

Hello,

I tried to make a new column, which contains the date of the creditcard statement. If the day of the booking date (=boekingsdatum in Dutch) is higher then 26, the date of the statement (Afschriftdatum) will be the 27th of the next month, otherwise it will be the 27th of the same month as the booking date. I used the formula in the picture above, but with the booking date 28th of march and 27th of april, april 29 and 30th of april the formula does not seem to work. For all of that dates it will return 27th of december 2023?! Can anyone help me correcting the formula?

Thanks. 

Note: dates are formatted in Dutch format: dd-m-yyyy

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Leone , a new column 

if(Day([BookingDate]) >26, eomonth([BookingDate],0)+27, eomonth([BookingDate],-1)+27)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Leone , a new column 

if(Day([BookingDate]) >26, eomonth([BookingDate],0)+27, eomonth([BookingDate],-1)+27)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors