Hi,
Can someone help with Containsow and contains for that matter.
I have a table in Power pivot the in consist of 3 column Item , Unit and Product ,
the top row is A , 3 , X
so if I write a measure ;
why do I get an error, it asked for a table, = Table2 and
then I give a single value for each of the columns of that table, so why the error?
Another example
This return 22 even though there are only two rows of Table2 that would give a TRUE to the contains ?
I was expecting a the same as ;
Richard.
Can someone help with Containsow and contains for that matter.
I have a table in Power pivot the in consist of 3 column Item , Unit and Product ,
the top row is A , 3 , X
so if I write a measure ;
VBA Code:
CONTAINSROW( Table2, "A", "3", "X" )
then I give a single value for each of the columns of that table, so why the error?
Another example
Excel Formula:
ContainM:=VAR containV = CONTAINS( Table2, Table2[Item] ,"C", Table2[Prodiuct] , "Z" )
RETURN
CALCULATE( COUNTROWS( Table2), FILTER( ALL(Table2[Prodiuct]), containV ))
This return 22 even though there are only two rows of Table2 that would give a TRUE to the contains ?
I was expecting a the same as ;
Excel Formula:
CALCULATE( COUNTROWS( Table2), FILTER( ALL( Table2[Prodiuct], Table2[Item]) , Table2[Item] = "C" && Table2[Prodiuct] = "Z" ))
Richard.