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! Request now

Reply
rajaurora
Frequent Visitor

Slicer not showing the right filtered values

Hello

I have a situation where i have location , department as slicers and a table with departments and Headcount
all come from same table . When i chose the location , the department and headcount  shows in the table as 3 rows and numbers are correct as headcount  but the slicer for the department shows 6 values 

if i remove the headcount from the table it shows 6 rows like slicer
I used the calculation for headcount as

Headcount = CALCULATE(SUM(‘All’[CNT]),FILTER(‘All’,[Withinrange]=1))

where the Withinrange is

Withinrange =
VAR Cond =
IF(SELECTEDVALUE(‘All’[ADJ_HIRE_DATE]) <= [Harvest] &&
SELECTEDVALUE(‘All’[TERM_DATE]) > [Harvest],
1,
0
)
RETURN
Cond

The customer is asking whey more slicer values for departments are showing if they pick up the location

Not sure why location slicer is not filtering the right way on Department slicer

Any help on this is appreciated.

 

 

 

rajaurora_0-1628034173908.png

 

 

2 REPLIES 2
Greg_Deckler
Community Champion
Community Champion

@rajaurora Because your Headcount is only returning a value for certain departments and for the other departments it is returning BLANK and blanks are, by default, automatically filtered from table visualizations. It's a feature.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Is it possible to create a Department where  Headcount is not blanks and use it as a slicer ?

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.