I've used this forum for months, but this is my first time asking for help.
I am trying to make a calculated column in one of my related tables that uses an UN-related column as the lookup field. I have 2 fields that have product names. The 1st is my Product (key) and 2nd is a raw material. For some of my products, the raw material is also a finished good (product - key).
example: Product A --> Product B + Raw Material X
<tbody>
</tbody>
I have another fact table (factProductionHours) that shows how long it took me to make each product [hrs]. These are both related to my dimProduct table. I would like to make a calculated column that shows how many hours were used to make a product that is also used as a RM.
My first idea was to do this outside of DAX in the linked table and just use SUMIF. This works except it won't apply the date filters on my factProductionHours table. In DAX if I use SUMX it pulls the production hours for the Product Name (key), not the Raw Material Name column.
If you need further clarification I will try to explain better. Thanks in advance.
I am trying to make a calculated column in one of my related tables that uses an UN-related column as the lookup field. I have 2 fields that have product names. The 1st is my Product (key) and 2nd is a raw material. For some of my products, the raw material is also a finished good (product - key).
example: Product A --> Product B + Raw Material X
Product Name (key) | Raw Material Name | %of RM |
Product A | Product B | 80% |
Product A | Raw Material X | 20% |
Product B | Raw Material Z | 60% |
<tbody>
</tbody>
I have another fact table (factProductionHours) that shows how long it took me to make each product [hrs]. These are both related to my dimProduct table. I would like to make a calculated column that shows how many hours were used to make a product that is also used as a RM.
My first idea was to do this outside of DAX in the linked table and just use SUMIF. This works except it won't apply the date filters on my factProductionHours table. In DAX if I use SUMX it pulls the production hours for the Product Name (key), not the Raw Material Name column.
If you need further clarification I will try to explain better. Thanks in advance.