Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
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 along with Null value is zero but i didnt get zero it is get the value and minus value
Solved! Go to Solution.
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
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
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
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
Hi Samarth,
i applied the above code now it is working thanks for support
Thats Great @Anonymous , Please mark my solution as answer so that it will help others to find answer quickly.
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
90 | |
80 | |
58 | |
47 | |
40 |
User | Count |
---|---|
115 | |
81 | |
81 | |
52 | |
39 |