Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Latest Status

Hi ALL   We need to show the membership status on the selected transaction date for each user. In another fact table, we have the membership status for specific date ranges and sequences. Finally, ...
  • amitchandak's avatar
    3 years ago

    Anonymous , Create a new column in table 1

     

    New =

    var _max =maxx(filter(Table2, Table1[user_id] = Table2[user_id]  && Table1[Transaction Date] >= Table2[Start Date]

    && Table1[Transaction Date] <= Table2[End Date]) , Table2[Status])

    return

    coalesce(_max, "Inactive")