Forum Discussion
themoosegoose
8 years agoFrequent Visitor
ALLSELECTED doesn't work with FILTERS
How can ALLSELECTED work when I filter a value included in one of the measures required to calculate the percentage? Number of Visits # Visits = CALCULATE(SUM(Main[VALUE]),ALL(Main[OrderCode]), ...
v-juanli-msft
Community Support
8 years agoWhen modifying two measures as below, I can calculate the percentage.
# Visits = CALCULATE(SUM(Main[VALUE]),FILTER(ALL(Main),Main[OrderCode]= 1))
# Visits Incomplete = CALCULATE(SUM(Main[VALUE]), FILTER(ALL(Main),Main[OrderCode]= 2))
Best Regards
Maggie
themoosegoose
8 years agoFrequent Visitor
Using ALL would aggregate the numbers in the roll up level. You can't see that in the sample above, but if you add dates (which is what I have in my real report), you'll be able to see the issue. Is there another option?
- v-juanli-msft8 years ago
Community Support
Could you show me some example dataset which will effect the result you want for better analysis?
Best Regards
Maggie