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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Linking multiple tables for one visual

I'm trying to find the best way to do this but my limited understanding and knowledge of PowerBI is just frying my brain.

I have 2 main tables:

 

Table 1 - Timesheet data: Employee entries with each category and hours for each of the categories for every day.

Table 2 - Report 1: These are work orders for customer request.

 

With a third table to translate the data between table 1 & 2

 

Table 3 - Remedy customer list: Is like a translate/match table where I've taken the WBS Element from timesheet data and matched it against a customer name in Report 1 and matched it against an order type in report 1.

 

Then a date table which is linking both table 1 & 2

 

Please let me know if you need anything else. I really appreciate any and all help / suggestions.

 

Screenshot 2024-07-31 110559.png

1 ACCEPTED SOLUTION

Step 0: I use your data below. (Date: yyyy/mm/dd)

 

mickey64_7-1722440035888.png

 

mickey64_8-1722440083647.pngmickey64_9-1722440104796.png

 

Step 1: I add a 'WBS Element' column to the 'Remedy customer list' table.

    WBS Element = [Cat match]&" - "&[Order type]

mickey64_0-1722439630613.png

 

Step 2: I make a 'Calendar' table.

mickey64_1-1722439699454.png

 

Step 3: I make a 'WBS-List' table.

    WBS-List = SUMMARIZE('Timesheet data','Timesheet data'[WBS Element])

mickey64_2-1722439725242.png

 

Step 4: I add some relationships below.

mickey64_3-1722439829607.png

 

Step 5: I make some tables and some matrixs.

mickey64_4-1722439898605.png

 

mickey64_5-1722439917776.png

 

mickey64_6-1722439953301.png

 

View solution in original post

9 REPLIES 9
mickey64
Super User
Super User

I think the cause are some "many-to-many" relationships.
The amount of data doesn't need to be large, so if you can provide me with some concrete 'demo' data I can suggest solutions to improve the situation.

Anonymous
Not applicable

Hi Mickey,

 

Thank you very much for taking the time to look into this for me. Here's some dummy data:

Table 1: Timesheet data  
EmployeeDateQty of hoursWBS Element
Joe Blogs01/04/20244.5Internal Meetings
Joe Blogs01/04/20232External customer 1 - Provision
Joe Blogs01/04/20231External customer 1 - Cease
Cat Smith01/04/20247.5Internal Meetings
Roger Ralph01/04/20247.5Admin
Joe Blogs02/04/20247.5External Meetings
Cat Smith02/04/20244Admin
Cat Smith02/04/20243.5External customer 2 - Cease
Roger Ralph02/04/20247.5Admin

 

Table 3: Remedy customer list 
Cat matchOrder typeRemedy customer
Interal customer 1ProvisionScotland
Interal customer 1CeaseScotland
Internal customer 2ProvisionLondon
Internal customer 2CeaseLondon

 

Table 2: Remedy data  
WO IDOrder typeRemedy customerSubmit date
WO001ProvisionScotland01-Apr
WO002CeaseScotland01-Apr
WO003ProvisionScotland01-Apr
WO004CeaseLondon02-Apr

 

Step 0: I use your data below. (Date: yyyy/mm/dd)

 

mickey64_7-1722440035888.png

 

mickey64_8-1722440083647.pngmickey64_9-1722440104796.png

 

Step 1: I add a 'WBS Element' column to the 'Remedy customer list' table.

    WBS Element = [Cat match]&" - "&[Order type]

mickey64_0-1722439630613.png

 

Step 2: I make a 'Calendar' table.

mickey64_1-1722439699454.png

 

Step 3: I make a 'WBS-List' table.

    WBS-List = SUMMARIZE('Timesheet data','Timesheet data'[WBS Element])

mickey64_2-1722439725242.png

 

Step 4: I add some relationships below.

mickey64_3-1722439829607.png

 

Step 5: I make some tables and some matrixs.

mickey64_4-1722439898605.png

 

mickey64_5-1722439917776.png

 

mickey64_6-1722439953301.png

 

Anonymous
Not applicable

Hi Mickey, thank you for doing that. I've managed to replicate what you've got on my table. The only difference is, the one-to-one relationship is a one-to-many WBS-list (one) to Remedy customer list (many).

 

Now how can I take this and make a visualisation bar chart with the WBS Element in the X Axis and then the Sum of quantity (hours from timesheet data) and the count of WO as another bar, both in the Y Axis? The Sum of quantity is showing correctly in the Y axis but the count of WO is just counting all WOs in every X axis category.

How about this graph?

mickey64_0-1722514160813.png

 

This problem of 'the count of WO' could be solved if there was a key column in 'Remedy data' table to set a relationship with 'WBS-List' table, but I am unable to create a key column because I do not understand the meaning of each piece of data.

Anonymous
Not applicable

Screenshot 2024-08-01 143527.png

 

Thank you so much for sticking with me here. So this is what I'm trying to achieve but when adding the Count of WO ID, it is giving the same number for each WBS element category, but it should be showing:

External Customer 1 - provision: 2

External Customer 1 - Cease: 1

External Customer 2 - Cease: 1

You can solve the problem if you can add a "WBS Element" column to the "Remedy data" table and add a relationship.
I don't know the details of your data, so I can't solve the problem, but I'm sure the data you have has the information to add a "WBS Element" column.

 

mickey64_0-1722525029654.png

 

Anonymous
Not applicable

Ahh ok I've created a new column in the Remedy data table and used the LOOKUPVALUE DAX formula and that's worked. Thank you so much for your help with this!!

Anonymous
Not applicable

Somehow I forgot to put my ask in the main post.. 

How can I create a visual which will show the total hours logged against each customer and the total new orders placed for each customer, both on the Y Axis and the WBS Element text on the X Axis.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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