cancel
Showing results for
Did you mean:
Highlighted
Regular Visitor

## Group By Duplicates in DAX

Hi,

Can someone help me by converting this problem into DAX instead of a new table? Group Duplicates with Count

I can't figure it out myself..

Many thanks,

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team

## Re: Group By Duplicates in DAX

HI @TimHellegers ,

If you mean use multiple aggregation on one field, you can consider to use summarize function to summary records with first aggregation mode, then use iteration functions to apply second aggregate.

Sample:

```Measure =
COUNTX (
FILTER (
SUMMARIZE (
Table,
[Category1],
[Category2],
[Category3],
"Count", COUNT ( Table[Column] )
),
[Count] > 1
),
[Count]
)
```

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin Sheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

For learning resources/Release notes, please visit: | |
3 REPLIES 3
Super User

## Re: Group By Duplicates in DAX

@TimHellegers  Could you please make it clear, you want to know the DAX equivalent to achieve the same result. Also, you don't want to create a new table. Is that correct ?

Did I answer your question? Mark my post as a solution !

Proud to be a Datanaut !

Regular Visitor

## Re: Group By Duplicates in DAX

@PattemManohar Yes, I need an aggerate column that counts the number of duplicates. When this is achieved, I need the sum of those counts IF the value is more than 1.

Community Support Team

## Re: Group By Duplicates in DAX

HI @TimHellegers ,

If you mean use multiple aggregation on one field, you can consider to use summarize function to summary records with first aggregation mode, then use iteration functions to apply second aggregate.

Sample:

```Measure =
COUNTX (
FILTER (
SUMMARIZE (
Table,
[Category1],
[Category2],
[Category3],
"Count", COUNT ( Table[Column] )
),
[Count] > 1
),
[Count]
)
```

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin Sheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

For learning resources/Release notes, please visit: | |

Announcements

#### Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

#### Power BI Helps Homeless and Trouble Youth

We spoke with Power BI Super User, Greg Deckler, about his charity work

#### Watch Sessions On Demand!

Continue your learning in our online communities.

Top Kudoed Authors
Users Online
Currently online: 128 members 1,687 guests
Recent signins: