I have sort of addressed this problem on excel forum ;
Can someone explain the following I have a few examples of CONTAINS / ROW
These are calculated columns;
All these produce a correct true false for the row, but why does B need calculate ?
But if I write a measure for containsrow it then needs ;
even though most of the online examples follow a pattern ;
when I try
it just get an error ?
Richard.
Excel Formula:
https://www.excelforum.com/office-365/1414306-dax-contains-for-or-conditions.html#post5885588
Can someone explain the following I have a few examples of CONTAINS / ROW
These are calculated columns;
Excel Formula:
A CONTAINS( Table1,Table1[Name],"tom")
B CALCULATE( CONTAINSROW( VALUES( Table1[Name]) , "tom") )
C CONTAINSROW({"tom"}, Table1[Name] )
All these produce a correct true false for the row, but why does B need calculate ?
But if I write a measure for containsrow it then needs ;
Excel Formula:
CONTAINSROW( VALUES(Table1[Name]), "tom")
Excel Formula:
CONTAINSROW ( { "Red", "Blue", "Yellow" }, Product[Color] )
when I try
Excel Formula:
CONTAINSROW( {"tom"}, Table1[Name])
Richard.