Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Running/Cumulative total by multiple group

Hi to all,

 

Need to fix something in my formula. 

 

I have created the following formula as common to do a running total.

 

Cumulative %  =
CALCULATE(
    DIVIDE([Cumulative Amount Unpaid],[Cumulative Billings]),
    FILTER(
        ALLSELECTED('Charge Regsiter Table'[Date From Period]),
ISONORAFTER('Charge Regsiter Table'[Date From Period], MAX('Charge Regsiter Table'[Date From Period]), DESC)
))
 
 
But is having an error when I put that in a Matric and add Columns to the matrix.
 
Matrix w/ column:
 
1.PNG

 

 

With Out Column in the Matrix:

2.PNG

 

any thoughts on why day 21 changes? also, notice that day 19 to day 22 calculation are consistent 

 

 

 
1 ACCEPTED SOLUTION

Hi @Anonymous 

Glad to hear the reply is helpful, please accept the reply as solution, that way, other community members will easily find the solution when they get same issue.

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-cherch-msft
Employee
Employee

Hi @Anonymous 

Please try below measure.If it is not your case,please share the .pbix file for us to check.You can upload it to OneDrive and post the link here.Do mask sensitive data before uploading.

Cumulative % =
CALCULATE (
    DIVIDE ( [Cumulative Amount Unpaid], [Cumulative Billings] ),
    FILTER (
        ALLSELECTED ( 'Charge Regsiter Table'[Date From Period] ),
        'Charge Regsiter Table'[Date From Period]
            <= MAX ( 'Charge Regsiter Table'[Date From Period] )
    )
)
Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Thanks,

 

that fixed it.

 

 

Hi @Anonymous 

Glad to hear the reply is helpful, please accept the reply as solution, that way, other community members will easily find the solution when they get same issue.

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.