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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
johnknutson
New Member

Aggregate filtering on fields that are not included in visual

Hello,

I have a dataset with 'EMPLOYEE', 'SUPERVISOR', 'JOB_TITLE', 'STATE', 'JOB_COUNT', 'JOB_SCORE', 'DATE'.

I am trying to calculate the average score for each employee, supervisor, job_title, and state.

I have a table visual that includes the EMPLOYEE and all of the average score measures. 

Each measure looks like this, but uses the specific column in the ALLEXCEPT() function:

 

M_SUPERVISOR_AVG=
CALCULATE(
    SUM(JOBS[JOB_SCORE]) /
    SUM(JOBS[JOB_COUNT])
    ,ALLEXCEPT(
        JOBS
        ,JOBS[DATE]
        ,JOBS[SUPERVISOR]
    )
)
 
I would like to show each employee's supervisor's average alongside the employee's average without having to include the supervisor in the table.
This allows me to compare an employee's average job score to the average job score of his peers on the supervisor's team. The same comparison for the employee's peers in the state and job title.
 
Thanks
1 REPLY 1
Anonymous
Not applicable

Hi @johnknutson ,

If I understand correctly, it seems that you want to get a average value base on one field which not display in the visual. Am I right? If yes, could you please provide some raw data in the table 'JOBS' (exclude the sensitive data) with Text format, the formula of measure [JOB_SCORE] and [JOB_COUNT]  and your expected result with backend logic and special examples? What's your visual looks like? It would be helpful to find out the solution. You can refer the following links to share the required info:

How to provide sample data in the Power BI Forum

 

And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

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.