If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

Macro in the Report studio

Started by ravitej, 30 Mar 2011 03:24:22 PM

Previous topic - Next topic

ravitej


The user name is "Scott" his group is "HR".

I have to restrict this user on Salary column. Could you please let me know how to restrict for this user?

So that I can implement the other users too.

This is great help from your side


If (#sq(CSVIdentityNameList())# contains 'Group Name')
then ([Salary])
else (0)

kattaviz

Hi.
Try this

CASE
WHEN 'HR' IN (#CSVIdentityNameList()#)
THEN 'null'
ELSE ([Salary])
END

This has to be implemented in FM for the column.

HTH
thanks & regards
Satish Katta

cognostechie

I am not sure the 'in' operator will work in this case.
Moreover, this can be used in Report Studio too without doing it in FM.