Quantcast
Channel: SQL Server Analysis Services forum
Viewing all articles
Browse latest Browse all 14337

MDX create global cube with filtering

$
0
0

Hi, I'm not a big expert in MDX, so every help will be really welcome :-) I'm trying to export a cube with the following syntax:

CREATE GLOBAL CUBE [myCubo] STORAGE 'C:\temp\Pippo.cub' FROM [myCubo]
(
MEASURE [myCubo].[Netto] ,
MEASURE [myCubo].[Quantita Co],

DIMENSION [myCubo].[Mesi],
DIMENSION [myCubo].[PuntoVendita],
DIMENSION [myCubo].[Product]

Filter
(
{[Product].[Description].MEMBERS}
,
VBA!Instr([Product].[Description].CurrentMember.Name,"AB") > 0
)
)
)

Basically, I want to export a cube where the members of dimension "Product" contain the string AB. I use the VBA!Instr to simulate the SQL LIKE operator. Obviously, this instruction is not working. Could you please help me? I'm using SQL Server 2008.

Thank you 

 

Viewing all articles
Browse latest Browse all 14337

Trending Articles



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