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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Subtract columns from two different many-to-many Azure tables

Hello!

 

This will be long...

 

At first, my English is bad, I am very new to PBI and also in something like data science so please be patient and try to detect some problems in my solution and describe it with more details. Thank you.

 

So... I have 2 AZURE TABLES:

 

(1) Internal Data:

- Date time

- Temperature

- Humidity

 

(2) External Data:

- Date time

- Temperature

- Humidity

 

Problem is that in table (1) are about 4 times more data. Because table (1) obtaining data about every 30 seconds and table (2) obtaining data every 2 minutes.

 

I rounded the date times of both tables to 15 seconds. (NOT SURE IF NECESSARY?)

 

Then I created MANY-TO-MANY relationship between tables based on that rounded date time. (because there can also happens state where there came 2 rows of data at same time, so IS M-T-M GOOD CHOICE?)

 

And now... I need to SUBTRACT temperatures and humidities for new columns: TEMPERATURE and HUMIDITY DIFFERENCE. Count of new rows should be exact as INTERNAL table rows count. Because there are more internal data than external, I need to calculate SUBTRACT of current INTERNAL data and CLOSEST EXTERNAL data. (IS THAT GOOD IDEAS?)

 

And the second question. Is there any way to mix both tables into one table, where first column will be Date time in 15 seconds intervals from 2019/2/22 00:00:00 to NOW. Other columns I want to chose from that tables... And rows will be filled from both tables based on date time match. And last, hardest... Other empty rows, cells should be filled from with last value in that column. If I will have this "big" table then my first problem should be easy solved, but the best for me will be when I will know both solutions and then choose. 

 

This is part of my Balechor's work and I really stuck there. I don't know ho to do almost all of this. Thank you very much for every answer.

1 REPLY 1
v-cherch-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous 

Sample data and expected output will be helpful to provide an accurate solution.If you need further help,please follow the How to Get Your Question Answered Quickly to post your simplified assumed data and expected output.It would be better if you can upload the .pbix file to OneDrive and post the link here. Do mask sensitive data before uploading.

Here is the document about more to more relationship for your reference.

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.