Forum Discussion
Filtering error based on two columns
- 5 years ago
Hi OsmanEmi,
could you change the && to , and try again?
-Crew NA. = CALCULATE(COUNT(FACT_DELIVERY[CREW_QTY]), FILTER(ALL(FACT_DELIVERY[CREW_QTY]),FACT_DELIVERY[CREW_QTY]<2) , FILTER(ALL(FACT_DELIVERY[STOP_TYPE]),FACT_DELIVERY[STOP_TYPE] <> "C"))The && function returns a TRUE or FALSE based on whether the conditions are met. by using the "," instead you are adding another filter to your calculate function, instead of turning it into a TRUE/FALSE.
Best regards,
Tim
Hi OsmanEmi,
could you change the && to , and try again?
-Crew NA. = CALCULATE(COUNT(FACT_DELIVERY[CREW_QTY]),
FILTER(ALL(FACT_DELIVERY[CREW_QTY]),FACT_DELIVERY[CREW_QTY]<2)
,
FILTER(ALL(FACT_DELIVERY[STOP_TYPE]),FACT_DELIVERY[STOP_TYPE] <> "C"))
The && function returns a TRUE or FALSE based on whether the conditions are met. by using the "," instead you are adding another filter to your calculate function, instead of turning it into a TRUE/FALSE.
Best regards,
Tim
- OsmanEmi5 years agoFrequent Visitor
Hi timg,
This worked thank you very much.
Is it possible to explain why this worked as opposed to my method?- timg5 years agoSolution Sage
Hi Osman,
I included an explanation as an edit in my first reply just now. Does this clarify the difference sufficiently?
Best regards,
Tim