Issues with Filter with using Cubeset formula to query a power pivot

AUSSW

New Member
Joined
Jun 3, 2024
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Newish to power query and power pivot and really struggling when trying to extract information back out of my power pivot/data model into the workbook.

=CUBESET("ThisWorkbookDataModel","{Filter([Cost_Category_Query].[Index].Children,[Cost_Category_Query].[BRAND].currentmember =BRAND)}","Set")

There is a query called 'Cost_category_Query' which does have the two columns in question i am trying to get all of the index values into a set which are the correct brand. The issue is that this set, using CubSetCount(), comes back with 1560 responses if I put a value in Brand that is either the word BRAND or one of the brands I have, but it doesn't filter. e.g. if i put in BRANDA i get 1560 values, if i put in BRANDB i get 1560 values, if i put in junk such as SDGSDG i get 0 values.

I have read a lot of tutorials and watched a bunch of clips but i can't seem to wrap my head around what i am doing wrong in the syntax here to make my filter into a select all as long as it exists somewhere in that query rather than its intended purpose of selecting ONLY the indexes for items in the Brand i control.
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
My observation is that you are using new tech (Power Pivot) with older tech (cubesets). Have you considered using DAX with power pivot and stop using cubesets? Yes, there’s stuff to learn, but I think it would be easier.
 
Upvote 0
FWIW, I think this should work:

Excel Formula:
=CUBESET("ThisWorkbookDataModel","{[Cost_Category_Query].[Index].[Index].Members*[Cost_Category_Query].[BRAND].[BRANDA]}","Set")
 
Upvote 0

Forum statistics

Threads
1,223,840
Messages
6,174,955
Members
452,593
Latest member
Jason5710

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