Search code examples
powerbidaxdata-analysispowerbi-desktopmeasure

How to SUM DISTINCT Values in a column based on a unique count in another column of a Power BI table


Employee Claim Amount
James 50
James 20
James 10
Alex 30
Alex 20

I have a table above which I would like to calculate the sum of the claim amount divide by the unique count of employee which is 2 to achieve 65 in PowerBI.

Appreciate if help could be provided with the DAX formula, thank you!


Solution

  • Measure = DIVIDE(SUM('Table'[Claim Amount]),  DISTINCTCOUNT('Table'[Employee]))
    

    enter image description here