Forum Discussion

EnderWiggin's avatar
EnderWiggin
Icon for Helper I rankHelper I
4 years ago
Solved

Filter Calendar lookup table based on fact table value

Hi All, I would like to ask your help to find a solution of the following case. I would like to get the minimum Calandar[Date] value which is equal or greater than TransctionPast[FirstValid] date. ...
  • Anonymous's avatar
    Anonymous
    4 years ago

    EnderWiggin 

    You would not return anything if you compare Date with MIN('TransactionPast'),[FirstValid]). If you would to compare Calendar date with minimum date in [FirstValid] column.

     

    Try:

    Measure = CALCULATE(MIN('Calendar'[Date]),FILTER('Calendar',[Date]>=MINX(ALL('TransactionPast'),[FirstValid])))
     
     
    Best regards
    Paul Zheng _ Community Support Team
    If this post helps, please Accept it as the solution to help the other members find it more quickly.