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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Jcoat64
New Member

Slicer is ignoring visual level filters

I'm working on a survey dashbpoard for my hospital and have run into an issue. I have four charts using the same measure (NPS_Scorce) but each chart has a visual level filter set to based on the question being asked. I have a slicer basexd upon the department being selected. When I don't have a department selected the charts show different data, but when I select a department in the slicer, all the charts switch to showing the same data points. It appears the slicer is ignoring the viusal level filter? Any thoughts?

 

******************************

NPS_Score =
VAR TotalCount = COUNTROWS('NRC_RT_TABLE')
VAR PromoterCount = CALCULATE(COUNTROWS('NRC_RT_TABLE'), 'NRC_RT_TABLE'[OUTREACHATTEMPT_NPSCATEGORY] = "Promoter")
VAR DetractorCount = CALCULATE(COUNTROWS('NRC_RT_TABLE'), 'NRC_RT_TABLE'[OUTREACHATTEMPT_NPSCATEGORY] = "Detractor")
RETURN
(DIVIDE(PromoterCount, TotalCount, 0) - DIVIDE(DetractorCount, TotalCount, 0)) * 100
 
************************************

Jcoat64_0-1727877142870.png

 

Jcoat64_1-1727877217061.png

 

2 REPLIES 2
Anonymous
Not applicable

Thanks for lbendlin's concern about this issue. 

 

Hi, @Jcoat64 

I am glad to help you.

 

This problem may occur because the Slicer visual selection overrides the visual level filter and so causes all charts to show the same data.


Perhaps you could try modifying the DAX to the following:

NPS_Score =
VAR TotalCount = COUNTROWS('NRC_RT_TABLE')
VAR PromoterCount = CALCULATE(COUNTROWS('NRC_RT_TABLE'), 'NRC_RT_TABLE'[OUTREACHATTEMPT_NPSCATEGORY] = "Promoter", ALLSELECTED('NRC_RT_TABLE'[Department]))
VAR DetractorCount = CALCULATE(COUNTROWS('NRC_RT_TABLE'), 'NRC_RT_TABLE'[OUTREACHATTEMPT_NPSCATEGORY] = "Detractor", ALLSELECTED('NRC_RT_TABLE'[Department]))
RETURN
(DIVIDE(PromoterCount, TotalCount, 0) - DIVIDE(DetractorCount, TotalCount, 0)) * 100


Use ALLSELECTED to ensure that the Department Slicer is taken into account when calculating the NPS_Score.

 

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

 

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Fen Ling,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

lbendlin
Super User
Super User

That works as designed. Visual level filters only impact that particular visual.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.