Forum Discussion

Jers19's avatar
Jers19
New Member
2 years ago
Solved

Calculated column

Hello, I have two tables (without relation) table of sales with two columns ID date of sales table of prices with four columns ID validity start date expiry date price I'd like to add...
  • tamerj1's avatar
    2 years ago

    Hi Jers19 

    please try

    Price =
    MAXX (
    FILTER (
    Price,
    Price[ID] = Sales[ID]
    && Price[Validity Start Date] <= Sales[Date of Sales]
    && Price[Expiry Date] >= Sales[Date of Sales]
    ),
    Price[Price]
    )