Forum Discussion

SCNCKS1's avatar
SCNCKS1
Icon for Helper I rankHelper I
3 years ago
Solved

find a value based on 2 cells within a range

Hi - I hope someone can help, I have the following data and I need to dynamically return the rate associated with the rate_type and year/quarter. Dynamically, the date will continue to grow both on t...
  • Ritaf1983's avatar
    3 years ago

    Hן SCNCKS1 
    In order to connect the tables, you need to convert your rates table into a longitudinal table first.
    Using unpivot in PQ :

     

    After this your rates table will look as on pict :

    From this stage ypu can just merge it based on item and quarter :

     

     

    Link to sample file 

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.