Forum Discussion
Applicable88
Impactful Individual
4 years agoAlternative to allexcept / avoiding using calculate modifiers
Hello, Allexcept as an Calculate modifier, can be used for example to sum sales, but leavin one filter like "Category". But in my own experience calculate functions can run into limitations....
- 4 years ago
Hi Applicable88
You can try measures like
Measure 1 = SUMX ( FILTER ( ALL ( 'Salestable' ), 'Salestable'[Categories] IN VALUES ( 'Salestable'[Categories] ) ), 'Salestable'[Sales] )Or
Measure 2 = SUMX ( FILTER ( ALL ( 'Salestable' ), 'Salestable'[Categories] = SELECTEDVALUE ( 'Salestable'[Categories] ) ), 'Salestable'[Sales] )Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
Applicable88
Impactful Individual
4 years agoamitchandak , I wanted to know if there are alternative syntax without Calculate and Allexcept?
Can I solve
Measure = Calculate ( SUM ( 'Salestable' [Sales], Allexcept ( 'Salestable', [Categories]))
with another formula? Either a measure with an table variable or with an Measure with an x-aggregated function?
- v-jingzhang4 years ago
Community Support
Hi Applicable88
You can try measures like
Measure 1 = SUMX ( FILTER ( ALL ( 'Salestable' ), 'Salestable'[Categories] IN VALUES ( 'Salestable'[Categories] ) ), 'Salestable'[Sales] )Or
Measure 2 = SUMX ( FILTER ( ALL ( 'Salestable' ), 'Salestable'[Categories] = SELECTEDVALUE ( 'Salestable'[Categories] ) ), 'Salestable'[Sales] )Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.