Forum Discussion
Most efficient way to create reference tables from original table
- 4 years ago
Hi Anonymous
That's why I asked you to share sample data...Your previous sample is incomplete.
Try this:
Last Booking Date = MAXX ( FILTER ( ALL ( table ), [Parent Cust ID] = SELECTEDVALUE ( table[Parent Cust ID] ) ), [Booking Date] )Best Regards,
Community Support Team _Janey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Perfect, thank you. 😁 DAX is a much better way of course! 🙄
Ok, so next problem (sorry!). I actually need to expose the MAX(Last Booking Date) across all Customer entities associated with the Parent Customer. If I create a measure using Last Booking Date = MAX ( Table[Booking Date] ) then I get the Last Booking Date for the individual Customer in my report - which is at Customer Level.
This is what I'm after, i.e. the Parent Last Booking date is the MAX of all Booking Dates associated with child Customer entities.
| Cust ID | Cust Last Booking Date | Parent Cust ID | Parent Last Booking Date |
| 1234 | 01/12/20 | 9999 | 15/03/21 |
| 4567 | 15/03/21 | 9999 | 15/03/21 |
Thanks!
Hi, Anonymous
So what should be the correct result?
Can you share some sample data? So we can modify the code according to the field.
Janey