cancel
Showing results for 
Search instead for 
Did you mean: 

Restriction in analytic view

Former Member
0 Kudos

Dear Experts,

We

I am facing a issue in analytic view.  below is my requirement.

Del Doc NoItemItem CategoryQty
1234510  KPT12
1234520KPT15
1234530KPT20
1234540ZTPY30
1234550ZTPY25
1234560ZTPY28

In the above scenario, if Item Category is Equal to'KPT' then only quantity should display, Other than Item Category'KPT'  quantity should be '0'.

As per our business requirement data should be like below.

Del Doc NoItemItem CategoryQty
1234510 KPT12
1234520KPT15
1234530KPT20
1234540ZTPY0
1234550ZTPY0
1234560ZTPY0

Please help me how to restrict in Analytic view.

Thanks,

Nag

Accepted Solutions (1)

Accepted Solutions (1)

anindya_bose
Active Contributor
0 Kudos

Hi, use Formula to achieve this ( Calculated Column ) .

If Item Category is KPT, multiply Qty with 1 , if  ZTPY , multiply with 0.

Do you have any other category apart from these two ?

Cheers

Anindya

Former Member
0 Kudos

Hi Anindya,

Thanks for your prompt responce.

i am requesting you, Please tell me the syntax which i need to write in calculated column.

Thanks,

Nag

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi All,

Thanks for your post.

its got completed.

Thank you

former_member200930
Participant
0 Kudos

Hi Nag,

Crate Calculated Measure column at top level and integer should be data type

Please use following formula

if(isnull("Item_category"),0,if("Item_category" ='KPT','QTY',0))

First it will check "Item_Category" column for null, if yes the it will return ZERO otherwise, it will check for next condition. If "Item Category" belongs to KPT then it will return actual quantity else it will return zero.

At the semantic level, Please hide your "QTY" column.

I hope, this will solve your problem.

Regards,

Vikram Divekar

Former Member
0 Kudos

Hi Nag,

You could create a Restricted column on Qty (may be call it KPT_QTY)  with Restriction on Item Category Equal to 'KPT'. The new KPT_QTY column will contain values only for category KPT and null for all others.

Let me know if this helps.

Thanks,

Nithya V

Former Member
0 Kudos

Hello Nag,

Use an input parameter (IP_item_category) to get the values of the category (if they are more than 2).

Parameter Type: Column

Column:

Give relevant values for

1. View/Table for input help

2. Reference Column

To choose appropriate category.

As Anindya suggested above, use a Formula to create new calculated column.

Alternate formula id categories more than 2:

IF (("$$IP_item_category$$"="item category"), "qty", '0000')

BR,

Vikash