Forum Discussion

mhsk's avatar
mhsk
Icon for Helper II rankHelper II
3 years ago
Solved

Total of Measure doesnt work

Hi,   I have a measure that calculates Projected Qty on Hand in warehouse based on Qty and Demand, calculation is all good on item level but i can not crack it how to approach to make a summary of ...
  • MFelix's avatar
    3 years ago

    Hi mhsk ,

     

    Add the following measure to your model:

    Projection Total = 
    IF (
        ISINSCOPE ( Extract_ld_det_Items[ld_part] ),
        [Projection QOH],
        SUMX (
            SUMMARIZE (
                ALLSELECTED (
                    Extract_ld_det_Items[ld_part],
                    Extract_ld_det_Items[Extract_mrp_det (2).Start of Week]
                ),
                Extract_ld_det_Items[ld_part],
                "ProjectionValue", [Projection QOH]
            ),
            [ProjectionValue]
        )
    )