Forum Discussion

nairisha's avatar
nairisha
Advocate I
10 years ago

Link Dates from two tables

Hi,

 

I have two tables in my database, one containing the traffic details in a shop and another containing the transaction. Each table records the datetime when someone entered the shop and purchase something. I can separately create table showing traffic and purchase but i want to compare it in a single x axis with date or time as a common dinominator in a clustered column chart.

 

I have failed to achieve the desired result. Can you help me with this.

 

Thanks in advance.

 

10 Replies

  • ankitpatira's avatar
    ankitpatira
    Community Champion

    nairisha Consider using Combo chart so Line and Clustered Column Chart to achieve what you're after. I am not aware of any visual which will give you multiple x-axis. Also consider using Tornado custom visual which may come closer to what you want to achieve.

    • nairisha's avatar
      nairisha
      Advocate I

      ankitpatira I don't want multiple x-axis. What I want to achieve is, suppose I have two tables 


       

       

       

       

       

       

       

       

       

       

      What I would like to achieve is a X-axis of may be date and Y-axis having both value 1 and value 2 on a clustered column chart.

       

       

       

       

      • ankitpatira's avatar
        ankitpatira
        Community Champion

        nairisha In powerbi desktop, go to query editor (Edit Queries), on Home ribbon, under Combine tab, click Merge Queries.Select date column from both the tables and appropriate join type. Result will give you combine date with values from both tables that you can plot on x and y axis.