Cell references in filters

clavdal

New Member
Joined
Nov 4, 2014
Messages
1
Inspired by Excel's timelineslicer I have the following cubeset:
<cdate(""2015-01-01"")))")[ code]
<cdate(""2015-01-01"")))")
<cdate(""2015-01-01"")))")
<cdate(""2015-01-01"")))")

<cdate(""2015-01-01"")))")
Code:
=CUBESET("ThisWorkbookDataModel";"Filter({[Appointment].[ScheduledStart].levels(1).Members}, ([Appointment].[ScheduledStart].CurrentMember.MemberValue>=CDate(""2013-01-01"") AND [Appointment].[ScheduledStart].CurrentMember.MemberValue'<'CDate(""2015-01-01"")))")

<cdate(""2015-01-01"")))")[ code]
It works perfectly - but I would like to replace the dates (2015-01-01) with a cell reference (containing the date) but I do not know how


Or other good ideas for how I make a cubeset containing all records from a month based on a fully date record.</cdate(""2015-01-01"")))")[></cdate(""2015-01-01"")))")
</cdate(""2015-01-01"")))")
</cdate(""2015-01-01"")))")
</cdate(""2015-01-01"")))")
</cdate(""2015-01-01"")))")[>
 
Last edited:

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
how about =CUBESET("ThisWorkbookDataModel";A1;A2;...)

In cells A1, A2, ... you can just enter your dates 2013-01-01,... which should work in most cases (if these values are uniqe in your model). If not use a CUBEMEMBER formula for the dates in cel A1....

You could also use a Slicer for the dates and use =CUBESET("ThisWorkbookDataModel";Slicer_1) to select your periods
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,975
Messages
6,122,538
Members
449,088
Latest member
RandomExceller01

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