Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

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,...
  • v-janeyg-msft's avatar
    v-janeyg-msft
    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.