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
sabeensp
Helper IV
Helper IV

Ignore Multiple Slicers in Measure

Hello,
I have a Measure COUNT(Employees)

I have mutiple slicers on the report

Slicer1: Year
Slicer2: Location

Slicer3: Gender

I need to divide Count of Employees selected by slicer values / All Count of Employees

 

So, If Year = 2019, Location = CA, and Gender = M comes to 5500 / Entire population in the Table = 10,000

 

Thanks

1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@sabeensp 

 

You may try ALL without arguments.

Measure =
DIVIDE (
    COUNTROWS ( Employees ),
    CALCULATE ( COUNTROWS ( Employees ), ALL () )
)
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-chuncz-msft
Community Support
Community Support

@sabeensp 

 

You may try ALL without arguments.

Measure =
DIVIDE (
    COUNTROWS ( Employees ),
    CALCULATE ( COUNTROWS ( Employees ), ALL () )
)
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
TomMartens
Super User
Super User

Hey,

 

I'm wondering if you have just one table, or do you have a data model that build following the star schema approach.

Meaning you have different tables like Calendar and Employees?

In case you have just one large table you can try something like this:

Count all employees = 
CALCULATE(
    COUNT(Table1[Person])
    , ALL('Table1'[Gender] , 'Table1'[Location])
)

This will ignore the slicers from Gender and Location.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

@TomMartens  No I have over 10 slicers coming form 10 diff tables

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.