cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
TimHellegers Regular Visitor
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.. Smiley Sad

 

Many thanks,

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
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
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 !





TimHellegers Regular Visitor
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
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: | |

Helpful resources

Announcements
Virtual Launch Event

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

Power BI Helps Homeless and Trouble Youth

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

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Top Kudoed Authors
Users Online
Currently online: 128 members 1,687 guests
Please welcome our newest community members: