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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Gasdetect40
Frequent Visitor

Counting Units Per Company

Good Day!

 

I have a live excel document that shows how many units were taken per company, with each company divided in to multiple foremans. All I want power bi to do is display how many 'pump & monitor' and '4 gas' are taken per company and not broken up between the foreman.

 

I will post a pic of the 'transformed data' 

 

Capture.PNG

10 REPLIES 10
johncolley
Solution Sage
Solution Sage

Hi @Gasdetect40 , You can create a measure like the following to create the total (gas & pmup) for each line:

 

Gasandpump = SUMX ('Tablename', 'Tablename'[gas] + 'Tablename'[pump])

You then put this in a table or a graph with the company column and it will summarise the totals per company. 

johncolley_0-1664412955812.png

If this answer solves your problem please mark it as a solution!

 

 

Good Morning, 

 

Unfortunatly this did not work for me, I'm trying to post the data but it wont let me. 

Hi @Gasdetect40 , Can you be more specific as to what didn't work. Were you able to create the measure? Or was it not displaying as you wanted?

ryan_mayu
Super User
Super User

could you pls paste the sample data (not the screenshot)?

What's more, what is the expected output? what's the logic of calculation?





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

Proud to be a Super User!




Good morning, thank you for the reply. 

 

I am unable to post the data, it says 'The file type (.xlsx) is not supported. How do I post the data properly?

you can directly copy paste the data in the reply like below

column column2
a 1
b 2
c 3




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

Proud to be a Super User!




CompanyContact4 GasPump&MonitorTotal Units
AcurenRob Arsenault22224
CartDarren81018
CartBev61117
Clean HarborsDoug28634
Clean HarborsMatt10515
Edmonton ExJeff8

4

12
Edmonton ExAlanna6410
Edmonton ExGreg527
MelloyJerry325
MelloyJason32638

 

What I would like is to be able to count how many '4 Gas' and 'Pump' and Monitors are issued per 'Company'. In a Table Visual like below:

 

Company4 GasPump&MonitorTotal
Acuren22224
Cart142135
Edmonton Ex191029
Melloy35843

@Gasdetect40 

it looks like the calculation logic is SUM

what's more, why we don't want to show the data of clean harbors?





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

Proud to be a Super User!




I'm sorry, that was my mistake. I forgot to include Clean Harbors

@Gasdetect40 

i don't even think you need to create a measure,just drag columns to a table visual

1.PNG





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

Proud to be a Super User!




Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.