Forum Discussion
Fcoatis
7 years agoPost Patron
Contains
Hello, I need to create a measure to check values against a virtual table like this: Test =
VAR currCustomer = VALUES(Customer[CustomerKey])
VAR TempTable = FILTER(InternetSales,InternetSales[O...
- 7 years ago
Just replace ur measure with this;
Test = VAR currCustomer = SELECTEDVALUE(Customer[CustomerKey]) VAR TempTable = FILTER(InternetSales,InternetSales[OrderDate]<DATE(2011,1,1)) RETURN IF( CONTAINS(TempTable,Customer[CustomerKey],currCustomer), TRUE(), FALSE() )
tex628
7 years agoCommunity Champion
Is this the desired result?
- Fcoatis7 years agoPost Patron
tex628 Hi,
I dont need date column. Only customer Key, Name and the measure. For those customers below it must return true
- tex6287 years agoCommunity Champion
Just replace ur measure with this;
Test = VAR currCustomer = SELECTEDVALUE(Customer[CustomerKey]) VAR TempTable = FILTER(InternetSales,InternetSales[OrderDate]<DATE(2011,1,1)) RETURN IF( CONTAINS(TempTable,Customer[CustomerKey],currCustomer), TRUE(), FALSE() )