Forum Discussion
SwatKat
2 years agoFrequent Visitor
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...
alexschindler
2 years agoHelper I
Hi SwatKat
Can you not use some measure for this?
Something along the lines of ...
ordered_online =
VAR ordered_online_in_past = CALCULATE(DISTINCTCOUNT(order_table[OrderID]), FILTER('orders_table', orders_table[Source] = "Online"))
RETURN
IF(ordered_online_in_past > 0,
"yes",
"no"
)Good luck
Alex