• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Sum based on distinct values of another column

Hi,
Requesting some help in creating a DAX formula. I have two columns (id and amount).
I have duplicate values in id column and as well as duplicate values in amount column.
I want to sum the amount column that has distinct values in id column.

I have attached a sample file with the desired result.

Thanks for all your help.
 

Attachments

  • chandoo.xlsx
    9.9 KB · Views: 5
How about using Mcode

Code:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Removed Duplicates" = Table.Distinct(Source)
in
    #"Removed Duplicates"
 
Back
Top