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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Kaladin
Frequent Visitor

Calculate multiple hour * rate entries for a ticket

Hello i am new to DAX and trying to calculate a total cost to a ticket. My table looks like this 

 

TicketID    Company      Hours  Hourly Cost
   1        comapny a      1     100
   1        comapny a      0.5   125
   2        Company b       5     50
   3        Company c       2     150
   3        Company c       1     125
   3        Company c       3     75

 

Each ticket can have multiple entries with different costs. I am looking for the total cost of each Ticket. 

 

I have tried using 

cost = [hours] * [hourly cost] but it errors and says a single value for the column cannot be determined. I have been messing with sum and sumx but cannot figure out the right formula to come up with one cost value for the ticket as a whole. Any help in the right direction is appreciated. Thanks! 

1 ACCEPTED SOLUTION
milanpasschier3
Resolver I
Resolver I

Hello, can you have a look at this?

 

https://drive.google.com/drive/folders/1CO5accqcXUeUUvlqeRNTG-xFKAmsOSLJ?usp=sharing

Best,

 

Milan

 

PS, mark my answer as solution if it fits your needs.

View solution in original post

1 REPLY 1
milanpasschier3
Resolver I
Resolver I

Hello, can you have a look at this?

 

https://drive.google.com/drive/folders/1CO5accqcXUeUUvlqeRNTG-xFKAmsOSLJ?usp=sharing

Best,

 

Milan

 

PS, mark my answer as solution if it fits your needs.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

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.