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
Highlighted
Helper IV
Helper IV

Re: Count number of companies NOT ordering certain jobs

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
Highlighted
Helper IV
Helper IV

Re: Count number of companies NOT ordering certain jobs

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

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (801)