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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
trndlnd
Frequent Visitor

Combine two tables price/equipment

Hi,

I have created a Power BI report that shows when employees take out new equipment at work and when they do it. Data is retrieved from a CSV table online (from another system). This view works fine.

I also want to show the cost for each department, so I have created a separate table that contains the name of the equipment and the price per unit. The name of the different equipment the equipment matches with the CSV table.

How can I get these two forms to connect so that I get the total price per department and can sort by different equipment.

Is this what is called a look up table?

 

Screenshot from the csv table.

"AvdID" is department ID. "AvdelingUtstyr" is the name of the department. "UtstyrType" is the name of the equipment. "UtlevertDate" is the date the equipment is picked up.

Skjermbilde 2023-11-02 130718.png

 

Screenshot from the price table

"UtstyrType" is the name of the equipment (same as the table above.

"Pris" is the price of the equipment.

trndlnd_0-1698926980897.png

 

I guess there is an easy fix to this but I just can't see it right now.

 

Thanks for any help!

1 ACCEPTED SOLUTION
Idrissshatila
Super User
Super User

Hello @trndlnd ,

 

then you need to merge queries and get the price to he first table by the equipment name.

https://learn.microsoft.com/en-us/power-query/merge-queries-overview

 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




View solution in original post

1 REPLY 1
Idrissshatila
Super User
Super User

Hello @trndlnd ,

 

then you need to merge queries and get the price to he first table by the equipment name.

https://learn.microsoft.com/en-us/power-query/merge-queries-overview

 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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