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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
ghoussoub
New Member

I have a table that I need to filter and display only the jobs that are not gender diverse

I have a table that lists available open jobs with the candidates and the gender of each candidate.

I need to filter the table and display only the jobs that are NOT diverse and don't have at least 1 female and 1 male candidates.

So based on the table below only Job2 and Job3 will be displayed in the table because they DONT have at least 1 f and 1 m candidate.

 

JobsCandidates GenderCandidates Gender
Job1Job1 Candidate1Female
Job1Job1 Candidate2Female
Job1Job1 Candidate3Male
Job1Job1 Candidate4Female
Job2Job2 Candidate1Male
Job2Job2 Candidate2Male
Job2Job2 Candidate3Male
Job3Job3 Candidate1Female
Job4Job4 Candidate1Male
Job4Job4 Candidate2Female
3 REPLIES 3
AlB
Community Champion
Community Champion

Hi @ghoussoub 

1. Place Table1[Jobs] in a table visual

2. Create this measure

ShowMeasure =
VAR genders_ =
    DISTINCT ( Table1[Gender] )
RETURN
    IF ( "Female" IN genders_ && "Male" IN genders_, 0, 1 )

3. Place the measure in the visual filter and select to show items when value is -->1

 

Please mark the question solved when done and consider giving kudos if posts are helpful.

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

Cheers 

SU18_powerbi_badge

AlB
Community Champion
Community Champion

@ghoussoub 

or another version of the measure to do the same:

ShowMeasure V2 =
VAR numgenders_ =
     DISTINCTCOUNT ( Table1[Gender] )
RETURN
    IF ( numgenders_ = 2, 0, 1 )

Please mark the question solved when done and consider giving kudos if posts are helpful.

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

Cheers 

SU18_powerbi_badge

Seems like you just need 

GenderCount = DISTINCTCOUNT ( Table1[Gender] )

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.