Forum Discussion

sunil3M's avatar
sunil3M
New Member
5 years ago
Solved

cummulative sum

hi

 

how to create below calculation in Power in a new column.

 

 

Orderd qty =SUMIF($A$2:A2,A2,$B$2:B47)

 

SKU is column A , BACK QTY is column B and ordered qty is the result qty as per above formula in excel.

 

SKU #BACK QTYOrdered qty
IX11010067010001000
IX11010077910001000
IX11010067010002000
IX11010077910002000
IX11010067010003000
IX11010067010004000
IX11010067010005000
IX11010067010006000
IX11010067030009000
IX1101007792000022000
 
 

 

 

  • Hi sunil3M ,

     

    Try the following formual:

    Order qty1 = 
    SUMX (
        FILTER (
            'Table',
            [SKU #] = EARLIER ( [SKU #] )
                && [Index] <= EARLIER ( [Index] )
        ),
        [BACK QTY]
    )


    Best Regards,
    Henry


    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

2 Replies

  • v-henryk-mstf's avatar
    v-henryk-mstf
    Community Support

    Hi sunil3M ,

     

    Try the following formual:

    Order qty1 = 
    SUMX (
        FILTER (
            'Table',
            [SKU #] = EARLIER ( [SKU #] )
                && [Index] <= EARLIER ( [Index] )
        ),
        [BACK QTY]
    )


    Best Regards,
    Henry


    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.