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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.

Top Solution Authors
Top Kudoed Authors