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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
kasife
Helper V
Helper V

Conditional column to increase 1 month after date

Hi Guys,

How can I create a conditional column in power query using the following logic

 

If the sales confirmation column is equal to "confirmed sale" use the contract date column, if it is "open sale" use the contract date + 1 month (insert the following month).

 

kasife_0-1677901093439.png

 

Thanks

 

1 ACCEPTED SOLUTION
Ahmedx
Super User
Super User

 

if [sales confirmation]="confirmed sale" then [Status change date] else Date.AddMonths([Status change date],1)

 

see attached
https://1drv.ms/u/s!AiUZ0Ws7G26RhhXkS-4XM5wSlkaU?e=Fi5TR2
Screen Capture #414.png

View solution in original post

2 REPLIES 2
Ahmedx
Super User
Super User

 

if [sales confirmation]="confirmed sale" then [Status change date] else Date.AddMonths([Status change date],1)

 

see attached
https://1drv.ms/u/s!AiUZ0Ws7G26RhhXkS-4XM5wSlkaU?e=Fi5TR2
Screen Capture #414.png

@Ahmedx Thanks so much. It worket perfectly.

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.