Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
PlentyL
Helper II
Helper II

Percentage Measure

Hi,

 

I am trying to create a percentage of BAME employee's within my 'HC' table. I have ethnicity group within the HC table also, but need to select "Asian", "Black", "Mixed". 

PlentyL_0-1652269093476.png

How do i filter the count for the Ethnicty group without filtering the Count of employee ID too?

 

Thanks in advance.

 

1 ACCEPTED SOLUTION
PlentyL
Helper II
Helper II

I may have gone about this a long way but its now working.

I have a count of BAME with a filter for the ethnicity groups i need. 

PlentyL_0-1652775098349.png

Then i have created another measure dividing the HC by my BAME count.

PlentyL_1-1652775129806.png

 

 

This has now given me the right percentage.

View solution in original post

4 REPLIES 4
PlentyL
Helper II
Helper II

I may have gone about this a long way but its now working.

I have a count of BAME with a filter for the ethnicity groups i need. 

PlentyL_0-1652775098349.png

Then i have created another measure dividing the HC by my BAME count.

PlentyL_1-1652775129806.png

 

 

This has now given me the right percentage.

v-yalanwu-msft
Community Support
Community Support

Hi, @PlentyL ;

Try it.

Bame% =
DIVIDE (
    DISTINCTCOUNT ( 'HC'[EMPLOYEE ID] ),
    CALCULATE ( COUNT ( 'HC'[Ethnicity Group] ), ALLSELECTED ( 'HC' ) )
)

Or can you share a simple example and the result you want to output?which could understand your logic more clearly.


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

PlentyL
Helper II
Helper II

Unfortunately that wont work, as i am not looking for the amount of ethcnity groups, but the amount of employee ID's against certain ethnicty groups. Apologies if i wasnt clear.


I basically need to get a percentage of 100 (amount in a bame group) /2000 (Number of distinct employee ID's).

amitchandak
Super User
Super User

@PlentyL , Like

distinctcount('HC'[ethnicity group])

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.