Consult a cubemember with another cubemember filter

wlandim

New Member
Joined
Sep 27, 2016
Messages
2
Hi,

I have a table that has, among other information, three that I use most:

OC nº Suplier Value
1111 abc 20,00
1112 def 40,00
1113 ghi 60,00

With powerpivot is easy to identify the value of the OC by cubevalue, thats ok.

I'd like to make a filter to show the name of the suplier filtered by OC nº.

I tried to use cubemember and cubeset but I was in wrong way

Can anyone help about this?
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
I am not sure I fully understand. Can you give an example of what you want to see?
 
Last edited:
Upvote 0
I think I understand - if one value is chosen in a slicer but there are other properties to that value, you'd like to display that property.

This is poorly documented and I stumbled upon this solution by accident, but it works for me. If there's a shorter way I hope someone else can provide it.
Assume the table is "Supplier Info" and the slicer name is Slicer_OC_Value... the property name from the OC table you want to retrieve is "Supplier Name" e.g. "abc"

If the slicer is showing a value (e.g. OC#) use a CUBE function to display that value in a cell (say $D$2)
=CUBERANKEDMEMBER("ThisWorkbookDataModel",Slicer_OC_Value,1)

Now reference $D$2 in a new cell with this formula

=CUBERANKEDMEMBER("ThisWorkbookDataModel",CUBESET("ThisWorkbookDataModel","([Supplier Info].[OC].["&$D$2&"],[Supplier Info].[Supplier Name].children)"),1)

The order of the selection in the CUBESET is important - lookup value first, then the .children of what you want to return.

This also assumes that each lookup value in your Supplier_Info table is unique, so selecting OC returns only one corresponding Supplier Name property.

As I said, I hope someone has a more elegant solution!
 
Last edited:
Upvote 0
Great!!!!!!! It works very well!! Thanks a lot Macfuller, everything I need I can get throught your formula!!!!!
 
Upvote 0
How nice! Another elegant alternative for the missing CUBEMEMBERPROPERTY-function in Power Pivot and Tabular.
(So far my favourite has been Matt Allingtons recommendation to create a text-measure instead).

Attention for users with ";" as separators: You have to keep "," as a separator for the cubeset-expression within the brackets, otherwise it wouldn't work:
([Supplier Info].[OC].["&$D$2&"],[Supplier Info].[Supplier Name].children)

Replace the other ones with ";".
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,883
Messages
6,122,077
Members
449,064
Latest member
MattDRT

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