Forum Discussion
Merging and Plotting Multiple DataSets with Varying Time-step Increments
Hello,
I currently have created a PowerBI report with 4 different queries, each with data that increments by different timesteps (2 seconds, 1 minute, 2 minutes).
I have been trying for some time to set-up a relationship between all 4 queries so that I can plot all of the data on the same plot with the same DateTime axis.
Any help would be appreciated.
Best!
Hi, jstein91694
According to your description, I think you need to rename the four columns like date,time,timestamp,record. You need to make the column names and data types of the three tables exactly the same, and then append them.
If it doesn’t solve your problem, please feel free to ask me.
Best Regards
Janey Guo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
6 Replies
- amitchandakSuper User
jstein91694 , Not very clear. You should split data and time into date and time in all tbales
Date = [datetime].date
or
Date = date(year([datetime]),month([datetime]),day([datetime]))Time = [datetime].Time
or
Time = Time(hour([datetime]),minute([datetime]),second([datetime]))Join them with Date and time table and analyze together
Time table
https://kohera.be/blog/power-bi/how-to-create-a-time-table-in-power-bi-in-a-few-simple-steps/
Create a Date Table. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.
- jstein91694Frequent Visitor
Each of the queries has a Date and a Time column. Like I mentioned, one query may have formats of time that are like this: 3:50:02pm and it increments by 2 seconds, whereas another query has the format of time like this: 3:00:00pm and it increments by 1 minute. When I create my line plot and choose an axis, no matter which DateTime column I used, I am only ever to plot the data which corresponds to the query of the DateTime column I am using.
I would like to create a relationship between all queries, and be able to plot all of the queries' data on the same lineplot. (For queries that increment at 2 minute increments, I can average the data for each minute, if I can still plot the data on a DateTime axis that increments each minute)- amitchandakSuper User
jstein91694 , can these be appened?
Can you share a small sample data and sample output in table format?
- v-janeyg-msftCommunity Support
Hi, jstein91694
According to your description, I think you need to rename the four columns like date,time,timestamp,record. You need to make the column names and data types of the three tables exactly the same, and then append them.
If it doesn’t solve your problem, please feel free to ask me.
Best Regards
Janey Guo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.