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.
Hi,
I feel this should be simple, but can't seem to get it.
I have 2 tables: one is a list of Job #, the other a list of Requests with a related Job #.
Job # |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
Request | Job # |
A | 2 |
B | 4 |
C | 5 |
I'm simply trying to get a count of how many Job # do not have a Request against them.
So there are 3 Requests againt Job # 2, 4 and 5. Therefore Jobs 1, 3, 6, 7, 8 do not have Requests against them so the answer = 5.
I could do this with a countif in Excel, is there a straightforward way in Power BI?
Many thanks, Andrew
Hi, try this formula
Count of Jobs without Requests = COUNTROWS(Job) - DISTINCTCOUNT(Request[Job #])
Thanks- I'll try this one too!👍
Thanks! I'll give it a go when I get home. Just reading that though - is that not going to return the number of Jobs WITH a request? Ie where there's a matching ID? I want the opposite..
Sorry! Read it too quickly, I see what you're doing ! 😁thanks!!
Hi @naninamu try this measure
VAR_job = ReturnJob[id] RETURN COUNTROWS( FILTER( ALL(Job), _Job = Job[id] ) )
and don't forget to create relationship b/w these two tables.
Thanks
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 |
---|---|
81 | |
79 | |
58 | |
35 | |
34 |
User | Count |
---|---|
99 | |
59 | |
56 | |
46 | |
40 |