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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
nsaray
Helper II
Helper II

Adding 1 weekday to date

Deal TypeDateNew Date
DMT28 Apr 
ABC28 Apr 
XYZ29 Apr 

 

Hi

 

I want to create a new column and where deal type = DMT Or ABC, I want the New Date to be Date + 1 Weekday so that the dates align with Deal Type XYZ. 

 

Could you tell me how I can 1 weekday onto a date

 

Thanks

1 ACCEPTED SOLUTION

Hi, @nsaray 

If you want to add one day,please try calculated column as below:

 

New Date =
IF ( 'Table'[Deal Type] IN { "DMT", "ABC" }, 'Table'[Date] + 1, 'Table'[Date] )

 

If you want to add one working day,please try calculated column as below:

 

New Date2 = 
IF (
    'Table'[Deal Type] IN { "DMT", "ABC" },
    SWITCH (
        WEEKDAY ( 'Table'[Date], 2 ),
        5, 'Table'[Date] + 3,
        6, 'Table'[Date] + 2,
        'Table'[Date] + 1
    ),
    'Table'[Date]
)

 

27.png

Please check my attached pbix file for more details.

 

If it doesn't meet your requirement ,please share your expected result in excel.

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
mahoneypat
Microsoft Employee
Microsoft Employee

You can adapt the approach in this video (M or DAX), just using 1 for the # of working days instead.

(5) Power BI - Tales from the Front #03 - Due Date From Working Days - YouTube

 

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Great thank you, I'll take a look 🙂

Hi, @nsaray 

If you want to add one day,please try calculated column as below:

 

New Date =
IF ( 'Table'[Deal Type] IN { "DMT", "ABC" }, 'Table'[Date] + 1, 'Table'[Date] )

 

If you want to add one working day,please try calculated column as below:

 

New Date2 = 
IF (
    'Table'[Deal Type] IN { "DMT", "ABC" },
    SWITCH (
        WEEKDAY ( 'Table'[Date], 2 ),
        5, 'Table'[Date] + 3,
        6, 'Table'[Date] + 2,
        'Table'[Date] + 1
    ),
    'Table'[Date]
)

 

27.png

Please check my attached pbix file for more details.

 

If it doesn't meet your requirement ,please share your expected result in excel.

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Greg_Deckler
Community Champion
Community Champion

@nsaray Maybe:

 

New Date = 
 VAR __Dates = ADDCOLUMNS(CALENDAR([Date]+1,[Date]+3),"__Weekday",WEEKDAY([Date],2))
RETURN
 MINX(FILTER(__Dates,[__Weekday]<6),[Date])

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Hi, thanks for your quick response.

Sorry a bit new, could you tell me how I would put the IF statement in there that says IF the deal type is DMT or ABC then use the formula above to add 1 week day, otherwise, use the existing date (if the deal type is XYZ)

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.