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
LogMill1
Frequent Visitor

Counting Distinct Pairs

I have two columns that pair with eachother and I am trying to count the distinct pairs.

 

For example:

StartEnd
AB
AB
AB
BC
BC
BC
BC
CD
CD

 

So the measure would count

Start A, End B once,

Start B, End C once, and 

Start C, End D once

 

Thank you in advance for any help/clarification

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @LogMill1 

pleaae try

Count =
COUNTROWS ( SUMMARIZE ( 'Table', 'Table'[Start], 'Table'[End] ) )

View solution in original post

3 REPLIES 3
devanshi
Helper V
Helper V

DISTINCTCOUNT('Table')

ThxAlot
Super User
Super User

 

= COUNTROWS( DISTINCT( Table1 ) )

 



Expertise = List.Accumulate(


        {Days as from Today},


        {Skills and Knowledge},


        (Current, Everyday) => Current & Day.LeanAndPractise(Everyday)


)



tamerj1
Super User
Super User

Hi @LogMill1 

pleaae try

Count =
COUNTROWS ( SUMMARIZE ( 'Table', 'Table'[Start], 'Table'[End] ) )

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.