Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi
I am a beginner in Power BI and I would like to know the feasibility/solution for my Queries.
For a given data table "Prototype Modeling_freight" I have a measure as:
volume = SUMX('Prototype Modeling_Freight', 'Prototype Modeling_Freight'[Sold Cases])
this converted to percentage for each type of equipment as:
Volume distribution = DIVIDE([volume],CALCULATE([volume],ALL('Prototype Modeling_Freight'))),0)
And visualized as clustered column chart
Now there are specifically two things I want this chart to do:
when I filter out through a date sclicer my chart must compare the data only within those sclicers, (note these sclicers can be other than dates)
Eg:
If you consider the Y axis in above picture, I want them to present 100%, or 'what was 25N's contribution in June month?'.
Thank you
Solved! Go to Solution.
Hi @Anonymous
Try this instead
Volume distribution = DIVIDE([volume],CALCULATE([volume],ALLSELECTED())),0)
Hi @Anonymous
Try this instead
Volume distribution = DIVIDE([volume],CALCULATE([volume],ALLSELECTED())),0)
Thank you @Mariusz, it worked. I would like to understand how is this happening?
Hi @Anonymous
Sure, ALL() removes all filters from the filter context where ALLSELECTED() only the current one ie current visuals filters preserving all other filters coming from outside.
For more info please refer.
https://www.sqlbi.com/articles/the-definitive-guide-to-allselected/
Thank You,
But the article you have suggested is too complex to understand and time consuming.
I need simpler definition.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 4 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 17 | |
| 8 | |
| 8 | |
| 7 |