- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Measure to calculate share of rows selected by slicer
I need to calculate share of rows which have a value selected in slicer.
For testing I created two measures, first counting all rows:
However, it shows "100%" :
What am I doing wrong?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @KapGun
You can use this for all, using ALL to remove all filters on the table.
LT_All = CALCULATE(COUNT(Events[Reason]), ALL('Events' ))
Share:
Share =
Var Reason_selected = CALCULATE ( COUNT ( 'Events'[Reason]), ALLSELECTED ( 'Events' ) )
Var Reason_All = CALCULATE ( COUNT(Events[Reason]), ALL ( 'Events' ) )
Return
Reason_selected/Reason_All
Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @KapGun
You can use this for all, using ALL to remove all filters on the table.
LT_All = CALCULATE(COUNT(Events[Reason]), ALL('Events' ))
Share:
Share =
Var Reason_selected = CALCULATE ( COUNT ( 'Events'[Reason]), ALLSELECTED ( 'Events' ) )
Var Reason_All = CALCULATE ( COUNT(Events[Reason]), ALL ( 'Events' ) )
Return
Reason_selected/Reason_All
Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Great, works like a charm!
Thanks mate 🙂

Helpful resources
Join us at the Microsoft Fabric Community Conference
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Power BI Monthly Update - February 2025
Check out the February 2025 Power BI update to learn about new features.

Subject | Author | Posted | |
---|---|---|---|
03-11-2024 11:00 AM | |||
02-23-2024 07:05 AM | |||
09-04-2023 09:46 PM | |||
05-29-2024 09:01 PM | |||
Anonymous
| 07-03-2024 03:42 PM |
User | Count |
---|---|
86 | |
68 | |
66 | |
51 | |
33 |
User | Count |
---|---|
113 | |
95 | |
75 | |
64 | |
40 |