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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
miguelsus2000
Helper III
Helper III

Combine two power query tables into a single dashboard table by timestamp and related data

Hi,

 

I have two tables which contain device data payloads (Hex).  They all come from a single Azure source, but had to split the tables as the devices are different and the payload information contains the data in different bytes.

 

First question:  Is there a better implementation to abstract the extraction of the data (e.g. temperature).  Temperature in one device uses one byte, but in toher uses a different byte in table.  

 

If i keep using the same implementation I have, then i want to dispaly both devices with a single timestamp and show the temperature for each in a joined table.

Table 1 in Power Query

Device  Timestamp  Temp

A           18:00:00      20

B            18:01:01      23

A            18:05:10      20....

 

Table 2 in Power Query

Device Timestamp Temp

C           18:02:00      31

D            18:03:01      29

D            18:03:10      29...

 

Expected Table in the report using table or matrix format which i can sort.  But notice that temp adn timestamp come from two different tables.

Device  Timestamp  Temp

A           18:00:00      20

B            18:01:01      23

A            18:05:10      20....

C           18:02:00      31

D            18:03:01      29

D            18:03:10      29...

 

Any recommendations?

 

 

 

 

 

 

1 ACCEPTED SOLUTION
v-yangliu-msft
Community Support
Community Support

Hi  @miguelsus2000  ,

Here are the steps you can follow:

1. Enter power query's home – append queries -- append queries as new

v-yangliu-msft_0-1610095707706.png

2. For the newly built append table, select transform – pivot column

20201.1.8111.png

3. Result.

v-yangliu-msft_2-1610095707720.png

You can downloaded PBIX file from here.

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-yangliu-msft
Community Support
Community Support

Hi  @miguelsus2000  ,

Here are the steps you can follow:

1. Enter power query's home – append queries -- append queries as new

v-yangliu-msft_0-1610095707706.png

2. For the newly built append table, select transform – pivot column

20201.1.8111.png

3. Result.

v-yangliu-msft_2-1610095707720.png

You can downloaded PBIX file from here.

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@miguelsus2000 , On wat is that you Append them in power Query

https://radacad.com/append-vs-merge-in-power-bi-and-power-query

 

Or in DAX

New Table = Union (Table1, Table2)

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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