Forum Discussion

Depper33's avatar
Depper33
Regular Visitor
4 years ago

Linking data from multiple tables

Hi, I've just started using PowerBI & I'm trying to create a dashboard to display stock history by month.

 

I currently have 3 different databases in MS Access where the data is stored. The only difference between the 3 is that they have different date ranges in each. So April only has data for 01/04/2022 - 30/04/2022, likewise with May & June. My goal is to be able to filter data within Power BI so that I can see all of the data from across the tables, so from April to June. 

 

 

I've managed to find a way to get around my issue, although I don't think it's best practice? Currently, I have appended the 3 tables so that all of the data is effectively in one table. Which works, but I don't think this is very future-proof because I'll be adding in data for each month. So I'll have to append each month's worth of data onto the table. (There are around 70,000 rows for each day, to give an idea of the scale)

 

 

I think that I might be able to resolve this by using relationships between the tables, but I've got no idea how to structure these. All the material I have read does not seem to cover a scenario where tables have the same data, just for different date ranges. 

 

So my question is:

 

Is this possible to do with relationships & if so, how would I structure these? 

 

 

Is this possible to achieve with relationships? If so, where would I start? Ideally, I don't want to have to move away from using MS Access to store each month's data within its own table. 

 

Any help is greatly appreciated.

3 Replies