Forum Discussion
Matrix Visual: Allselected and subcategories.
- 5 years ago
Hi parry2k
Thanks for the insights. Actually, I found out there was a slicer put out behind the visual which was impacting it, hence I could never reach 100%.
Lesson learned !
To handle this, I have set to use another parameter in the Calculate statement, to eliminate what is out of scope based on the slicer.
I could then swap the ALLSELECTED with ALLEXCEPT, and I now have the desired results.
Stemar_Aubert I think you need to change your measure to:
RATIO =
DIVIDE (
CALCULATE ( SUM ( 'TABLE'[ITEMS] ) ),
CALCULATE ( SUM ( 'TABLE'[ITEMS] ), ALLSELECTED ( 'TABLE'[Product3] ) )
)
✨ Follow us on LinkedIn
Check my latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡
- Stemar_Aubert5 years agoResolver I
Hi parry2k
Thanks for the insights. Actually, I found out there was a slicer put out behind the visual which was impacting it, hence I could never reach 100%.
Lesson learned !
To handle this, I have set to use another parameter in the Calculate statement, to eliminate what is out of scope based on the slicer.
I could then swap the ALLSELECTED with ALLEXCEPT, and I now have the desired results.