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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hello,
I have a data set of revenue by period which basically holds invoice data. Date, Customer, invoice item, $ etc.
I need to show next to items that were invoiced this month what month(date) they were last invoiced for the same item to the same customer.
With the help of google I have created the below but it is returning the most recent date rather than the second to last. I also need it to ignore any filters on the report, visual or page which it is not doing currently.
Any Ideas?
Solved! Go to Solution.
Hi,
Try something like this:
Data:
DAX:
End result:
I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!
My LinkedIn: https://www.linkedin.com/in/n%C3%A4ttiahov-00001/
Proud to be a Super User!
Hi,
Try something like this:
Data:
DAX:
End result:
I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!
My LinkedIn: https://www.linkedin.com/in/n%C3%A4ttiahov-00001/
Proud to be a Super User!
I'm absolutely bamboozled.
That seems to have worked, How is it matching the customer and the job code without referencing them at all?
Hi @ScottTynan ,
DAX notices row context so when you apply the column level filters the calculation takes these as filters and considers when was the last invoice date based on those values. I recommend reading this post about the matter to understand this interaction better: https://www.sqlbi.com/articles/row-context-in-dax/
Proud to be a Super User!