Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Good afternoon
I am looking for help to solve the following difficulty: I have a board on which I am placing the main characteristics of the profile of a student group from a sample of several regions of my country. The board makes use of the cards as a display. The difficulty I have is that this information must be presented as percentages of the total sample and then filtered by each of the regions from which the information was obtained.
*First use a measure to count the information:
I ask for your help to guide me and tell me what alternatives I have to be able to identify the main characteristics of the student group once the information is filtered.
Solved! Go to Solution.
Hi @Syndicate_Admin ,
I think you should create another measure to calculate percentage.
% 2 = DIVIDE ( [Count], [Total count 2] )
I think this is the result you want:
Best regards,
Yadong Fang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Syndicate_Admin ,
Please confirm whether this is the result you want?
Count = COUNTROWS('Table')
Total count 2 = CALCULATE([Count],ALLEXCEPT('Table','Table'[Region]))
% =
IF (
ISINSCOPE ( 'Table'[School] ),
DIVIDE ( [Count], [Total count 2] ),
DIVIDE ( [Total count 2], CALCULATE ( [Count], ALL ( 'Table' ) ) )
)
Best regards,
Yadong Fang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Good morning
First thank you for the help you are giving me. The result I am waiting for is not that. When I apply a filter to the visual, the expected result is the percentage of the filtered feature.
For this example the result that the card should show is the percentage (participation) of the female gender 65.38%, instead of 0.22%, since what I need to calculate is the participation on my new totality that for this case is 26.
Best regards
Sebastian Hernandez
Hi @Syndicate_Admin ,
I think you should create another measure to calculate percentage.
% 2 = DIVIDE ( [Count], [Total count 2] )
I think this is the result you want:
Best regards,
Yadong Fang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Syndicate_Admin ,
ALLSELECTED( ) removes context filters from columns and rows in the current query, while retaining all other context filters or explicit filters. Please refer to:ALLSELECTED function (DAX) - DAX | Microsoft Learn
You can use ALL( ) instead of ALLSELECTED( ).
This is my test table:
Create following measures:
Count = COUNTROWS('Table')
Total count 2 = CALCULATE([Count],ALL('Table'))
% = DIVIDE([Count],[Total count 2])
There is no filtering:
Filter on this page:
Best regards,
Yadong Fang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
114 | |
105 | |
95 | |
38 | |
30 |