Forum Discussion
Table Visual Showing Wrong Data
- 5 years ago
Hi Anonymous,
You can merge the three tables by the common column ID and then group them to calculate sum.
After merging into new_table, you can try measure as:
TOTAL QTY = CALCULATE( SUM(FactSales[UnitQty]), FILTER( ALL(new_table), 'new_table'[Product code]=MAX('new_table'[Product code]) && 'new_table'[BatchID]=MAX('new_table'[BatchID]) ) )Best Regards,
LinkIf this post helps then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous , you can not take an ungrouped column CurrentHOStock[BatchID] as this not joined to Factsales. You can take min or max of that
- Anonymous5 years agoNot applicable
Thank you for your reply amitchandak .
How can group columns and take desired results? Please help me.
- v-xulin-mstf5 years ago
Community Support
Hi Anonymous,
You can merge the three tables by the common column ID and then group them to calculate sum.
After merging into new_table, you can try measure as:
TOTAL QTY = CALCULATE( SUM(FactSales[UnitQty]), FILTER( ALL(new_table), 'new_table'[Product code]=MAX('new_table'[Product code]) && 'new_table'[BatchID]=MAX('new_table'[BatchID]) ) )Best Regards,
LinkIf this post helps then please consider Accept it as the solution to help the other members find it more quickly.