March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi,
I'm trying to get the most recent transaction date for a specifc letter name (Recovery Insurer 3 (sending losses)) for each individual incident no.
There are sometimes multiple records of the same letter being sent on different days. The data is sorted by the most recent day coming first.
How do I use the lookupvalue and firstnonblank formulas to solve the issue? I've seen other related articles, but can't seem to solve it...
The data sets are:
Main table to try and get latest letter date added in:
Table 'Weekly Report'
Table that has the multiple letters:
Table 'Recovery Letters Test'
So I would want table 1 to return 24/05/2021 for incident no 123456 for the 'Recovery Insurer 3 (sending losses)' letter as that is the latest date that 'Recovery Insurer 3 (sending losses)' letter has been completed.
Thanks
Solved! Go to Solution.
Hi @MarkShoo,
you would just need to include that in your filter, see below
Latest Date =
var _incident = 'Weekly Report'[Incident No]
return
CALCULATE(max('Recovery Letters Test'[Trans'n Dt]), FILTER('Recovery Letters Test', 'Recovery Letters Test'[Incident No] = _incident && 'Recovery Letters Test'[Description] = "Recovery Insurer3 (sending losses)"))
Thanks
Proud to be a Super User!
Hi @MarkShoo,
Please try the following calc column formula
Latest Date =
var _incident = 'Weekly Report'[Incident No]
return
CALCULATE(max('Recovery Letters Test'[Trans'n Dt]), FILTER('Recovery Letters Test', 'Recovery Letters Test'[Incident No] = _incident))
Thanks,
Proud to be a Super User!
Thanks.
That gives the latest date of any letter sent, but can you filter it to specific letter names? IE for the 'Recovery Insurer 3 (sending losses)' letter?
Hi @MarkShoo,
you would just need to include that in your filter, see below
Latest Date =
var _incident = 'Weekly Report'[Incident No]
return
CALCULATE(max('Recovery Letters Test'[Trans'n Dt]), FILTER('Recovery Letters Test', 'Recovery Letters Test'[Incident No] = _incident && 'Recovery Letters Test'[Description] = "Recovery Insurer3 (sending losses)"))
Thanks
Proud to be a Super User!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
87 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |