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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
Anonymous
Not applicable

Running Total by multiple columns

Hey guys,

 

I'm trying to calculate cumulative values based on multiple filters. I have the following measure in place right now:

 

 

Cumulative Conversions = 
CALCULATE( SUM(Conversions[Total Conversions]), FILTER( ALL(Conversions), Conversions[Date] <= MAX(Conversions[Date]) ),values(Conversions[Insertion Order]) )

So this shows the cumulative number of conversions over the course of time when I display this in a line and column chart. They are grouped by 'Insertion Order'. This way, I can select a few Insertion Orders using a slicer to display the respective data.

 

 

However, I would also like to be able to filter on 'Conversion Pixel', which is a column in the same dataset, Using this formula it only counts the total number of conversion per insertion order and does not take into account any of the filters I apply.

 

 

I've tried to add VALUES(Conversions[Conversion Pixel]) to the formula. Because not every conversion pixel has a value on every date, it won't display the total number of conversions of the conversion pixels selected over the entire lifetime.

 

Cumulative conversions.JPG

Take the example above. From the 10th of June, the 'Info page' pixel does not generate data anymore. I do, however, want to take this data into account while calculating the running total. So basically make sure that the running totals are shown based on the total amount of conversions generated over the lifetime of the Insertion Order.

 

Can anyone help me with this?

1 ACCEPTED SOLUTION
kdejonge
Microsoft Employee
Microsoft Employee

instead of 

ALL(Conversions)

you can do

ALLEXCEPT(Conversions, Conversions[Conversion Pixel])

 

View solution in original post

2 REPLIES 2
kdejonge
Microsoft Employee
Microsoft Employee

instead of 

ALL(Conversions)

you can do

ALLEXCEPT(Conversions, Conversions[Conversion Pixel])

 

Anonymous
Not applicable

@kdejongeThanks, works like a charm.

 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors