Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago
Solved

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.

 

  • mickey64's avatar
    mickey64
    2 years ago

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

     

     

     

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

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

     

    Step 2: I make a 'Calendar' table.

     

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

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

     

    Step 4: I add some relationships below.

     

    Step 5: I make some tables and some matrixs.

     

     

     

9 Replies

  • Anonymous's avatar
    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.

  • 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's avatar
      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

       

      • mickey64's avatar
        mickey64
        Super User

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

         

         

         

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

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

         

        Step 2: I make a 'Calendar' table.

         

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

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

         

        Step 4: I add some relationships below.

         

        Step 5: I make some tables and some matrixs.