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! Learn more

Reply
b_koe
New Member

DAX Divide Measure producing same value for all categories when a filter is applied

Hello, 

 

I have a column of data that is in decimal form and I need an average of it, I do not want it to sum so I have used the following measure.

 

Default PF = DIVIDE(SUM('DPS 20240816'[DefaultProductivity2]), COUNT('DPS 20240816'[DefaultProductivity2]))
 
This works to provide an average for each category when no other filters are on, but as soon as I filter by another category in my data source, all the values become equal and doesn't calculate properly. All my relationships seem to be defined properly, so I'm assuming it is an issue in the measure. Image below for reference when a filter is applied to a matrix vs the total.
 
b_koe_0-1725862691033.png

 

6 REPLIES 6
Anonymous
Not applicable

Hi @b_koe ,

Try below measure

Default PF = AVERAGEX(
'DPS 20240816',
'DPS 20240816'[DefaultProductivity2]
)

Thanks for your reply @Anonymous . Ideally it should works. @b_koe  Make sure to have proper relationships.
If you need solution, pls post detailed question with out any sentive data.

Unfortunately, still having the same issue. The outcome is identical to my posted measure above. Thanks

Anonymous
Not applicable

Hi @b_koe ,

I have changed the measure please check and try with the below

Default PF = CALCULATE(
AVERAGE('DPS 20240816'[DefaultProductivity2]),
ALL('DPS 20240816')
)

b_koe_0-1725864668964.png

It has changed slightly but still the incorrect outcome.

 

Anonymous
Not applicable

Hi @b_koe ,

Try below measure

Default PF = AVERAGEX(
'DPS 20240816',
'DPS 20240816'[DefaultProductivity2]
)

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.

Top Solution Authors