How do i slice this measure?

MrJoosten

Board Regular
Joined
Nov 12, 2016
Messages
118
Hello guys,

I've got a measure that works perfectly. The only downside is, I cant use my slicer(s).

This is the code I've got so far:
Code:
Cumulative line ACT 2017 = 
          Calculate(
              SUM(DATA[ACT 2017])
              FILTER(
    ALL(
         (DATA));DATA[DATE] <= MAX(DATA[DATE]));DATA[ACT 2017] > 0 
)

The slicer works for the variables on the (DATA) table. But I want to be able to slice a connected table called: "SOLD TO TABLE".
On the SOLD TO TABLE are my customers and its important that I can filter on those.


Thanks for any advice!

Kind regards,
Peter
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
I'm a little surprise slicers work on this measure because you are filtering over the whole table using ALL(). Can you slice columns other than [Date]?

I would suggest switching ALL() to ALLSELECTED() or ALL(DATA) to ALL(DATE[DATE]).
 
Upvote 0

Forum statistics

Threads
1,215,051
Messages
6,122,871
Members
449,097
Latest member
dbomb1414

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