Forum Discussion
Anonymous
4 years agoNot applicable
Difference between two dates along with null value should be zero
Hi I created dax function for Difference between two dates along with null value i get the result difference but i can't get the null value as zero , My requirement is display the date difference ...
- 4 years ago
HI Anonymous ,
Update your code like below:-
IF ( ISBLANK ( 'sales dataset'[Sch.ship.date2] ), 0, DATEDIFF ( 'sales dataset'[promise date], 'sales dataset'[sch.ship.date2], DAY ) )Thanks,
Samarth
Samarth_18
4 years agoCommunity Champion
HI Anonymous ,
Update your code like below:-
IF (
ISBLANK ( 'sales dataset'[Sch.ship.date2] ),
0,
DATEDIFF ( 'sales dataset'[promise date], 'sales dataset'[sch.ship.date2], DAY )
)
Thanks,
Samarth
Anonymous
4 years agoNot applicable
Hi Samarth,
i applied the above code now it is working thanks for support
- Samarth_184 years agoCommunity Champion
Thats Great Anonymous , Please mark my solution as answer so that it will help others to find answer quickly.