Forum Discussion

Hell-1931's avatar
Hell-1931
Helper II
4 years ago
Solved

Summarizing numbers over Distinct values in DAX Power BI

Hi All, I am having trouble receiving correct result when trying to sum numbers over Distinct values (in DAX Power BI) I have the following table - Tbl_Eposode:   I expect to have total num...
  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi Hell-1931 ,

    Is there any other field exist in your fact table except the fields in below screenshot? It can get the correct result: 12 when I use the same formula as suggested by Hariharan_R ....

    In addition, you can refer the following links to get it.

    DAX method:

    Calculate the sum of Duplicate values from a Table

    SizeWithoutDuplicates =
    SUMX (
        DISTINCT ( unstructured[Hash] ),
        CALCULATE(DISTINCT(unstructured[Size]))
    )

    Sum distinct values for first occurance in Power BI

    Total = SUMX(DISTINCT(Data[Name]), FIRSTNONBLANK(Data[Value], 0))

    Power Query method:

    How to combine duplicate rows and sum its values

     

    If the above one can't help you get the desired result, please provide more raw data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examplesIt is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

    How to upload PBI in Community

    Best Regards