Forum Discussion

erhan_79's avatar
erhan_79
Icon for Post Prodigy rankPost Prodigy
6 years ago
Solved

increasing day by day table

Hi there ;

 

i need  your  kind support to calculate below issue on my report  ;

 

i have a table which one's name is Table A as below at left , i would like to calculate day by day increasing of amount based on date and based on Sales Group .Here some users adviced me to use to try "running total"  with quick measure but it s not available for my scenarios  , i need a new table as below at right , could you pls give the formula for new table pls 

 

thanks in advance 

 

  • Hi erhan_79 ,

     

    Would you please refer to the dax below based on the pbix file you provided:

     

    New Table =
    SUMMARIZE (
        'Table A',
        'Dimdate'[Date],
        'Table A'[Sales Group],
        "Amount", CALCULATE (
            SUM ( 'Table A'[Amount] ),
            FILTER (
                ALLEXCEPT ( 'Table A', 'Table A'[Sales Group] ),
                'Table A'[Report Date] <= MAX ( 'Table A'[Report Date] )
                    && 'Table A'[Billing Type] <> "F2"
            )
        )
    )

     

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

     

    Best Regards,

    Dedmon Dai

9 Replies