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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Kirk_1
Frequent Visitor

DAX "New Measure" for AVERAGE of slicer value

I'm new to Power BI and DAX.

I have this "New Measure" that works correctly for the total % of items worked in the table.


Goal = AVERAGE('Distribution'[% Items Worked])


I need to know how to change this to show % of items worked based on slicer filters. I tried using ALLSELECTED, but I must not be writing the command correctly. Please help.

2 REPLIES 2
v-zhangti
Community Support
Community Support

Hi, @Kirk_1 

 

Is this the result you expect?

vzhangti_0-1678084486658.png

Can you provide sample data for testing? Sensitive information can be removed in advance. What kind of expected results do you expect? You can also show it with pictures or Excel.

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

FreemanZ
Super User
Super User

hi @Kirk_1 

be careful when averaging a percent, it might get the unexpected result.

have you tried:

Goal =

CALCULATE(

    AVERAGE('Distribution'[% Items Worked]),

   ALLSELECTED(Distribution)

)

 

in case of issue, could you post some sample data?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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