The first query works as I needed. But when I tried to rewrite in terms of a calculated member to put it in my cube, It crashed.
select non empty [Measures].[Demanda Real] on 0,
non empty [Agente Distribuidor].[Nombre Distribuidor].[Nombre Distribuidor].members on 1
from Demanda
where [SkSubmercadoUsuario]
This is my failed try:
with member [Measures].[Demanda Real Dos]
as
([Measures].[Demanda Real], [SkSubmercadoUsuario])
select [Measures].[Demanda Real Dos] on 0,
non empty [Agente Distribuidor].[Nombre Distribuidor].[Nombre Distribuidor].members on 1
from Demanda
What I need is slice my cube by [SkSubmercadoUsuario], but it cannot be by a where clause. I need to create a measure that slices the measure by this Named Set [SkSubmercadoUsuario]