- 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
Calculation issue because of multiple selection
Hello everyone,
Hope that you are well and that you can help me fixing my issue.
I have a table named "Consumption Frequency" with useful columns: Periode, Country, Gender, Age, device category (named Digital content), consumption frequency (named Frequency in my table), and a variable allowing to understand how we know a specific tested brand: (Through TV, Through Cinema...) (named How_did_you_come_to_know_Bing)
Using theses columns, I introduced multiple selection filters in my dashboard for each of these variable excepted the last one (how we know the brand).
I created stacked bar graph like this:
I would like to personnalize my tooltips. For doing that, I need to create a measure calculating the percentages of this graph. No problem for the numerator:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @Jugui01 ,
I tried to reproduced your issue but failed.
Maybe you can try
Test_denominator =
CALCULATE (
COUNT ( 'Consumption Frequency'[How_did_you_come_to_know_Bing] ),
FILTER (
ALLSELECTED ( 'Consumption Frequency' ),
[Digital content] = MAX ( 'Consumption Frequency'[Digital content] )
&& [Country] = MAX ( 'Consumption Frequency'[Country] )
&& [Gender] = MAX ( 'Consumption Frequency'[Gender] )
&& [Age] = MAX ( 'Consumption Frequency'[Age] )
&& [Periode] = MAX ( 'Consumption Frequency'[Periode] )
&& [Frequency] = MAX ( 'Consumption Frequency'[Frequency] )
)
)
If it still doesn't work, can you please provide some sample data, and the corresponding expected results? Remember to protect privacy.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Stephen Tao,
Thanks for helping me! However, the formula doesn't work.
I tried a lot of other formula, using this for instance:
Here, I filtered on the Period October 2021, the country "Belgium", "Brazil" and "Chile", the gender "Girls", age filtered on 2 and 3, and digital content is "Mobile game Apps"
In a tooltip, I use the formula I provided, pointing first of all on the bar "2 to 3 times a week/Through Youtube/social media...":
The information I want in my tooltip is the total number of Girls between 2 and 3 years old in October 2021, in Belgium, Brazil and Chile, using mobile game apps 2 to 3 times a week. My formula say 10, so I should have also 10 when I point to the other way to know the brand (Through TV, Through Toys etc...), for the same frequency. However, When I see the result for the couple "2 to 3 times a week/Through TV", the result is different:
And Power BI automatically remove Chile from the filters when I run the measure, whereas it is not the case for "Through TV". Here are fictional data to explain what I need in these tooltips
Period | Country | Gender | Age | Digital Content | Frequency | Way to know |
October 2021 | Germany | Girl | 1 | Podcasts | 2 to 3 times a week | Through TV |
October 2021 | Poland | Girl | 2 | Audio Book | 2 to 3 times a week | Through Cinema |
October 2021 | Poland | Boy | 2 | Audio Book | 2 to 3 times a week | Through Cinema |
October 2021 | Germany | Boy | 3 | Mobila Game Apps | 2 to 3 times a week | Through books |
October 2021 | Germany | Girl | 3 | Podcasts | Never | Through TV |
October 2021 | Germany | Girl | 2 | Audio Book | Never | Through Cinema |
Using the same type of graph (stacked bar plot), I need, filtering on [Germany and Poland, Girl, 1 and 2 years old, no filter for digital content], to return 2 when I want to see my tooltips for the frequency "2 to 3 times a week", and 1 for the frequency "Never".
I hope that my explanations are clear.
Best,
Jugui01
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Stephen Tao,
Thanks for helping me! However, the formula doesn't work.
I tried a lot of other formula, using this for instance:
Here, I filtered on the Period October 2021, the country "Belgium", "Brazil" and "Chile", the gender "Girls", age filtered on 2 and 3, and digital content is "Mobile game Apps"
In a tooltip, I use the formula I provided, pointing first of all on the bar "2 to 3 times a week/Through Youtube/social media...":
The information I want in my tooltip is the total number of Girls between 2 and 3 years old in October 2021, in Belgium, Brazil and Chile, using mobile game apps 2 to 3 times a week. My formula say 10, so I should have also 10 when I point to the other way to know the brand (Through TV, Through Toys etc...), for the same frequency. However, When I see the result for the couple "2 to 3 times a week/Through TV", the result is different:
And Power BI automatically remove Chile from the filters when I run the measure, whereas it is not the case for "Through TV". Here are fictional data to explain what I need in these tooltips
Period | Country | Gender | Age | Digital Content | Frequency | Way to know |
October 2021 | Germany | Girl | 1 | Podcasts | 2 to 3 times a week | Through TV |
October 2021 | Poland | Girl | 2 | Audio Book | 2 to 3 times a week | Through Cinema |
October 2021 | Poland | Boy | 2 | Audio Book | 2 to 3 times a week | Through Cinema |
October 2021 | Germany | Boy | 3 | Mobila Game Apps | 2 to 3 times a week | Through books |
October 2021 | Germany | Girl | 3 | Podcasts | Never | Through TV |
October 2021 | Germany | Girl | 2 | Audio Book | Never | Through Cinema |
Using the same type of graph (stacked bar plot), I need, filtering on [Germany and Poland, Girl, 1 and 2 years old, no filter for digital content], to return 2 when I want to see my tooltips for the frequency "2 to 3 times a week", and 1 for the frequency "Never".
I hope that my explanations are clear.
Best,
Jugui01

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

Subject | Author | Posted | |
---|---|---|---|
08-06-2024 12:55 PM | |||
08-23-2024 08:05 AM | |||
10-02-2024 07:54 AM | |||
09-12-2024 06:51 PM | |||
09-23-2024 01:01 PM |
User | Count |
---|---|
83 | |
81 | |
52 | |
37 | |
36 |
User | Count |
---|---|
104 | |
85 | |
47 | |
43 | |
42 |