Report data filters depending on user

I have web intelligence report returning data grouped by departments. Is it possible to filter report data by department for user logged in depending on user's department?
Thanks
Edited by: Denis Sapunkov on Aug 19, 2010 12:58 PM

This can be achieved in 3 ways:
1. In Web Intelligence
Providing you have a table in your database that holds username and department you create a webi report where you select "Dept. Username", "Department" and all other objects you require for your report.
- Run the Query
- Create a new variable called CurrentUser => Formula: =CurrentUser()
- Create a new variable called "Department Filter" => Formula: =If([CurrentUser] = "Dept. Username" ; "Yes" ; "No")
- Create a new report filter: Department Filter = "Yes"
This will only return the deprtment for the user that is currently logged on to BO.
2. On universe level you could use access restrictions to achieve this
3. If you require to schedule the report, you could create a group for each department and assign this group to a profile that filters on department.
Hope this helps!

Similar Messages

  • Substitution for Tax reporting date

    Hi,
    I have created a substitution at document header level to change Tax Reporting date field.
    It works correctly when I enter a fixed value or another field value, but when I enter a user exit it does not work in VF11 transaction
    Which could be the problem?
    Thanks

    Dear expert
    Problems calculating tax reporting date in VF11 transaction
    user exit VF11 for accounting
    Regards
      Ajeesh.s

  • Filtering report data based on user login and Parameter fields

    Post Author: mronquillo
    CA Forum: General
    Hi,I am running a report that filters data based on the user login. To do this, I created a formula called @user that compares the login name (using the CurrentCEUserName field) and returns the user's name. If the user login is not a login specified in the if statements, it returns the parameter field "user_name":For example: if CurrentCEUserName = "loginname1" then "User's Name 1"else if CurrentCEUserName = "loginname2" then "User's Name 2" else if CurrentCEUserName = "loginname3" then "User's Name 3"  else if CurrentCEUserName = "loginname4" then "User's Name 4".. .else {?user_name}   In select expert, I have a condition which filters data based on the string returned from that formula:{Table.Name} = {@user}  This works fine and when the users run the report they only their own data. However, they are still prompted to choose a parameter field regardless if of the value returned by the @user formula. Oddly enough, regardless of what parameter field they choose, they will still only see their own data (i.e. if John chooses "Bob" from the parameter list, he will still only see John's data.)If I remove the "else {?user_name}" line from the @user formula, then the users are not prompted anymore. However, if they are not a "valid" user - that is, if any of the if statements in the formula are not true for their login name - then they will see no data. What I want to do is make the report ONLY prompt the user to choose a parameter field if their login name is not "valid". That is, if the @user formula is able to return a string value for their login name, then they will jump right into the report without being prompted to choose a parameter - otherwise, the user will be prompted to choose a name from the parameter list. I thought my formula would allow this (hence the "else" clause), but it seems that if a parameter field is present in any formula, then the report automatically prompts the user to choose a parameter. Is what I am trying to accomplish possible in CR (I'm using CR v10.0) or is there a better way to do what I am trying to do?Thanks in advance.

    Post Author: sharonmtowler
    CA Forum: General
    try, or something like that
    (if CurrentCEUserName ={?user_name} then true else ({Table.Name} = {@user}) )

  • Show report in different currency depending on user parameter

    hi all,
    i'm trying to show my report in different currency, depending on users given parameter.
    i hold my account balance in USD based. User should select one parameter, in which currency they want to see their account balance. (e.g. EURO, GBP ...) and depending on their selection, i want to convert USD based info into chosen currency, by fetching field from currency table and making some calculation.
    also i want to include in report currency($, £ ...) accordingly ().
    how can i achieve this, has somebody any suggestion to me?
    thanks in advance.
    bogi.

    hi,
    i think i need to explain my problem more detailed. anyone who has suggestion, please help me.
    i have 3 tables account, times and currency.
    - times table has time_key, date, day_of_week fields.
    - account table has - account_balance and time_key_FK fields.
    - currency table has currency_type, amount, time_key_FK fields.
    1. i have function decode(:Currency,'USD',account_balance,'EURO',--here i want to replace my calculation CALC1---)
    CALC1- this calculation need to some calculation like this: account_balance * (fetched field from this sql)(select amount from currency, account where currency.currency_type='EURO' and account.time_key_FK=currency.time_key_FK)
    i tried to do this, but discoverer plus doesn't let me make condition and calc. i'm very confused.
    2. after i achieve this query, somehow i want to display on worksheet on which currency is it based. can i get parameter value, and show this value as in column heading?
    tnx!!!

  • Reporting on Time Dependent Master data

    Dear All,
    We are using 0employee time dependent master infoobject for reporting Active employees as on any specific date.
    Report runs absolutely fine depending upon user input date (Variable created for Key date properties).
    Now user has another requirement here.
    For example:-
    if the user input date is 31.12.2010 . So basically user wants to know the number of active people as on 31.12.2010 and also number of active people for month of november i.e. as on 30.11.2010 , 30.10.2010 for october and so on for back 6 months.
    So that he can track how people are growing over a period of several months in an year.
    How do i get this break up?
    Problem scenario
    If i run my report based on input key date i.e. 31.12.2010 then people who are quitting on before 31.12.2010 will not not appear in report at all which is correct but when i want to see novemember data then he should be included in the total count of employee for the month of november.
    Kindly suggest how do i achieve this.
    Thanks & Regards,
    Anup

    Hi Anup,
    You can do it by creating variable on input key date. By using offset concept you should create other variables for last date of past six months and you should write the code in customer exit for that to happen.
    Then you create formulas using your variables. But you should have the fields to display data in such manner.
    regards..

  • Limit report data to user logged in (AD Authentication)

    How can I limit the number of rows that display on a report depending on the user logged in?  I want the user to see only their own data, not the whole report, based on the the user id.  We use active directory authentication to Business Objects Enterprise.

    Hi Eileen,
    This may be achieved in either of two ways :
    1. Applying row level restriction to the Universe off which these reports are based of. Please refer to Universe Designer Guide for more information.
    2. By using Publications in XI 3.1. Please refer to Publishing Guide for details.
    Regards,
    Subhodeep

  • Report exection problem for one user - not able to see the data.

    Hello Friends ,
    Need some help . I have got the one ticket from bussniess side about the report execution .
    Unfortunately , I am also not having authorisation of that report due to sensible data.
    Problem - User is executing the report but some how he is not ABLE TO see the data for one company code Hierachy .
    I executed the same report through RSSMQ via his user id , and I got the  below message.
    All value were selected . Hierachy Authorisation cannot be used.
    A displayed hierachy requier a hierachy authorisation .
    But when i checked his authorisation , I am able to see that he should have authorisation to all the hireachy .
    could you please let me know , how can I check more ?
    Regards,

    after accessing the report , u go to su53 tcode and check the authorization and u can see what is problem in authorization for the that user and u can send the details to secuity team to rectify the issue ,

  • Please help: User cannot see webi report data

    Hi,
    I've got a wired problem here in my webi report. Basically I am located in Singapore and produced a webi report for our user in UK. The report looks totally fine with all the data shown correctly. But when our report user logged into the dashboard from UK, she could only see partial data and some of the information are missing(blank cells in the report).
    To verify the cause I've done the following test:
    1. I remote control her computer and log into dashboard using my account, the result is I get same problem and I cannot see some of the data.
    2. I let her remote control my pc and log into dashboard using her account, she no longer has this problem and can see complete data.
    We use same version of IE, same JAVA version. And the report data is not time sensitive, so different time zone might not the possible cause.
    This problem is killing me. Can anyone please help and let me know any possible solution? Thanks so much.
    Edited by: Sinsin Tan on Jul 14, 2010 5:59 AM

    Hi Sinsin, what version of BusinessObjects are you using? Is it XI 3.1?
    I don't know if it is the same problem or not, but I have seen that before when a user cannot view the data, change the font and/or background color and the data becomes visible. Reinstalling the client fixed that problem. If you couldn't figure out the root cause, you might want to consider this option.
    If you are using the BusinessObjects tool, you should join [ASUG|www.asug.com]

  • Downloading user report data question

    I am trying to download report data from the User report section however the "Time Taken" section comes out in a different format.  For example:
    On the Connect server it looks like this:  00:00:23 - on the top of the section it says the format is hh:mm:ss.
    But when it downloads out into a .csv file it looks like this: 23080.
    I have tried a number of different formats within the excel file - if you chose different variations of time it puts everything to 12:00 AM or ######.
    Another example just for kicks is: connect: 1:07:22  with the .csv file: 4041703
    Any thoughts?

    You'll have to convert the input to date yourself:
    SELECT * FROM FLOW_COMP_REC_SUMMARY_RU
    where create_date = TO_DATE(:TARGET_DATE, 'DD/MM/YYYY')
    and type = 'D'
    ORDER BY MESSAGE_FLOW_ID
    Have fun,
    K.

  • Discoverer 4.1.33 report fails Item dependency not found in EUL for 1 user

    I support Discoverer 4.1.33 installed on number of Windows XP sp3 PCs.
    Oracle database on Server is 10g.
    We have a number of Discoverer programs/reports that have been running for years.
    A particular program sales order report works fine for several users of Discoverer 4.1.33
    but for one user the report fails with "Item dependency not found in EUL " error.
    I matched the Discoverer settings for that 1 user with the others such as
    Disable FanTrap Detection, disk cache and Memory cache big - 40 gig,
    connect to standard EULs, and other similar settings. Standard TNSnames.ora.
    The report fails on the one user's PC. It is a larger report maybe a thousand lines
    but not huge. I uninstalled Discoverer 4.1.33 and legacy Oracle 8.0.6 on users PC.
    Re-installed all. Curiously the Discoverer settings did not not go back to default but
    stayed as previously set and reports fails.
    Question: Is Windows Users profile folders used at all? I didn't think it was.
    Why did the Discoverer settings not go back to default?
    I cleared and deleted the entire Oracle folder with Discoverer in it!
    May be the key to why Discoverer program/report fails.
    Any help appreciated,
    Edited by: 933518 on May 10, 2012 2:41 PM

    Hi,
    The reason the report fails with "Item dependency not found in EUL " error is most likely because the user does not have access to one of the business areas in the EUL or user in the database does not have access to a table/view or function used in the EUL. Is the EUL a database or Apps EUL? Check that the user can access all the EUL folders and items that are used in the report.
    The users' settings such as fan trap detection are held in the PC registry and so usually not overwritten by a re-install.
    Rod West

  • Date Manipulation Depending on the various user date settings

    hi,
    I have a query.
    In scripts, user date format setting is YYYY.MM.DD, values stored the table MHND are also in the format YYYY.MM.DD.
    However when i pass the date values from MHND from form to subroutine pool the dates are available in the format DD.MM.YYYY in the subpool.
    I want to calculate the diffenece between two dates. I have checked the function modules to calculate the differece betweent 2 dates those acccepts dates with type YYYYMMDD.
    However i tried to bring my dates in from YYYY.MM.DD into YYYYMMDD format by using CONVERT_DATE_INTERNAL function module... That is not working as the user date format is YYYY.MM.DD and the dates are coming in subpool in DD.MM.YYYY format....
    Please suggest me the approach the relavant function modules.... so as to manipulate the dates based on the user date settings.
    Looking forward for your replies. Thanks in advance.
    Regards,
    Anuja.

    hi anuja,
    Try using the following formatting  script symbol in your form routine
    For example, you are passing the date into the subroutine then put K after the date field like below.
    &date(K)& .
    or
    use SET DATE MASK : YYYY:MM:DD
    Thanks,
    Vamshi

  • Displaying an interactive report differently depending on user connected

    Hi,
    I have an interactive report on a table which holds server information. This table has a column which is called "Restricted". It has only two possible values (Y or N). It determines whether or not a user has the privileges to view the server password of that server.
    We are using database authentication for our APEX 3.2.1 application. We have 2 predefined roles, one with full privileges (Select, Update, Insert, Delete), and one with only Select privileges. When creating a database user account to access our APEX application, one of these 2 predefined roles is assigned to the user.
    What i want to accomplish is to display the Server Interactive Report as follows:
    If the user has full privileges, then they see the contents of the Password field regardless of the contents of the "Restricted" column (Y or N).
    However, if the user only has select privileges, they will not see anything in the Password field if the "Restricted" column is set to Y. Either i will display a Null or a bunch of stars (****). Note: I cannot hide the Password column because i still want to display the password column for those records that have a 'N' in the restricted column.
    I know how to create a condition which determines which level of privileges the user has and make the report display stars in the password field (I used a decode statement in the SQL statement generating the report which sets the Password field to **** if Restricted is set to Y). This only takes into account the role assigned to the user. The complicated part is factoring in the condition of wether or not the Restricted column is Y or N so that users with the right privileges will see everything whereas users without the privileges will see null or stars.
    This is a major issue we are facing right now.
    Thanks for any suggestions, advice.
    Tim

    Hi Scott,
    Thank you very much, I just had not structured my case statement correctly and ommitted that second condition about the user.
    I did this: CASE WHEN "RESTRICTED" = 'Y' and :APP_USER = 'NO_PRIV' THEN '****'
    ELSE ORA_PWD END ORA_PWD, "RESTRICTED"
    The report works fine now! :-)
    Tim

  • Loading complex report data into a direct update DSO using APD

    Dear All,
    Recently, I had a requirement to download the report data into a direct update DSO using an APD. I was able to perform this easily when the report was simple i.e it has few rows and columns. But I faced problems If the report is a complex one. Summing up, I would like to know how to handle the scenarios in each of the following cases:
    1.   How should I decide the key fields and data fields of the direct update DSO ? Is it that the elements in ROWS will go to the
          key fields of DSO and the remaining to the data fields? Correct me.
    2.   What if the report contains the Restricted KFs and Calculated KFs? Do I have to create separate infoobjects in the BI
          system and then include these in the DSO data fields to accommodate the extracted data ?
    3.   How do I handle the Free Characteristics and Filters ?
    4.  Moreover, I observed that if the report contains selection screen variables, then I need to create variants in the report and
         use that variant in the APD. So, if I have 10 sets of users executing the same report with different selection conditions, then
         shall I need to create 10 different variants and pass those into 10 different APDs, all created for the same report ?
    I would appreciate if someone can answer my questions clearly.
    Regards,
    D. Srinivas Rao

    Hi ,
    PFB the answers.
    1. How should I decide the key fields and data fields of the direct update DSO ? Is it that the elements in ROWS will go to the
    key fields of DSO and the remaining to the data fields? Correct me.
    --- Yes , you can use the elements in the ROWS in the Key fields,  but in case you get two records with same value in the ROWS element the data load will fail. So you basically need to have one value that would be different for each record.
    2. What if the report contains the Restricted KFs and Calculated KFs? Do I have to create separate infoobjects in the BI
    system and then include these in the DSO data fields to accommodate the extracted data ?
    Yes you would need to create new Infoobjects for the CKF's and RKF's in the Report and include them in your DSO.
    3. How do I handle the Free Characteristics and Filters ?
    The default filters work in the same way as when you yourself execute the reoprt. But you cannot use the Free characterisitics in the APD. only the ROWS and cloumns element which are in default layout can be used.
    4. Moreover, I observed that if the report contains selection screen variables, then I need to create variants in the report and
    use that variant in the APD. So, if I have 10 sets of users executing the same report with different selection conditions, then
    shall I need to create 10 different variants and pass those into 10 different APDs, all created for the same report ?
    --- Yes you would need to create 10 different APD's. Its very simple to create, you can copy an APD. but it would be for sure a maintance issue. you would have to maintain 10 APD's.
    Please revert in case of any further queries.

  • Controlling report output based on current user

    Hi all,
    I am building a small app with APEX for a sales team.
    We have the site and app hosted by another company.
    I have built a report showing sales summary for the company. The problem is that the report is showing all sales for all sales people.
    What I want is for the report to show data based on the user that is logged in, so that the user only sees his items.
    In fact, this would be a useful thing to learn for me, because I could use this functionality on several other pager, so this will be a good example for other situations.
    So far I have:
    I have a database table that keeps track of the sales reps.
    Each sales rep in that table is assigned a unique EMP_id, which is an autonumber column of that table, and is also the primary key.
    The table also contains a column named: "User login Name" which is their login ID (the one they use to log into the application.
    Possible solution (I think):
    when user logs into APEX, retrieve their EMP_id from the EMP table based on their login name,
    Hold the EMP_id in a variable for the duration of the session,
    pass the variable to the SQL query for the report in the where clause.
    Is this a good solution? or is there a better way to do this?
    Can anyone advise on how to get this done please,
    Thank you.

    Hi,
    Sorry - I guess I should have said where to create the function!
    You can keep those steps or keep with your own method as both should return the value you need. I usually store the result of that value in G_USER - similar to Tyson's method - when the user logs in and then use :G_USER wherever I want to use it in filters etc. However, if I need to create SQL Views, I have to use the GETCURRENTUSERID() function instead.
    Andy
    ps - I used MIN() in the function to ensure that I only get one value returned. The method SELECT .... INTO .... only allows us to set a variable to one value and, sometimes, more than one value is returned by the SELECT statement and this would generate an error. Of course, there should be just the one value that matches the current user, but I always assume the worst! The statementS:
    SELECT MIN(EMP_ID) into user_id FROM S_USERS WHERE UPPER(LOGIN_ID) = UPPER(v('APP_USER'));
    user_id := CASE WHEN user_id IS NULL THEN 9999999999 ELSE user_id END;could also be written as:
    SELECT EMP_ID into user_id FROM S_USERS WHERE UPPER(LOGIN_ID) = UPPER(v('APP_USER')) AND ROWNUM = 1;
    user_id := CASE WHEN user_id IS NULL THEN 9999999999 ELSE user_id END;or
    SELECT NVL(MIN(EMP_ID), 9999999999) into user_id FROM S_USERS WHERE UPPER(LOGIN_ID) = UPPER(v('APP_USER'));

  • Filtering Multiple Auth Users in SawMill

    I am unable to generate a report with more than a single person. The only attributes I am applying is:
    Statistics for 01/Jun/2010 - 30/Jun/2010, 30 days 
    Report is filtered and shows data for
      Action is NOT: TCP_DENIED
      Auth User is: local\lcl4034@ntlm, local\scott@ntlm (<<These are applied as "Wildcard Expression")
    With a single user, I can generate a report without issue but the second I add another user the report is blank. At this point it is all or just 1. I know I have sucessfully done this in the past but now it is not working.

    Easiest way is to add more indivudal items per field type query rather than trying to build a more complex argument within a single element.
    For example:
    Hope this helps

Maybe you are looking for

  • 10g: parallel pipelined table func. using table(cast(SQL collect.))?

    Hi, i try to distribute SQL data objects - stored in a SQL data type TABLE OF <object-Type> - to multiple (parallel) instances of a table function, by passing a CURSOR(...) to the table function, which selects from the SQL TABLE OF storage via "selec

  • HT201269 What happens when the old device's Restore From Backup doesn't appear as a choice for the new (iPad) device?

    My wife dropped her iPad and fried the screen. It was still functional, so I backed it up with iTunes. The backup was successful for all apps, photos, etc.  I just swapped that iPad at the Apple Store for a refurbished model and attempted to Restore

  • What's up with this Green Pixel?

    I am confused here... I just noticed a bright green pixel that appears to be stuck but only under certain circumstances... For example, it doesn't appear in Pixel Check (under any of the tests) nor does it appear in a screensaver that produces black

  • Can't rebuild iPhoto library now

    I've had iPhoto problems but throught I had them licked when I broke the library into smaller ones (by year) and began using iPhoto Buddy (very nice). The libraries are about 2000 - 4000 photos in size. I've noticed that after backing up the librarie

  • Oracle cash management  (System parameters setup)

    hi all while making system parameters in oracle cash management responsibility .i cant find the set of books that i have defined. the LOV shows only one set of Books as Vision Operation(USA) surely i m missing some setups. does anybody knows the cure