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?   
  • Jihwan_Kim's avatar
    3 years ago

    Hi,

    Please check the below picture and the attached pbix file.

     

     

     

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