Reg-Narrative View Case

I have two columns A , B as two prompts.
I am passing Values of A, B to Narrative View.
I f A is selected A value should pass to Narrative View
I f B is selected B value should pass to Narrative View
FYI :User wont select both at a time.
Thanks
NK

If you are using presentation variables then just call them using @{VarName} in Narrative view
like @{A}@
based on the value the view would show it.
If you are not using presentation variables then
use those A and B columns in the report
and call them in Narrative view using their positions like @1@2
where 1 the position of A from left in criteria
Edited by: Srini VEERAVALLI on Apr 1, 2013 11:31 AM

Similar Messages

  • Issue filtering a report (based on narrative view) with a dashboard prompt.

    I used HTML and java-script codes in narrative view to solve the issue of "linking different reports on selecting values from a drop-down". A new issue has cropped up due to that implementation. The issue is that i can't attach a dashboard prompt to such a report. This means, when i put this report on a dashboard page with a dashboard prompt to help filter the report, the report does not gets filtered (it does not seems to be connected to the dashboard prompt).
    Has anyone faced this issue before? If yes, please let me know how to tackle it at the earliest.
    Regards,
    Ramil

    Hi,
    sorry , i could not solve the problem. the below case statement i put in the formula of a date column but i got some syntax error.One more thing is case statement is appearing in the select query not in where condition. Do u mean to say if i will put the same column as is prompted then it will come in where condition.
    Could u plz help me where i am doing wrong .
    case when '@{Period}'='Weekly' then Alerts."Creation Date and Time"  between  '@{PStartDate -7}' and  '@{PStartDate}' end
    [nQSError: 10058] A general error has occurred. [nQSError: 27002] Near <between>: Syntax error [nQSError: 26012] . (HY000)
    SQL Issued: SELECT Alerts."Business Domain(s)", Alerts."Closing Action Type", Alerts.Closer, case when ''='Weekly' then Alerts."Creation Date and Time" between '' and '' end FROM "Common Productivity Reports for Alerts"

  • Formula in a narrative view

    Hi Gurus,
    Can you please help me with narrative views in OBIEE (11.1.1.5)?
    I have a table that lists customer sales., e.g.
    Customer Sales($mn) Rank
    Cust1 800 1
    Cust2 450 2
    Cust3 350 3
    Cust4 300 4
    Cust5 40 5
    Cust6 30 6
    Cust7 20 7
    Cust8 10 8
    Total 2000
    The requirement is to build a narrative view that uses different columns and totals. In this case, the narrative view should say:
    Top *3* customers provide *80%* of the revenue.
    (n = 3)
    (80% = sum(sales) where rank in top n / total sales) = (800+450+350)/2000*100
    I can't find a way to incorporate formulas. I can call the sales column (@2) but not able to put the calculation in the narrative view. Has anyone done such a thing before or knows how to do it?
    Thank you!!

    Thank you, HM... that worked great!!
    I have another quick follow up - is there a way to refer to individual values in the result set in a narrative? For example, based on the same table:
    Customer $mn Rank
    Cust1 800 1
    Cust2 450 2
    Cust3 350 3
    Cust4 300 4
    Cust5 40 5
    Cust6 30 6
    Cust7 20 7
    Cust8 10 8
    Total 2000
    I want to create another narrative that is the ratio of sales of the first and third ranked customer; i.e., the narrative I am trying to build is:
    No. 3 has to increase sales by *2.28* times to equal No. 1.
    (2.28 = 800/350)
    Is that possible, given that my table is sorted by rank?

  • Prompts are not working when we call another report from the narrative view

    Hi,
    In my dashboard i need a table view report which should have scrolling option only for that section.
    For this i added a html tag <iframe ........scrolling="yes"> in the narrative view and i added that narrative view in the report.
    Now,it works fine in the dashboard.
    But when i apply prompts in the dashboard the values are not filtering even though i added the "is prompted" filter condition in the criteria of both narrative view section and the called function.
    Any help would be greatly appriciated.
    Thanks,
    chinna.

    Hi,
    since you have created an iframe dashboard prompt wont work on that report.Same is the case if you put the report in Embeded content.
    One possible workaround is to creaate a dummy report having columns same as that of dashboard prompt.Put all the columns is prmompted in this report
    (No need to create dummy report if you already have those columns in some other report,You can use that report also)
    Then go to your Iframe report and use "filter based on other request".In this way dashboard prompt will filter dummy report and based on dummy report values your iframe report will also filter.
    Thanks
    Sandeep

  • Narrative view current year

    Hi..
    How could I view the current year by default in narrative view. I have used the following code
    Year @{pvYear}*{year(current_year)*
    Here pvYear is my presentation variable. At first time it shows Year year(current_year) in my report. When I use the prompt its shows my selected year.
    Right now I have hard coded as
    Year @{pvYear}{2009}
    Thanks
    Mohan

    These are the step you have to follow
    create one dummy column in the report and write the following formula
    *case when @{year}=null then year(current_date) else @{year} end* and refer that column in the narrative view
    and in the dashboar prompt defualt to drop down select repository variable and give the current year repository variable there
    or choose SQL results and write the following formula
    * SELECT case when 1=0 then "- Actual Start Date"."Start Year" else Year(current_date) end FROM Activities*
    hope it helps you
    Regards
    Naresh

  • I want to display the narrative view as All Choices

    Hi Experts,
    If ‘All choices’ option is selected, I want to display the narrative view as All Choices.
    How do I achieve it?
    Waiting for your reply....
    Regards,
    Sathyan

    Hi Sathyan,
    Set a presentation variable for that prompt.
    and in request, go to the column formula,
    CASE WHEN '@{pv_var}' IS NULL THEN 'ALL CHOICES' ELSE col_name END
    Regards,
    Raghu

  • Dashboard Prompt (All Choices) using Narrative View

    Using Narrative View I can display LOVs of Prompt but when the (All Choices) selected, how to display using Narrative View?

    In Your criteria Create a column with foruma like the below
    CASE WHEN '@{psitename}{All}' = '' THEN 'ALL' else '@{psitename}{All}' end
    And now in your narrative of the report, Add @2 if the above column is in second place of criteria. Add this narrative in you compound layout. Hide the column if you dont want show it in table view.
    This code works in 3 cases.
    1. If variable is null then it shows default value - All
    2. If variable is selected to all choices then it shows ALL
    3. If you select any site, that shows site name.
    let me know if does not work for you..
    - Madan

  • Data in a narrative view.

    Sorry if this is simple. Just want to display the multiple values from a report prompt, not dashboard prompt, in the report. My effort has taken me to the narrative view and am using @12 to display the values in the column which has been filtered. But it is listing the values many times for each row. Can I use the narrative to display only distinct @12s or is there a better way to get the prompt values into the report. Thanks

    You can do this with pivot table, it is not possible with Narrative.
    1. Create pivot view for same report
    2. exclude all the columns other than the column you want to show
    3. Put the column in measures
    4. duplicate the column, drag the duplicate column in to columns and hide
    5. drag measure labels into Rows
    6. apply aggregation to First on column in measures.
    it works, I will blog it shortly with screen shots soon.

  • Problem with javascript in narrative view

    Hi gurús!
    I'm trying to put some conditional logic in a narrative view of my analysis. I found some tips, and wrote that:
    <script>
    if('@{FIN01TIME}{ }'=='Period')
    document.write("[b]Fiscal Year : [/b]@1       [b]Fiscal Quarter : [/b]@2       [b]Fiscal Period : [/b]@3       [b]Roll Up : [/b]@{FIN01ND}{ }      [b]Cost Center : [/b]@{FIN01CC}{ }       [b]Currency : [/b]@{FIN01CURR}{ }")
    if('@{FIN01TIME}{ }'=='Quarter')
    document.write("[b]Fiscal Year : [/b]@1       [b]Fiscal Quarter : [/b]@2       [b]Roll Up : [/b]@{FIN01ND}{ }      [b]Cost Center : [/b]@{FIN01CC}{ }       [b]Currency : [/b]@{FIN01CURR}{ }")
    if('@{FIN01TIME}{ }'=='Year')
    document.write("[b]Fiscal Year : [/b]@1       [b]Roll Up : [/b]@{FIN01ND}{ }      [b]Cost Center : [/b]@{FIN01CC}{ }       [b]Currency : [/b]@{FIN01CURR}{ }")
    </script>
    All works good, but the problem happens when I "click" on paging buttons of my analysis (see attached image: javascript_problem_paging.png). After click, it leaves me to a blank page with only narrative view content. Also, displays "error on page" warning in status bar (see attached image: javascript_problem_afterclick.png)
    I believe that this issue happens with "onclick" event of javascript. I tried to disable it, but still not works.
    Any help will be appreciated.
    Thanks for your time!
    Regards,
    Fabian

    Hi all!
    I get my own answer, jeje.
    Instead of use "document.write..." I put another narrative view with a <div> control and set it's content by "document.getElementById(..).innerHTML = "(same HTML code)""
    It works perfect! I hope that this achievement helps somebody else.
    Regards,
    Fabian

  • Pagination in a Narrative view?

    Is there a way to use pagination controls in a Narrative view?
    I'm looking for either an out-of-the-box way to turn this on (maybe I'm just not seeing it?), or if that's not supported, then any ideas on how it might be otherwise implemented.
    Is this do-able at all? Am I just not seeing the place to active this?
    Thanks very much.

    Thank you, HM... that worked great!!
    I have another quick follow up - is there a way to refer to individual values in the result set in a narrative? For example, based on the same table:
    Customer $mn Rank
    Cust1 800 1
    Cust2 450 2
    Cust3 350 3
    Cust4 300 4
    Cust5 40 5
    Cust6 30 6
    Cust7 20 7
    Cust8 10 8
    Total 2000
    I want to create another narrative that is the ratio of sales of the first and third ranked customer; i.e., the narrative I am trying to build is:
    No. 3 has to increase sales by *2.28* times to equal No. 1.
    (2.28 = 800/350)
    Is that possible, given that my table is sorted by rank?

  • Script result not showing up in narrative view

    I'm making a org chart as a narrative view.
    If I do not tick "Contains HTML Markup" the result of the script is displayed. If I cut-n-past that content into a HTML file it display the result I'm looking for. However if I tick "Contains HTML Markup" the narrative view displays as empty.I have Attached two screenshots displaying this.
    Any ideas what I'm not doing right? Have I forgotten some config to enable scripts in narrative view?
    this is the script I'm using
    Prefix:
    <script type='text/javascript' src='https://www.google.com/jsapi'></script>
        <script type='text/javascript'>
    if(document.URL.indexOf("saw.dll?Answers") == -1) {
          google.load('visualization', '1', {packages:['orgchart']});
          google.setOnLoadCallback(drawOrgChart);
          function drawOrgChart() {
    if(document.URL.indexOf("saw.dll?Answers") == -1) { 
          var data = new google.visualization.DataTable();
            data.addColumn('string', 'Name');
            data.addColumn('string', 'Manager');
            data.addColumn('string', 'ToolTip');
            var myOrgArray=[];
            var tempStr = "";
    Narrative:
    myOrgArray.push(["@1","@3","@2"]);
    Postfix
         data.addRows(myOrgArray);
            var chart = new google.visualization.OrgChart(document.getElementById('div_orgchart'));
            chart.draw(data, {allowHtml:true});
        </script>
        <div id='div_orgchart'></div>

    Yes, sorry, client is obviously sufficient as well.
    Just tried your code and same behaviour here and it doesn't do squat either. Can't deep-dive into that code right now but it's definitely code-related issue rather than a browser one for example.
    Thought about trying d3js? Would be easier to reproduce for me as I use that more often than Google's data-munching pipe that pushes all your data through Google Analytics
    Edit: Clicked too quickly. Wanted to point you to the SampleApp dashboard page which hosts the example I meant: http://slc02oka.oracle.com:7780/analytics/saw.dll?Dashboard&PortalPath=%2Fshared%2F02.%20Visualizations%2F_portal%2F2.32…
    Username Prodney
    Password Admin123
    Edit 2: Jesus I really should stop clicking "Save Reply" just to not lose it. Simply show your analysis on a dashboard and you're fine. It'll work.

  • Unable to pass  presentation variable value to Go url with narrative view

    I am trying to use navigate option of Go URL. I have Dashboard prompt with presentation variable (pv)defined. I am able to see the pv value in compund view but unable to see in Narrative view. Any thoughts?

    Check my blog entry here http://oraclebizint.wordpress.com/2007/11/26/oracle-bi-ee-101332-same-page-navigation-drills-and-passing-parameters/. It has an example.
    Thanks,
    Venkat
    http://oraclebizint.wordpress.com

  • Presentation variable in iframe/narrative view/Go URL

    I am able to see the peresentaion variable declared in Dashboard Prompt in narrative view.
    But when I put in iframe with narrative in Go URL then i am not able to filter the report based on presentation variable Values..." The page throws error
    'saw.aViewsToRefersh.all' is null or not an object.'

    Do you get that error if you remove the presentation
    variable column (@n). Does the a simple iframe work.
    Also, how are you referring the presentation variable
    in the iframe. I hope you are referring via a dummy
    column.
    Thanks,
    Venkat
    http://oraclebizint.wordpress.com
    Yes the simple iframe work well in the browser. As I am trying to run report based on the dashboard prompt. I have declared presentation variable in Dashboard prompt and referring the presentation variable in the iframe via a dummy column. when i click on 'Go' of dashboard prompt after selecting the value in dropdown list, I see the error on left bottom most of Internet Explorer Showing " Done" is null or not any object. also i see javascript:void(null). I assume that the variable value is not getting passed to parameters i have given in Go URL

  • How to display presentation variable in a narrative view

    Is there any way that we can display the prompt value stored in a presentation variable in the narrative view?

    Hi,
    use this synatx @{PRESENTATION_VARIABLE}{'Default'}
    Regards,
    Gianluca

  • Can I write a Java Program in Narrative view and make it work?

    Hi All,
    I got a requirement which demands me to write a java program in narrative view. As per my knowledge its not possible..........but do you guys have any work around or any other way to get that java program run when the report runs and the out must be seen on the dashboard???
    Thanks in advance,
    DK

    Joe thanks for the reply. I would like to communicate with a JavaScript API (MapQuest) by declaring a Proxy server and port number to communicate. Or I can directly use Java SDK to display maps.
    This is more a general question. If I can execute a java program then I will try doing many things.
    Thanks,
    DK

Maybe you are looking for

  • Photoshop CS4 new document dialog issue...

    http://img50.imageshack.us/img50/7835/optionpu6.gif Can this Photoshop CS4 new document dialog issue be improved? Info in the pic.

  • How can I import VHS video into my macbook pro

    I am trying to import VHS tapes into my macbook pro.  I want to use them in iMovie.  Any suggestions.

  • Custom Table Entry not in Sync between Different Environment

    Hi All, we have different environment like Dev System, Quality system, performance testing system etc... these are all environment customs table entry not in syn .. Table entry should be syn. How to make it syn all the entry between all environment w

  • Raw files with CS5

    Photoshop CS5 will not let me open NEF files from my camera, I have download the file for my camera but still will not let we open the files I have down load a few now and its want let me open the files any help would be great thanks

  • New to Mac...From PC...

    Hello! I am new to Mac and have always used a PC. I'm having a little bit of a tough time learning a new system. I bought the MacBook Pro and I am not sure I like the mouse on this thing. I can't figure out how to copy and paste with it. For instance