Forum Discussion
Anonymous
7 years agoNot applicable
DAX Function for Consolidated Calculation
Hello everyone, I need to create a measure to calculate the following operation: Imagine a product and we have linked two more products, being: Cod. 656 - Cod. 657 - Cod. 658. I need to consolid...
Anonymous
7 years agoNot applicable
First, in Power Query you have to transform your table into this form
Table 1
Cod | Consumption | Group|LinkId
656 | 10 | A |656
657 | 15 | B |656
658 | 05 | C |656
LinkId should be a hidden field. Second, you can create a measure
[Total Consumption] = calculate( sum ( 'Table 1'[Consumption] ), all ( 'Table 1' ), values ( 'Table 1'[LinkId] ) )
Best
D.