Quantcast
Channel: Excel IT Pro Discussions forum
Viewing all articles
Browse latest Browse all 11829

Need help with syntax for a Cubeset formula using 'Except' and a cell reference

$
0
0

Hi all-

I have working fomulas in the format of:

=CUBESET("MyCube","Except([Product].[Package].[All],{[Product].[Package].&[AB],[Product].[Package].&[CD]})")

However, in some cases I have too many exceptions to fit within the 255 char limit. In fact I ended up creating a cell for each of the items to be excluded, using CUBEMEMBERs, then pulled them all into one cubeset:

H7=CUBESET("ADM2",I7:I18,"Exclusions")

Now I'm trying to include that reference cell in my Except statement, but am not having much luck

=CUBESET("MyCube","Except([Product].[Package].[All],H7})") doesn't work because the cell reference is inside the quotes

=CUBESET("MyCube","Except([Product].[Package].[All]," & H7 & "})") doesn't work

I even tried to just bring the cubeset inside the except formula directly, but couldn't get the syntax on that either, probably because of the multiple use of quotes where this is no longer one big MDX string:

=CUBESET("MyCube","Except([Product].[Package].[All],CUBESET("ADM2",I7:I18,"Exclusions")})")

I've tried many iterations, but I'm just walking around in the dark bumping into walls. Can anyone tell me how to bring a cell reference inside the Except formula string?


Viewing all articles
Browse latest Browse all 11829

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>