Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Good afternoon
I am trying to assemble a board with the information of the main characteristics of a population group. The information must be mounted on cards and this must be filtered by each of the regions from where the data were obtained.
*First use a measure to count the information:
Count = COUNTROWS(Undergraduate)
*Second, use another measure to count the total information:
*Al final divided both measures:
When I assemble the information without filters selecting the most relevant characteristics, the result obtained is the desired one. However, when I filter the information, the calculation of the percentage is made on all the data and what I am looking for is that this calculation takes as the new 100% the data only from the filtered region.
I ask for your help to guide me and tell me what alternatives I have to find the solution to this difficulty.
Solved! Go to Solution.
Hi, @Syndicate_Admin
Good morning!
It is correct to show 100% in the card because the current filter context of the card is the filter context selected by your slicer, that is, the calculated values of [Count] and [Total count] are the same. If you want the card to display values that are not 100%, then you need to modify your metrics and add the logic you need to calculate.
Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!
Best Regards,
Aniya Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi, @Syndicate_Admin
You can try to replace the ALL( ) function to the ALLSELECTED() function , like this:
Total count = COUNTROWS(ALLSELECTED(Undergraduate))
Because the ALL() function ignores all filtering, ALLSELECTED() function will keep your slicer's filter.
Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!
Best Regards,
Aniya Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi, @Syndicate_Admin
Good morning!
It is correct to show 100% in the card because the current filter context of the card is the filter context selected by your slicer, that is, the calculated values of [Count] and [Total count] are the same. If you want the card to display values that are not 100%, then you need to modify your metrics and add the logic you need to calculate.
Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!
Best Regards,
Aniya Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
The result will depend on how you have wired your data model. Make sure that your filter choices can impact the target tables.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
99 | |
80 | |
70 | |
59 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |