Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8411

Re: Dimension restriction in an analytic privilege

$
0
0

Hi Benedict,

 

A dimension is like a characteristic in BW. Let's take this example:

 

Dimension 1Dimension 2Measure 1
FRANCEPRODUCT A100
CHINAPRODUCT A50
USPRODUCT B20

 

So it makes perfect sense to use a OR operator for an analytical privilege on a dimension. Restrictions happen in the WHERE clause so if I'm authorized to see France and China, it will look like (just to give you an idea):

 

SELECT .... WHERE DIMENSION 1 = FRANCE OR CHINA

 

If you try this with a AND operator you will never retrieve anything as there is no dimension with a value France and China.

 

F the AND operation is also logical for the 2 dimensions, if you are authorized to Product B in addition of France and China. You need a AND condition otherwise you'll see non authorized information.

 

SELECT .... WHERE (DIMENSION 1 = FRANCE OR CHINA) AND DIMENSION 2 = PRODUCT B

 

Result should be empty as they were no Product B sold in France or China.

 

Hope I was clear enough


Viewing all articles
Browse latest Browse all 8411

Trending Articles