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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi!
I have a problem with a conditional formula, I need that if the validated field is equal to zero, it brings me the invoice date field.1, but if it is <> zero (that is, -1) it subtracts one day from the invoice date field.1 .
The error is when you must subtract a day, since I am subtracting a numerical data from a date format. What is the correct way to subtract a day from the date format?
Thanks.
Solved! Go to Solution.
@Anonymous In DAX you can just use -1 but what you are showing is Power Query and in that case you need to use Date.AddDays function.
@Anonymous In DAX you can just use -1 but what you are showing is Power Query and in that case you need to use Date.AddDays function.