cancel
Showing results for
Did you mean:
Highlighted
Frequent Visitor

## Calculating % based on unique id and status

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Moderator

## Re: Calculating % based on unique id and status

@Sergius,

Please check the DAX in the PBIX file below.
https://1drv.ms/u/s!AhsotbnGu1Nok1EZ842f9zPj1ZiM

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
8 REPLIES 8
Established Member

## Re: Calculating % based on unique id and status

Hello,

You could have posted an example of your expected result.

You may need something like a mixture of SUMMARIZE and FILTER.

But without knowing aim and proper dummy data it is really hard to tell.

Frequent Visitor

## Re: Calculating % based on unique id and status

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?

Moderator

## Re: Calculating % based on unique id and status

@Sergius,

Please check the DAX in the PBIX file below.
https://1drv.ms/u/s!AhsotbnGu1Nok1EZ842f9zPj1ZiM

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Frequent Visitor

## Re: Calculating % based on unique id and status

Thank you very much! It is great!

Frequent Visitor

## Re: Calculating % based on unique id and status

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.

Moderator

## Re: Calculating % based on unique id and status

@Sergius,

Please post expected result based on the sample data you provide.

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Frequent Visitor

Moderator

## Re: Calculating % based on unique id and status

My DAX should work with your new sample data.

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Announcements