Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi,
I've created a new Excel file on which I worked yesterday. In it I have added a DAX formula to compare the current month ends date with the date in column Net due date. This worked fine yesterday.
But as we moved to a new month today the values changed which I didn't realise yesterday. The end of month date basically for the file shouldn't change automatically.
=if('Open AP'[Net due date]<=EOMONTH(today(),0),"Yes","No")
I therefore uploaded a new sheet in which I will monthly amend the date value manually. Uploaded this file:
After amending the initial formula to compare the Net due date with the Month end date value I'm getting the following result:
I tried an absolute reference (the usual Excel method), and discovered that it doesn't work in DAX as it references to columns.
I basically want to compare the month end date of the reported month (usually the month we are in, but if the file is opened in a new month the details shouldn't change because we are in a new month) with the Net due date and establish if Net due date is bigger, equal to month end date or the Month end date is bigger.
If absolute reference indeed doesn't work, how can this be solved?
Thank you for your time!!!
Hi All,
I'm understanding now that DAX doesn;t do absolute cel references like in Excel. Via a measure I will have to create a column with the data in the cel that I want to reference. Basically a column that will repeat the data of the absolute cel reference on each line.
I will try to work on this tomorrow. Will update this post with pics if I get to a solution.
See if you can refactor your approach from "EOMONTH of latest (current) date" to "EOMONTH for the latest data date".
Hi Ibendlin,
Thank you for your response.
Not sure if I understand you correctly. I clarified my initial approach above with some additional printscreens. I had ameded the formula from : EOMONTH(today(),0) to refer to the Date tab 'Date'[Month end date].
The result of this was the calculation error shown in my first post (updated pic).
User | Count |
---|---|
59 | |
22 | |
18 | |
18 | |
16 |
User | Count |
---|---|
85 | |
54 | |
45 | |
39 | |
21 |