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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
jimpatel
Helper V
Helper V

date add

Hi,

 

Thanks for looking at my post.

 

I have below formula and can anyone help me to modify this to add 2 days on top of this please?

 

 Date = SWITCH(TRUE(),
         WEEKDAY( 'Table'[ReceiptDate] + 1,1) = 7 , 'Table'[ReceiptDate] + 3, 'Table'[ReceiptDate] + 0
)
1 ACCEPTED SOLUTION
Elcin_7
Frequent Visitor

Hi,
 
Date  = SWITCH(
            TRUE(),
            WEEKDAY'Table'[ReceiptDate] + 1,1) = 7 , 'Table'[ReceiptDate] + 3+2'Table'[ReceiptDate] + 0+2
)
 
another version
 
Date  = SWITCH(
            TRUE(),
            WEEKDAY'Table'[ReceiptDate] + 1,1) = 7 , 'Table'[ReceiptDate] +5'Table'[ReceiptDate] + 2
)
 
I hope, I understood the requirement correct.

View solution in original post

2 REPLIES 2
jimpatel
Helper V
Helper V

Perfect

 

Thanks a lot 

Elcin_7
Frequent Visitor

Hi,
 
Date  = SWITCH(
            TRUE(),
            WEEKDAY'Table'[ReceiptDate] + 1,1) = 7 , 'Table'[ReceiptDate] + 3+2'Table'[ReceiptDate] + 0+2
)
 
another version
 
Date  = SWITCH(
            TRUE(),
            WEEKDAY'Table'[ReceiptDate] + 1,1) = 7 , 'Table'[ReceiptDate] +5'Table'[ReceiptDate] + 2
)
 
I hope, I understood the requirement correct.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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

Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Top Kudoed Authors