Forum Discussion
Sum inventory quantity in another table
- 7 years ago
Hey,
due to the fact that the INVENTORY table has on line per item you can leverage the power of relationships. Create a relationship between the table INVENTORY on the one side and the table STOK on the many side like so:
This allows to create a calculated column inside the INVENTORY table using this DAX statement:
Column = CALCULATE(SUM('STOK'[Qty]))Hopefully this is what you are looking for.
Regards,
Tom
Hey,
due to the fact that the INVENTORY table has on line per item you can leverage the power of relationships. Create a relationship between the table INVENTORY on the one side and the table STOK on the many side like so:
This allows to create a calculated column inside the INVENTORY table using this DAX statement:
Column = CALCULATE(SUM('STOK'[Qty]))
Hopefully this is what you are looking for.
Regards,
Tom
- unclejemima7 years agoPost Patron
Thanks!
Is is possible to do this as column not a measure?
- TomMartens7 years agoSuper User
Hey,
as I stated just create a calculated column in the inventory table:
Regards,
Tom
- unclejemima7 years agoPost Patron
My appologies, I misread. Thank you so kindly!