Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
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!
User | Count |
---|---|
140 | |
113 | |
104 | |
77 | |
64 |
User | Count |
---|---|
135 | |
120 | |
101 | |
71 | |
61 |