Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Hi experts,
I am building a model to monitor the daily space utilization in the warehouse: Each warehouse contains tanks where is storage liquid.
For that porpouse I have 3 tables:
- DimDate: Dates
- DailyStock: Fact table that contains the information about the utilisation per day and per tank.
- Capacity: It should be a dim table containing the information about the tanks (location, type, group and capacity) but it becames more complex because at the beginning of each fiscal year ( 1st july), the capacity changes (or at least it could change).
So, my problem is that I dont know how to deal with this many to many relationship in order to get the following desired output:
Attached you will find a simplified model in case it helps.
https://www.dropbox.com/s/m5yfxnv0plvf3f0/Utilisationrate.pbix?dl=0
Many thanks for the help
Solved! Go to Solution.
also you can over power query do the concatenate and remove the duplicates of the reference column in case
Proud to be a Super User!
Is mandatory to have dates because it can change from one year to another
you need to check the source for some reason you have 2 exact date, id tank and location with 2 diferent capacity you need it to be unique values or add a extra factor if missinf that determine with tank etc its the one to link correctly between tables.
Proud to be a Super User!
you dont need a many to many relantionship for what Im seeing you just need to make a relantion between capacity and daily stock , cause date and capacity are dim tables that contain support data, the dailystock would be the fact table,
link by tank id on both tables, you sould have only 1 capacity per tank I guess
Proud to be a Super User!
Hi @StefanoGrimaldi thanks for your promt reply.
I have create a custon column in both tables to get an ID concatenating Tank & Location. But despite this, I have a many to many relationship because in the Capacity table there are different dates.
thanks!!
but teorically you dont need a date column on teh capacity table you coudl delete it, or does the capacity change by date for each tank ?
Proud to be a Super User!
also you can over power query do the concatenate and remove the duplicates of the reference column in case
Proud to be a Super User!
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
87 | |
87 | |
87 | |
67 | |
49 |
User | Count |
---|---|
135 | |
113 | |
100 | |
68 | |
67 |