Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Hi all ,
need some help, i'm new to power bi and this one has me stumped.
i want to count the users that don't and do have
User | Role name | Role Type |
A | Walk the dog | Worker |
A | Water the dog | Worker |
A | Buy dog food | Manager |
B | Walk the dog | Worker |
B | Water the dog | Worker |
B | feed the dog | Worker |
C | Buy dog food | Manager |
C | take dog to vet | Manager |
C | Walk the dog | Worker |
C | Water the dog | Worker |
Expected result should be
User | Has manager role |
A | TRUE |
B | TRUE |
C | FALSE |
thanks in advance
Solved! Go to Solution.
That is supposed to be calculated column, not a measure.
Proud to be a Super User!
Hi @rafterse ,
Try this:
Has manager role =
NOT (
ISBLANK (
CALCULATE (
COUNTROWS ( data ),
FILTER (
data,
data[User] = EARLIER ( data[User] )
&& data[Role Type] = "Manager"
)
)
)
)
Proud to be a Super User!
That is supposed to be calculated column, not a measure.
Proud to be a Super User!
thanks it worked perfectly
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
94 | |
86 | |
82 | |
70 | |
49 |
User | Count |
---|---|
143 | |
123 | |
107 | |
61 | |
55 |