EN VI

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

2024-03-12 16:00:08
Powerbi - 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

Answer

Login


Forgot Your Password?

Create Account


Lost your password? Please enter your email address. You will receive a link to create a new password.

Reset Password

Back to login