Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi team,
for example if a date on a column arrival lands on a tuesday or a wednesday add 2 days if tuesday and add 1 day if it is thursday.
so if date is 24/10/2023 then add 2 days so date is 26/10/2023
and if date is 25/10/2023 then add 1 days so date is 26/10/2023
need on m query power bi as a custom column.
Solved! Go to Solution.
Hello @skv17 ,
First of all, you create a day column out of the date column
then you use the following formula in the custom column
if [Day Name] = "Tuesday" or [Day Name] = "Wednesday" then Date.AddDays([Date], 2) else if [Day Name] = "Thursday" then Date.AddDays([Date], 1) else [Date]
then convert the column type to date
Proud to be a Super User! | |
try this
you can change {3,4} as you wish
Column =
VAR _Dayweek = WEEKDAY('Calendar'[Date])
RETURN
SWITCH( TRUE(),
_Dayweek in {3,4} , 'Calendar'[Date]+2,
_Dayweek in {5},'Calendar'[Date]+1,
'Calendar'[Date])
Hello @skv17 ,
First of all, you create a day column out of the date column
then you use the following formula in the custom column
if [Day Name] = "Tuesday" or [Day Name] = "Wednesday" then Date.AddDays([Date], 2) else if [Day Name] = "Thursday" then Date.AddDays([Date], 1) else [Date]
then convert the column type to date
Proud to be a Super User! | |
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!