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
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
Employee
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
Employee
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
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.