The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
I have a measure which takes max date from a table and then works out different time intelligence. It was working fine and ti started giving error.
If I change var Tdy = Today() it works, but it is not accepting Today() -1. I need the last tdate from the table to be the base or I need a calculation to be applied to Today
Any help is appreciated
Solved! Go to Solution.
This maybe useful for someone, I finally managed the figure out the problem. The error was happening downstream the code and it was due to a calculation Date(Year(RptDate), Month(RptDate), Day(RptDate)-28)..Strongly recommend do not deduct days like this, as based on the current date eg it was 28th Nov today, the day return 0 causing the error.
Its difficult to trouble shoot as Dax does not highlight the row where the error occurs.
This maybe useful for someone, I finally managed the figure out the problem. The error was happening downstream the code and it was due to a calculation Date(Year(RptDate), Month(RptDate), Day(RptDate)-28)..Strongly recommend do not deduct days like this, as based on the current date eg it was 28th Nov today, the day return 0 causing the error.
Its difficult to trouble shoot as Dax does not highlight the row where the error occurs.
User | Count |
---|---|
26 | |
10 | |
8 | |
6 | |
5 |
User | Count |
---|---|
33 | |
13 | |
12 | |
9 | |
7 |