Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

filtering with unconnected table

Hi all I need to make my calculated colomn filter on valid_from and valid_to in a unrelated tabel. My plan was to add datesbetween after value_id filter, to retrive correct value to correct datepe...
  • amitchandak's avatar
    5 years ago

    Anonymous , Try a new column like this in table 1

     

    maxx(filter(table2, ((Table1[some_stuff] ="a" && table2[value_id] = 1) || ( Table1[some_stuff] ="b" && table2[value_id] = 1 ))
    && Table1[date] >= Table2[valid_from] && Table1[date] <= Table2[valid_to] ), Table2[some_value])