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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register 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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.