Forum Discussion
Anonymous
4 years agoNot applicable
Most efficient way to create reference tables from original table
Hi there, I have a primary table in my PowerBI model, and want to perform several transformations to add custom columns. For example, my primary table contains a unique Customer ID per row,...
- 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.
Anonymous
4 years agoNot applicable
Hi v-janeyg-msft ,
Sorry, I'm not sure I understand. The column you've highlghted in this sample table is the expected result.
Both rows have the same Parent Cust ID, but differing Cust Last Booked Date. The Parent Last Booking Date is displaying the MAX Cust Last Booking Date across all child entities.
Naturally, this value will be repeated or all rows with the same Parent Cust ID, but this is not a problem.
Hope that clarifies?
C
v-janeyg-msft
Community Support
4 years agoAnonymous So you have no questions, do you?