Forum Discussion

hprose's avatar
hprose
Icon for Helper I rankHelper I
3 years ago
Solved

Get accurate matrix totals

Hello,   I have sample data in the below format. For simplicity's sake, I'm only including the customer dimension here, but my original data includes Manager, Director, etc.  I want to create ...
  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi hprose ,

    Please try:

     

    Amount change =
    SUMX (
        SUMMARIZE (
            'Sheet1',
            'Sheet1'[Customer],
            "measure",
                CALCULATE ( SUM ( Sheet1[Amount] ), 'Sheet1'[Date] = MAX ( 'Sheet1'[Date] ) )
                    - CALCULATE ( SUM ( Sheet1[Amount] ), 'Sheet1'[Date] = MIN ( 'Sheet1'[Date] ) )
        ),
        [measure]
    )

     

    Best Regards,
    Gao

    Community Support Team

     

    If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

    How to get your questions answered quickly -- How to provide sample data