The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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.
User | Count |
---|---|
15 | |
11 | |
8 | |
8 | |
7 |
User | Count |
---|---|
21 | |
20 | |
11 | |
10 | |
7 |