Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Running Total - Collections since billed

I am looking to create a series of charts that will calculate the following, relative to the month a customer was invoiced:

 

1) collections

2) cumulative collections

3) cumulative collections as a % of billings

 

 

My flat file has columns for month of payment and month of invoice, and I have been able to create the first chart with relative ease. However, I'm struggling with how to properly create measures for # 2 / # 3. Any suggestions?

 

 

  • Hi Anonymous ,

     

    Please try the following measures:

     

    Cunulative amount = 
    SUMX (
        FILTER (
            ALLSELECTED ( 'Table' ),
            FORMAT ( 'Table'[Date], "mmmmyy" ) = MAX ( Dates[MonthYear] )
                && 'Table'[Order ID] <= MAX ( 'Table'[Order ID] )
        ),
        [SumAmount]
    )
    Cunulative % = 
    DIVIDE ( [Cunulative amount], SUM ( 'Billed Table'[Billed amount] ) )

     

    If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
    Best Regards,
    Winniz
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

2 Replies

  • v-kkf-msft's avatar
    v-kkf-msft
    Icon for Community Support rankCommunity Support

    Hi Anonymous ,

     

    Please try the following measures:

     

    Cunulative amount = 
    SUMX (
        FILTER (
            ALLSELECTED ( 'Table' ),
            FORMAT ( 'Table'[Date], "mmmmyy" ) = MAX ( Dates[MonthYear] )
                && 'Table'[Order ID] <= MAX ( 'Table'[Order ID] )
        ),
        [SumAmount]
    )
    Cunulative % = 
    DIVIDE ( [Cunulative amount], SUM ( 'Billed Table'[Billed amount] ) )

     

    If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
    Best Regards,
    Winniz
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.