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

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.

Reply
mmills2018
Helper IV
Helper IV

Getting Slicer/Filter to work

Hello,

I have the below calculation for a filter.  The issue I am running into, is that PoC only works when Gender is filter.  I would like the filter for POC to ALSO work without needing to filter by Gender first.  So POC filter would function when gender is filter and would function when gender is not not selected. any ideas?
 
 
VAR cta_add =
//cta with additional filter
SUMX (
FILTER (
filtered,
[Gender]
IN VALUES ( Gender[Gender] )
&& IF (
ISFILTERED ( PoC ),
[Race/Ethnicity] IN VALUES ( PoC[PoC (USA Only)] ),
TRUE ()
)
),
[Count Total Associates (PME)]
)
 
4 REPLIES 4
V-pazhen-msft
Community Support
Community Support

@mmills2018 

 

We cannot detect problem without see your model, maybe a sample  pbix without sensitive data?

 

If tables are related together, you should able just use those filters on [Count Total Associates (PME)] measure, additional formula is not necessary.

 

Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

mmills2018
Helper IV
Helper IV

unfortunately, I can't.  i was hoping there would be a way to create an if/or statement for Gender and POC, POC has an if statement but Gender does not....

Anonymous
Not applicable

You can use nested If statement to give multiple conditions. Check the third example here

This seems to be an easy issue but I am not able to understand what is required. Some more details might help.

Anonymous
Not applicable

Is it possible for you to share the pbix file ?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.