Filter out all zero value for an ALL measure.

BasedBjorn

New Member
Joined
Sep 11, 2017
Messages
1
Hi,

Fairly new to DAX, but will try to explain my issue the best I can.

I have a "total sales" measure, and another "total sales ALL" measure with a few ALL statements. I did this so I can compare sales location results vs all store locations. My pivot also includes category and brand. These columns are included in my ALL statements in my "Total Sales ALL" measure. I am looking to adjust my "total sales ALL' measure to only include results where my "total sales" measure does not result in zero. Please see below. I would like the Total Sales All to result in 18 if that makes more sense as seen in below image.

https://ibb.co/geAjia

Thanks!
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Something like
Code:
total sales ALL:=CALCULATE(SUM(total sales);FILTER(salestable, total sales<>0))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,212
Members
452,618
Latest member
Tam84

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top