Forum Discussion
RahulPBI
6 years agoHelper I
Calculated Column With If Then Show Null
Hi Experts I have a calculated column that calculates the number of days between two dates and excludes any holidays. Managed to do that with help from members on this forumn. Its been working perfe...
- 6 years ago
So, like this?
Late = IF( [DiFOT vs Promise] = "On Time", BLANK(), CALCULATE( SUM('Date Dimention'[IsWorkday]), DATESBETWEEN( 'Date Dimention'[FullDateAlternateKey], RF_DIFOT_Report[Promised Ship Date v1], RF_DIFOT_Report[Actual Ship Date]-1 ) ) )
Greg_Deckler
6 years agoCommunity Champion
So, like this?
Late =
IF(
[DiFOT vs Promise] = "On Time",
BLANK(),
CALCULATE(
SUM('Date Dimention'[IsWorkday]),
DATESBETWEEN(
'Date Dimention'[FullDateAlternateKey],
RF_DIFOT_Report[Promised Ship Date v1],
RF_DIFOT_Report[Actual Ship Date]-1
)
)
)
- RahulPBI6 years agoHelper I
Thanks Greg
Worked like a charm