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.
Erm, not sure I understand.
I do have a question...as described...
"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."
That table was jsut an example of the Parent Cust Last Booking Date column I'm hoping to create.
Anonymous
If you only want to display the max date.
You can try:
Last Booking Date =
MAXX ( ALL ( table ), [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.
- Anonymous4 years agoNot applicable
Nope, this doesn't work, soz. It just returns the most recent Cust Last Booking Date from the entire table, and duplicates it down the column. 😞
I need the most recent Cust Last Booking Date for rows where the Parent Cust ID is the same, as per my example.
Sorry, I'm not sure how else to explain it. Perhaps this extended example helps?
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 9876 05/09/21 4789
05/09/21 5679 01/10/19 4789 05/09/21 2345 06/07/21 1111
06/07/21 4613 05/09/20 1111 06/07/21 I'm aiming to achieve the blue column data.
- v-janeyg-msft4 years ago
Community Support
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.