Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Kraw421
New Member

Calculate how many suppliers have certain number of workers

Hi all,

I am very new to Power BI (mainly a Spotfire user) and i am totally stuck trying to convert my spotfire brain to Power BI. 

(Dummy example below of what i need to do).

 

I have a report that has one table "Workers", with columns "Employee ID" and "Supplier". 

I need to table that shows me how many workers each supplier has, but now i need to show how many suppliers have only 1 worker, 2 worker etc...

or even summarise the data in ranges, i.e. 100 suppliers have 1-5 workers, 80 have 6-15, 30 have 16-30....etc...

I would have done this in spotfire by summing the total employee ID over supplier. 

 

Employee IDSupplier
1233545Maxx CO
2354565Maxx CO
2345665Johnson PTY
5675678Felix Sons
5656453Maxx CO
3243565Clara Ltd 

  

Number of workersNumber of Suppliers
13
20
31
1 ACCEPTED SOLUTION
ryan_mayu
Super User
Super User

@Kraw421 

pls see the attachment below

11.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

5 REPLIES 5
ryan_mayu
Super User
Super User

@Kraw421 

pls see the attachment below

11.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Thanks for this. How did you create the new table 2? 

Sorry i might need some step by step instructions on how you built it...

I use DAX to create the table

 

Table 2 = GENERATESERIES(1,max('Table'[Column]))
 
12.PNG




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




thank you! i managed to figure out your solution and it worked! thanks champ!!

you are welcome





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

Find out what's new and trending in the Fabric Community.