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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
vimina
Frequent Visitor

Data should not be filtered when a specific slicer is selected.

I am trying to calculate Average Incident count for each Branch, for eg: the average incident for BranchA is 4.88, but when the Employee ID & Name is selected then it will be filtered accordingly, I need to ignore that filter. The Sum of Incident should be filtered by Employee Name but Average Incident should be calculated for Branch and here Employee Name & Id should not be considered. I tried using ALL(TABLENAME) but it didnt help either. Same could be acheived by turning off the edit interaction for the slicer but I am looking for a measure to acheive this.

 

Attached pbix file for reference: https://drive.google.com/file/d/1Jrsv3NxAqAQ_OKtHu4PhNnyWvfPPXC4n/view?usp=share_link 

 

vimina_0-1682162793967.png

1 ACCEPTED SOLUTION
DOLEARY85
Resident Rockstar
Resident Rockstar

Hi,

 

try this:

 

AVG INCIDENT = DIVIDE(CALCULATE(SUM(INCIDENT[INCIDENT_COUNT]),REMOVEFILTERS(EMPLOYEE[EMPLOEE NAME & ID])),CALCULATE(DISTINCTCOUNT(EMPLOYEE[EMPLOYEE_ID]),REMOVEFILTERS(EMPLOYEE[EMPLOEE NAME & ID])))
 
If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

View solution in original post

1 REPLY 1
DOLEARY85
Resident Rockstar
Resident Rockstar

Hi,

 

try this:

 

AVG INCIDENT = DIVIDE(CALCULATE(SUM(INCIDENT[INCIDENT_COUNT]),REMOVEFILTERS(EMPLOYEE[EMPLOEE NAME & ID])),CALCULATE(DISTINCTCOUNT(EMPLOYEE[EMPLOYEE_ID]),REMOVEFILTERS(EMPLOYEE[EMPLOEE NAME & ID])))
 
If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.