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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
arcanri
Frequent Visitor

Cumulative Totals not dynamic

Hello,

 

Having difficulty making my cumulative total dynamic.  In other words, my filters which are based on various categories in my data model are not working.  These filters are working fine for my regular (not cumulative) totals.  

 

Below is the syntax:

 

Cumulative Volumes =

Calculate([Actual Volume],
FILTER(
    ALLSELECTED('Flux Capacitor'),
    'Flux Capacitor'[Date] <= MAX('Flux Capacitor'[Date]
)
)
)

 

How can I ammend this syntax to get the cumulative totals to respond to my filters.

 

Thank you!

6 REPLIES 6
gmsamborn
Super User
Super User

HI @arcanri 

 

Just out of curiosity, what is the definition for [Actual Volume]?



Proud to be a Super User!

daxformatter.com makes life EASIER!

Actual as opposed to estimated (or planned) numbers.

I meant the DAX for [Actual Volume].

 

Ideally, it would be a simple sum. 



Proud to be a Super User!

daxformatter.com makes life EASIER!

A simple sum: Calculate(sum(Volume_net)), ...

Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your semantic model looks like, but please try something like below whether it works.

 

Cumulative Volumes =
CALCULATE (
    [Actual Volume],
    FILTER (
        ALL ( 'Flux Capacitor'[Date] ),
        'Flux Capacitor'[Date]
            <= MAX ( 'Flux Capacitor'[Date] )
    )
)


Microsoft MVP



If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.




LinkedInVisit my LinkedIn page




Outlook BookingSchedule a short Teams meeting to discuss your question



Greg_Deckler
Super User
Super User

@arcanri First, please vote for this idea: https://ideas.powerbi.com/ideas/idea/?ideaid=082203f1-594f-4ba7-ac87-bb91096c742e

This looks like a measure totals problem. Very common. See my post about it here: https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376

Also, this Quick Measure, Measure Totals, The Final Word should get you what you need:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907

Also: https://youtu.be/uXRriTN0cfY
And: https://youtu.be/n4TYhF2ARe8

 

If that isn't it, Sorry, having trouble following, can you post sample data as text and expected output?
Not really enough information to go on, please first check if your issue is a common issue listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882

Also, please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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