Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Group rows with same and different values.

Hi, I am trying to group/summarize rows with the same values. The problem is some of rows are a match for 2/3 of the columns which screws up my data.    Example:  Before query is executed   E...
  • FreemanZ's avatar
    3 years ago

    hi Anonymous 

    try to create a calculated table like:

    SumTable =
    ADDCOLUMNS(
        SUMMARIZE(
            TableName,
            TableName[Email],
            TableName[Dept Number]
        ),
        "Cost",
        CALCULATE(SUM(TableName[Cost]))
    )

     

    Also, in Power Query Editor, you can try to Groupby the query, 

    https://learn.microsoft.com/en-us/power-query/group-by