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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It 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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors