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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.