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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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 perfectly till I found another requirement where I need to add an IF clause to it
Below is the formula that works
Solved! Go to Solution.
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
)
)
)
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
)
)
)
Thanks Greg
Worked like a charm
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 133 | |
| 88 | |
| 85 | |
| 68 | |
| 64 |