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.
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,
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
97 | |
85 | |
67 | |
59 |
User | Count |
---|---|
150 | |
120 | |
100 | |
87 | |
68 |