CUBESET formulas with several slicers/filters

j0nthn

New Member
Joined
Jan 7, 2016
Messages
25
Hi,

I use the CUBESET formula to rank data ("Query") descending by a certain measure ("PIO"), using this formula:

=CUBESET("ThisWorkbookDataModel","[Data].[Query].children","Name",2,"[Measures].[PIO]")​

Now I know if I want to filter data for only one specific country, I can add it as so:

=CUBESET("ThisWorkbookDataModel","[Data].[Country].[USA]*[Data].[Query].children","All Queries + Country (ORDERS)",2,"[Measures].[PIO]")​

I have two questions:

1. If I want to add one more criteria to filter for the formula doesn't work, i.e. I want to rank "queries" for a certain "country" and in a certain "week" I try below formula, which doesn't seem to work. Is there any solution for this, so I can add X amount of filters/criteria?

=CUBESET("ThisWorkbookDataModel","[Data].[Week].[CW42]*[Data].[Country].[ID]*[Data].[Query].children","All Queries + Country (ORDERS)",2,"[Measures].[PIO]")​

2. Is there a way to directly insert a or several Slicers into the CUBESET formula? Like below formula which doesn't work

=CUBESET("ThisWorkbookDataModel","Slicer_Country*[Data].[Query].children","All Queries + Country (ORDERS)",2,"[Measures].[PIO]")

Many thanks in advance,
Jon
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.

Forum statistics

Threads
1,223,881
Messages
6,175,159
Members
452,615
Latest member
bogeys2birdies

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