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
Anonymous
Not applicable

find number of times distinct people linked to a group appear in a day

dategroupperson numberdesired result
01-JanAa2
01-JanAb2
01-JanAa2
01-JanBc1
01-JanBc1
01-JanBc1
02-JanAd3
02-JanAe3
02-JanAf3
02-JanBg2
02-JanBh2

 

I have a group, a date and some people. Each group can have associated to it multiple people (sometimes with repetition). I want the returned value to be the number of distinct people associated to a group on a specific day. Using the example above, on 01/01, "A" had 2 distinct people (as person "a" is repeated). I tried using count, filter and calculate however I am very new to PBI so I have gotten nowhere thus far.

 

Thank you in advance.

1 ACCEPTED SOLUTION
v-cherch-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous 

You may create a column as below.

Column = CALCULATE(DISTINCTCOUNT(Table1[person number]),ALLEXCEPT(Table1,Table1[date],Table1[group]))

a1.png

Regards,

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

View solution in original post

1 REPLY 1
v-cherch-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous 

You may create a column as below.

Column = CALCULATE(DISTINCTCOUNT(Table1[person number]),ALLEXCEPT(Table1,Table1[date],Table1[group]))

a1.png

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the 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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

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.