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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

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
Fabric Data Days is here Carousel

Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 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.