March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
I have two tables, each are similar except that they contain different types of measured values, for example one contains pressure data, and the other has temperature data.
I would like create a new table that merges the two tables so that I have the two measurements, pressure and temperature, in the same table for each id and time.
As an example, here are the two source tables I would like to merge. My apologies for the formatting. The forum site isn't loading properly for me.
PRESSURE_TABLE TEMPERATURE_TABLE
id time pressure id time temperature
A 2019-12-13 1:00 5000 A 2019-12-13 1:00 12
B 2019-12-13 1:00 5200 B 2019-12-13 1:00 15
The resulting table after the merge would look like this:
id time pressure temperature
A 2019-12-13 1:00 5000 12
B 2019-12-13 1:00 5200 15
Hi @PowerOper
if i understand correct it shoud be enough to add calculated column to table pressure or temperature like this:
Temperature = lookupvalue('TEMPERATURE_TABLE'[temperature];
'TEMPERATURE_TABLE'[id];[id]
'TEMPERATURE_TABLE'[time];[time]
)
do not hesitate to give a kudo to useful posts and mark solutions as solution
it means that you have more then one row that satisfied both of your conditions.
you need to check data or define another rule
do not hesitate to give a kudo to useful posts and mark solutions as solution
thats great! good luck!
do not hesitate to give a kudo to useful posts and mark solutions as solution
so, @PowerOper we need to look at your data model to help you
do not hesitate to give a kudo to useful posts and mark solutions as solution
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
User | Count |
---|---|
26 | |
21 | |
20 | |
13 | |
12 |
User | Count |
---|---|
40 | |
27 | |
27 | |
21 | |
20 |