Forum Discussion
SUM, Filter by Two Columns text values
- 4 years ago
Hi Anonymous
Try this measure:
Measure = VAR _filter_from_Start = FILTER( 'Table', [Start Street] = "1st street" || [Start Street] = "2nd street" || [Start Street] = "10th street" ) VAR _filter_from_End = FILTER( _filter_from_Start, [End Street] = "2nd street" || [End Street] = "3rd street" || [End Street] = "8th street" ) RETURN SUMX( _filter_from_End, [Distance Miles] )But the conditions is too long or in your data, is that possible to use start street not equal waterloo road?
If is , filter with the condition
[Start Street]<>”waterloo road”Best Regards
Community Support Team _ chenwu zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Anonymous ,
You can create this measure:
Thanks. I have tried this measure but it seems to be doing the following
SUM of mileage for column 'Start Street' with text filters + SUM of mileage for column 'End Street' with text filters.
Instead it should be doing SUM of mileage for columns 'Start Street' and 'End Street' where both columns meet the text filter criteria.
- jppv204 years agoSolution Sage
Hi Anonymous ,
I don't think I completely understand what you mean. Could you explain a bit more what's nog working correctly?