Forum Discussion
Power BI model for Production Process
Hi,
I have a model for production process, the problem I have is that I have the fact table with transactional sales have columns of [Item,Category,Date,Quantity,Quantity in bottle,Price per KG) and dimension table of calender table and store table and these dimension table has no duplicate values , but there is another dimension table which is product table (this table has 4 column of [Item,Material,Quantity,Price of Material] t=but this dimension table has duplicate items becasue each item contain many materials so every item is duplicated and some materials are are common between some items also,
now I want to create relationship between the product table and sales table to create measure to calculate
1-the total cost of each item
2-total materials used every month in separate visual (the quantity of product in sales table and the quanity of each material in material table)
Regards
5 Replies
- lbendlinSuper User
does each item always have the same set of materials? In that case you can add another fact table for the materials, and use measures fo your calculations.
- osama_ayoubHelper III
Thanks for Help
No, it is not necessary each item have the same subset of materials , there is only some common materials in each product , could you suggest how can I make the relationships between the tables in this model
Regards- lbendlinSuper User
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information or anything not related to the issue or question.
If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216
Please show the expected outcome based on the sample data you provided.
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523
- osama_ayoubHelper III
ronrsnfld
Could you help me please in this data model ?
Regards