Use OR with Cubest

deharris

New Member
Joined
Dec 15, 2017
Messages
19
Looking for help on a CUBESET formula. I'm trying to use an OR statement in a CUBSET formula with multiple expressions, one of which is the .children result. I need an OR statement or some way to combine the choices two items in one expression, single items in other expressions and the eventual children of a final expression. I think it's something like this but I can't get it to work. Goal is to use a CUBERANKEDMEMBER formula to view the Brand children of Division1 whether they exist in Month1 or Month2. I have some flexibility in that I can select the months in a slicer as well but I've no luck combining slicer selections with member expressions in a CUBESET even when naming their range and referencing them. It seems to work with CUBEVALUE but not CUBERANKEDMEMBER. TY for any help!

CUBESET("ThisWorkbookDataModel","{([Programs].[Months].[Month1]* [Programs].[Months].[Month2]),[Programs].[Division].[Division1],[Programs].[Brand].Children)}","Brands",3)
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
UPDATE: I can get this formula to list all the brands that fall in both months but it duplicates brands that fall in both. I'm looking for a solution that shows whether brands fall in either month1 or month2 (a distinct list) as opposed to a full list of all with duplicates.

CUBESET("ThisWorkbookDataModel","({[Programs].[Months].[Month1],[Programs].[Months].[Month2]},([Programs].[Division].[Division1],[Programs].[Brand].Children))","Brands",3)
 
Upvote 0

Forum statistics

Threads
1,223,889
Messages
6,175,224
Members
452,620
Latest member
dsubash

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