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
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
Employee
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
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.