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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 9 | |
| 9 | |
| 8 | |
| 6 | |
| 6 |
| User | Count |
|---|---|
| 24 | |
| 21 | |
| 18 | |
| 14 | |
| 14 |