Forum Discussion

T-Ilias's avatar
T-Ilias
Regular Visitor
2 years ago
Solved

Multi level measure with DAX

Hello everyone,   Could you please help me on this calculation ? I have a table called cost, looks something like this :   Market Production center Year L1 Cost Structure L2 Cost Struct...
  • T-Ilias's avatar
    T-Ilias
    2 years ago

    Thanks.
    I end up doing this : 

       SUMX(
            SUMMARIZE(
                'Cost',
                'Cost'[L1 Cost Structure],
                'Cost'[L2 Cost Structure],
                'Cost'[L3 Cost Structure],
                "CostPerVolume", SUM('Cost'[Cost(M USD)]) / SUM('Cost'[Sales Volume(M)]) * 1000
            ),
            [CostPerVolume]
        )
     
    And it worked. will try the inscope too just to have options in future.