Andy Somnifac
New Member
- Joined
- Aug 16, 2016
- Messages
- 7
Good morning everyone. I'm working on something and I need (or would like) to be able to create a CUBESET that is filtered based on a date range with a start and end date defined on the sheet.
Let's imagine the data is in the DOM, pulled in via a SQL query. The data connection can be called "DataModel" and we'll just call the table "Table". We'll give this hypothetical data a very simple structure of 2 columns:
Ultimately, I'd like to have a CUBESET function return a cube containing CaseID's based on the DateValue column, give a start and an end date. Let's sat I want it to return all CaseID's between 01/02/2024 and 01/05/2024 (which are in cells B1 and B2 on the same sheet as the CUBESET function). So, I'd be looking for it to return a cube with 4 members:
11111111
22222222
33333333
44444444
Is what I'm trying to do even possible? Am I barking up the wrong tree? If so, is anyone able to offer any tips or hints to get me a bit closer to this one?
Let's imagine the data is in the DOM, pulled in via a SQL query. The data connection can be called "DataModel" and we'll just call the table "Table". We'll give this hypothetical data a very simple structure of 2 columns:
Code:
[CaseID] [DateValue]
00000000 01/01/2024
11111111 01/02/2024
22222222 01/03/2024
33333333 01/04/2024
44444444 01/05/2024
55555555 01/06/2024
66666666 01/07/2024
77777777 01/08/2024
88888888 01/09/2024
99999999 01/10/2024
Ultimately, I'd like to have a CUBESET function return a cube containing CaseID's based on the DateValue column, give a start and an end date. Let's sat I want it to return all CaseID's between 01/02/2024 and 01/05/2024 (which are in cells B1 and B2 on the same sheet as the CUBESET function). So, I'd be looking for it to return a cube with 4 members:
11111111
22222222
33333333
44444444
Is what I'm trying to do even possible? Am I barking up the wrong tree? If so, is anyone able to offer any tips or hints to get me a bit closer to this one?