Forum Discussion
Multiple filter conditions
Why the SUM?
My category and subcategory are textual values (saying this I know that I could have created better example data:-) ).
Anonymous sum was just to show how to apply or condition in your measures.
- Anonymous7 years agoNot applicable
Hi parry2k ,
I used the query (and changed the corresponding columns) and got the following error:
"The expression contains multiple columns, but only a single column can be used in a True/False expression that is used as a table filter expression."
Why can't AND handle this?- parry2k7 years agoSuper User
Anonymous missed to add filter
Your Measure = CALCULATE( SUM(Table[Sales]), FILTER( Company, Company[Company Category]="2" || AND( Company[Company Category] = "1", Company[Compay Subcategory]="33") ) )
- Anonymous7 years agoNot applicable
parry2k I still don't understand what the correct query is and why I need SUM.
SUM gives me an error since my data consists of strings instead of numbers.
But if I don't use the SUM I get the following error: "The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value".