Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
I have this table that I need to get the average of Days, from 1 department AND 3 roles.
For example, I need to get the Days Average of P&E between SVP, VP and Exec.Director only.
I tried using the CALCULATE to create a measure, but I just can't seem to put in the correct filters or expression in the measure. Appreciate the help. Here is a sample of the data.
I will use this like a standard bar for average, that would not change regardless of the filters chosen in a page
Hi @Anonymous
You can try this measure
Average Value =
CALCULATE (
AVERAGE ( 'TableName'[Days] ),
FILTER (
ALL ( 'TableName' ),
'TableName'[Department] = "P&E"
&& 'TableName'[Role] IN { "SVP", "VP", "Exec.Director" }
)
)
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
You can try something like:
Should I use the AND() logic on different tables? Sorry I tried using this awhile ago and the filter is not getting the values
CALCULATE DAX allows you to have multiple Filters that too you can have on different tables. something like:
This should work:
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 80 | |
| 49 | |
| 35 | |
| 31 | |
| 30 |