Forum Discussion

HuskyMan's avatar
HuskyMan
New Member
4 years ago
Solved

Product usage tracking multiple items in one row

Hello All,

 

I am an avid Excel user, but I am new to Power BI and would like some direction. I created an example that mirrors what I am trying to achomplish.

 

Scope: The owner of a used car dealership wants to track what vehicles are being test driven. Sometimes a salesman will test drive multiple cars on one day. 

 

Picture of Excel data

 

 

This is how I would like to display the data in Power BI

 

I am able to create a relation between test drive 1 and the product details of each car; however, I cannot determine a way to connect all test drives to the product details. I have tried adding relationships, but I can only have one relationship active.

 

 

 

An example of what I am trying to show is the month of January should have seven test drives. 

If its an easy solution that I am missing and there are places where I can learn, please let me know!

 

Thank you!

  • HuskyMan , One very clear as data shared above has different column than one in relation diagram.

     

    But seem like unpivot the test drive 1, test drive 2, test drive 3 , is an option to be explored 

     

    https://radacad.com/pivot-and-unpivot-with-power-bi

     

    Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

2 Replies

  • HuskyMan , One very clear as data shared above has different column than one in relation diagram.

     

    But seem like unpivot the test drive 1, test drive 2, test drive 3 , is an option to be explored 

     

    https://radacad.com/pivot-and-unpivot-with-power-bi

     

    Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

  • Are you asking for my data in this format?

     

    DateSalesmanTest Drive 1Test Drive 2Test Drive 3
    1/1/2021JimFocusPrius 
    1/7/2021BobF150EscapeCorolla
    1/13/2021MikeEscapeCorolla 
    2/5/2021BobPriusCorollaRAV4
    3/5/2021MikeCorolla  
    3/23/2021MikeRAV4  
    3/25/2021BobRAV4Prius 
    3/25/2021BobEscape  
    3/25/2021BobFuision  
    4/4/2021JimPriusF150Corolla
    4/8/2021JimFocus  
    4/9/2021MikeF150Escape 
    4/12/2021BobFocus  
    5/13/2021MikeRAV4Prius 
    6/5/2021JimRAV4  

     

    CarManufacturerClassPrice
    FocusFordSedan18500
    PriusToyotaHybrid24000
    EscapeFordSUV25000
    RAV4ToyotaSUV27000
    CorollaToyotaSedan20000
    F150FordTruck30000

     

    So basically that feature seperates the row into multiple entries to format the data for Power BI. I think thats the solution I needed.