March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe 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
date | group | person number | desired result |
01-Jan | A | a | 2 |
01-Jan | A | b | 2 |
01-Jan | A | a | 2 |
01-Jan | B | c | 1 |
01-Jan | B | c | 1 |
01-Jan | B | c | 1 |
02-Jan | A | d | 3 |
02-Jan | A | e | 3 |
02-Jan | A | f | 3 |
02-Jan | B | g | 2 |
02-Jan | B | h | 2 |
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.
Solved! Go to Solution.
Hi @Anonymous
You may create a column as below.
Column = CALCULATE(DISTINCTCOUNT(Table1[person number]),ALLEXCEPT(Table1,Table1[date],Table1[group]))
Regards,
Hi @Anonymous
You may create a column as below.
Column = CALCULATE(DISTINCTCOUNT(Table1[person number]),ALLEXCEPT(Table1,Table1[date],Table1[group]))
Regards,
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
89 | |
84 | |
70 | |
51 |
User | Count |
---|---|
206 | |
143 | |
97 | |
79 | |
68 |