Forum Discussion

DionTN's avatar
DionTN
Helper II
3 years ago
Solved

Calculate average for selected ID

This is the example i want. 

I have this imported in Power BI. How can i add this formula in DAX? 

 

  • Hi,

    Please check the below picture and the attached pbix file.

     

     

     

    Score expected measure: =
    IF ( HASONEVALUE ( Data[ID] ), AVERAGE ( Data[Score] ) * 10 )
    

3 Replies

  • Hi,

    Please check the below picture and the attached pbix file.

     

     

     

    Score expected measure: =
    IF ( HASONEVALUE ( Data[ID] ), AVERAGE ( Data[Score] ) * 10 )