Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello,
As my nane implies, I am new to PowerBI, but after some searching, I could not find the answer to this question. Apologies if it is out there and I missed it!
I have a very large dataset that looks something like below.
Requests for Assistance | |
Requestor | Date |
Dave | 2/4/2021 |
Suzy | 2/5/2021 |
Dave | 2/6/2021 |
Joe | 2/7/2021 |
Bill | 2/8/2021 |
Suzy | 2/9/2021 |
Tom | 2/10/2021 |
Frank | 2/11/2021 |
Jolene | 2/12/2021 |
Maggie | 2/13/2021 |
Suzy | 2/14/2021 |
Dave | 2/15/2021 |
Kathy | 2/16/2021 |
I want to be able to calculate the number of unique requests based on a table of VIP's (I don't need to know the quantity for each VIP, just how how many in this table are from VIP's. That table looks like
VIP Requestors |
Requestor |
Suzy |
Frank |
In this example, the measure should return 4.
Appreciate your help in understanding how to do this!
Solved! Go to Solution.
There are lots of ways to do this.
Here are a couple:
COUNTROWS (
FILTER ( Requests, Requests[Requestor] IN VALUES ( VIPs[Requestor] ) )
)
CALCULATE (
COUNT ( Requests[Requestor] ),
TREATAS ( VALUES ( VIPs[Requestor] ), Requests[Requestor] )
)
There are lots of ways to do this.
Here are a couple:
COUNTROWS (
FILTER ( Requests, Requests[Requestor] IN VALUES ( VIPs[Requestor] ) )
)
CALCULATE (
COUNT ( Requests[Requestor] ),
TREATAS ( VALUES ( VIPs[Requestor] ), Requests[Requestor] )
)
That was super helpful Alexis! Thank you very much.
Hi PBINewbi:
Don't worry, in the beginning all this seems confusing. I have put together an appropriate data model (based on what you wrote) and added supporting tables. The solution is done in both a calculated column and measure.
I will attach file for your review. There's usually more than one way to get to a result.
I hope you can accept as a solution. Thanks..https://drive.google.com/file/d/1i9COJVf8XcwtYkaB6a70RpqA_vhJDQ0z/view?usp=sharing
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
8 | |
8 | |
8 | |
6 |
User | Count |
---|---|
14 | |
12 | |
11 | |
10 | |
8 |