Need to Customize the measure using the Dimension Atttributes

Hi Experts,

I have a below requirement for a project, I need all your support and help to complete the tasks.

 I have following dimension (Dim Emp) with multiple attributes

Name        Code     Large Small
N1 2364      Y N
N2       8799       N  Y

I have several measures in cube, my requirement is If I have both Large and Small attributes in the filter in cube. If I select "Y" in Large and "N" in Small. The measure should display values only for "Y" not for the "N" flag.

Filter:

Large Small
Y N
Name Sales Value    SalesValue
N1 234890 0
N2 3425 0

Filter:

Large Small
N Y
Name Sales Value Sales Value
N1 0 98746
N2 0 328746

Please let me know the solution for my requirement.

Thanks in advance !!!

Regards,

May 21st, 2015 7:27am

Hi,

something like this:

SCOPE([Dim Emp].[Large].[Y]);

[Dim Emp].[Small].[N]=NULL;

END SCOPE;

SCOPE([Dim Emp].[Small].[Y]);

[Dim Emp].[Large].[N]=NULL;

END SCOPE;

Free Windows Admin Tool Kit Click here and download it now
May 21st, 2015 9:21am

Thank you for your reply !!!

It will apply to all the measures in my cube?

Regards,

May 21st, 2015 12:34pm

Hi Siva,

If you want to apply your condition to all measures, you can limit the scope for all measures.

 
SCOPE(Measures.Allmembers);

   SCOPE([Dim Emp].[Large].&[Y]);

   [Dim Emp].[Small].&[N]=NULL;

   END SCOPE;

   SCOPE([Dim Emp].[Small].&[Y]);

   [Dim Emp].[Large].&[N]=NULL;

   END SCOPE;

END SCOPE;

Regards,

Free Windows Admin Tool Kit Click here and download it now
May 21st, 2015 10:57pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics