Forum Discussion

SwatKat's avatar
SwatKat
Frequent Visitor
2 years ago
Solved

Look up within Same Table based on Order Created Date

Hi,   I have a Orders  table as below in my Power BI file . I need to show list of customers who have Ordered Online in the past. This will be used in a table visual. I tried Look Up but that is no...
  • Martin_D's avatar
    2 years ago

    Hi SwatKat ,

    I'd recommend to solve this problem in a measure, not in M Query. This DAX measure

     

     

    Has ordered online = IF ( "Online" in VALUES ('Orders'[Source] ), "Yes", "No" )

     

     

    will give you this result:

    Kind regards,

    Martin