Forum Discussion

AllanBerces's avatar
AllanBerces
Post Prodigy
1 year ago
Solved

SUM Weekly

Hi good day, Can anyone pls need help on my table for the new new column to get the SUM of PT pls refer below.     Thank you  
  • AllanBerces's avatar
    AllanBerces
    1 year ago

    Hi nandic thank you for your reply, i got the solution on my problem.

     

    SUM_PT =
    SUMX (
    FILTER (
    SUMMARIZECOLUMNS (
    'Table01'[Trade],
    'Table01'[Week No.],
    'Table01'[PT]
    ),
    'Table01'[DPR_DATE] = EARLIER ( 'Table01'[DPR_DATE] )
    && 'Table01'[Trade] = EARLIER ( 'Table01'[Trade] )
    && 'Table01'[Week No.] = EARLIER ( 'Table01'[Week No.] )
    ),
    'Table01'[PT]
    )