Extracting elements via vba

Post Reply
telula
Posts: 99
Joined: Tue Nov 18, 2008 5:40 am

Extracting elements via vba

Post by telula »

Hello,
Below is my dynamic subset of the Division dimension.
{FILTER( { DRILLDOWNMEMBER( {TM1SubsetBasis()}, {[Division].[2]} ) }, [Division].[Display] = "Yes")}

I am trying to get the syntax to run this via VBA.I know the syntax for running MDX to select from cubes but I havent seen an example where I am extracting elements from dimension via vba.I dont want to create this dynamic subset only at runtime.
Wim Gielis
MVP
Posts: 3223
Joined: Mon Dec 29, 2008 6:26 pm
OLAP Product: TM1, Jedox
Version: PAL 2.1.5
Excel Version: Microsoft 365
Location: Brussels, Belgium
Contact:

Re: Extracting elements via vba

Post by Wim Gielis »

Hi

What comes to mind at first sight, is simply a loop through the elements of the dimension, and checking the Display attribute. AFAIK, I did not implement MDX statements using VBA.

Wim
Best regards,

Wim Gielis

IBM Champion 2024-2025
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
Post Reply