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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
G_WHO
New Member

POWER BI - DAX FORMULA - how do i get the average value for a specific item?

Say i have a data with the ratings for a particular product 

and I want to find the average rating for just one of those products - what is the DAX formula? I am trying but keep getting error messages. 

 

1 ACCEPTED SOLUTION
rautaniket0077
Resolver I
Resolver I

Hi @G_WHO ,

you can achieve this by using "AllSelected" Dax.
As you can see in the below image, when i am selecting the product from slicer the 1st table is giving me the average of that product where as the 2nd one is giving me Sales for it.

rautaniket0077_0-1669716838979.png

 

Dax--

Average of Perticular Product =
    CALCULATE(
        AVERAGE(Orders[Sales]),
        ALLSELECTED(Orders[Product Name])
    )
 
Please mark my post as Answer if it solves your issue.





 

View solution in original post

2 REPLIES 2
rautaniket0077
Resolver I
Resolver I

Hi @G_WHO ,

you can achieve this by using "AllSelected" Dax.
As you can see in the below image, when i am selecting the product from slicer the 1st table is giving me the average of that product where as the 2nd one is giving me Sales for it.

rautaniket0077_0-1669716838979.png

 

Dax--

Average of Perticular Product =
    CALCULATE(
        AVERAGE(Orders[Sales]),
        ALLSELECTED(Orders[Product Name])
    )
 
Please mark my post as Answer if it solves your issue.





 

tamerj1
Super User
Super User

Hi @G_WHO 
It would perhaps help more if you provide little more details.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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