cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper IV
Helper IV

Count number of companies NOT ordering certain jobs

Hi all!

 

I have a company table with company data, and a turnover table with all our sales lines including what job type it is.

 

I am interested in how to calculate number of companies BUYING a certain job type.

And how to calculate number of companies NOT BUYING a certain job type.

So I can make some percentage measure.

 

Data could look like this.

 

Company table:

CompanyID
1
2
3

 

Sales table:

CompanyIDJobIDJobTypeID
111
121
131
142
151
262
272
282
291
2101
3111
3121
3131
3141
3151
3161
3171
3181
3191
3201

 

thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Helper IV
Helper IV

Fixed.. I just made a calculated table in the company table:

 

Special jobs = CALCULATE(DISTINCTCOUNT(FactTurnover[TurnoverJobId]);FactTurnover[TurnoverJobTypeId]=1|| FactTurnover[TurnoverJobTypeId]=2||)
 
Everyone blank are the ones I am looking for

View solution in original post

1 REPLY 1
Helper IV
Helper IV

Fixed.. I just made a calculated table in the company table:

 

Special jobs = CALCULATE(DISTINCTCOUNT(FactTurnover[TurnoverJobId]);FactTurnover[TurnoverJobTypeId]=1|| FactTurnover[TurnoverJobTypeId]=2||)
 
Everyone blank are the ones I am looking for

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Community Conference

Microsoft Power Platform Communities

Check out the Winners!

secondImage

Create an end-to-end data and analytics solution

Learn how Power BI works with the latest Azure data and analytics innovations at the digital event with Microsoft CEO Satya Nadella.

Top Solution Authors
Top Kudoed Authors