The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event! Join us in Stockholm, Sweden from September 24-27, 2024.
2-for-1 sale on June 20 only!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi all,
I'm having trouble returning the 2nd to last MAX invoice date inside DAX when I am filtering in Matrix by Client with drilldown to JobID. (Just for reverence, it is 1 Table - Invoices. All Invoices have a Client allocated to it and a JobID. So a Client can have many JobIDs)
The Last Date is no issue
Solved! Go to Solution.
Went a SQL path to solve this.
It seems that you may change "<>" to "<".
This doesn't seem to work. In August context, looking at 1 particular JobID, it returns 30/08/2019
It should be returning 31/07/2019, as this was the last invoice raised for this Job. 30/08/2019 makes no sense, as no invoice was raised on this date for this job.
DAX
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
102 | |
97 | |
80 | |
62 | |
57 |
User | Count |
---|---|
264 | |
120 | |
115 | |
83 | |
70 |