Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
android1
Post Patron
Post Patron

Count if

Hi,

 

Need to count the number of double up visits. This is where the ClientID is the same, the StaffID is not the same, the date is the same & the Start & End Times are the same. 

So in below there is 1 double up call. Need to show a count of 1.

 

double up.png

1 REPLY 1
v-shex-msft
Community Support
Community Support

Hi @android1,

 

You can use following measure to get count of rows of duplicate records.

Duplicate Count =
VAR summary =
    SUMMARIZE (
        ALLSELECTED ( Table ),
        [ClientID],
        [StartTime],
        [End Time],
        "Stuff Count", COUNT ( Table[Staff ID] )
    )
RETURN
    COUNTROWS ( FILTER ( summary, [Staff Count] > 1 ) )

 

Regards,

Xiaoxin Sheng

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.