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.
Dear community!
Recently I have faced with one problem, so needs your help.
I have one database, with unique id, regions and status, that looks like
and separate table with population data
what I need is to summarize id and calculate % where numerator will be sum id of uniq region (but only with TRUE status) and denominator - population of the same region.
Solved! Go to Solution.
@Sergius,
Please check the DAX in the PBIX file below.
https://1drv.ms/u/s!AhsotbnGu1Nok1EZ842f9zPj1ZiM
Regards,
Lydia
Each unique ID is an indificator of the person.
The first step could be calculate number of IDs (whith status TRUE) for each region, to understand how many people are in data base.
Than caclulate % from total population of the region.
But how?
@Sergius,
Please check the DAX in the PBIX file below.
https://1drv.ms/u/s!AhsotbnGu1Nok1EZ842f9zPj1ZiM
Regards,
Lydia
thank you, but I only thing that was missed is that IDs represented people from these regions and should be calculated for each region separately. In this example they were calculated for all regions without desagregation.
@Sergius,
Please post expected result based on the sample data you provide.
Regards,
Lydia
My DAX should work with your new sample data.
Regards,
Lydia
Thank you very much! It is great!
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 |
---|---|
108 | |
100 | |
78 | |
64 | |
58 |
User | Count |
---|---|
148 | |
111 | |
94 | |
84 | |
67 |