Lookup rate based on reported value

Hello Experts,
I have a new supplement where users should be able to select a month for which some specific accounts should be translated at that months close rate.
So during reporting of 2010.MAY the user might select that the accounts should be translated at 2010.FEB Close rate. In the time dimensions i have one property TIMEID so i can send in the value 20100200 on one account.
But my problem is that i don't know how to be able to make the lookup collect the end rate for 2010.FEB based on the value 20100200?
If you know how that can be done or have any idea for another solution it would be very appriciated.
Thankyou and Best regards,
Jonas

Hi Jonas,
It will be difficult in that way. Because you need to do lot of customizations in your K2 logic to capture the user input and then pass it to the script logic through selections.
The better way would be to prompt the user with the list of the time dimension members. The user will select a member from there.This will be automatically stored in the variable %TIME_SET%. This variable can then be used in your script logic.
Hope this helps.

Similar Messages

  • SSRS Matrix report to show or hide year column based on parameter value "Date" selected.

    Hey experts!
    I have a requirement an ssrs matrix report should display columns (year/s) based on parameter value (date/s). 
    My Dataset fileds are: Product, Year_name, Month_name, Date
    Currently my report output looks like this-
    Param Date: 2013-08-01 00:00:0.000
    Product +Calender2011      +Calender2012     -Calender 2013........                        +Calender2014
                             Total
                      Total Jan13  Feb 13  Mar13..  Dec13   Total           Total
    Abc                      100
                        220
    10      20         30.......  20       250              400
    Xyz 110
    200 50      80         40.......  30       450              600
    My requirement:  if I'm selecting Date parameter value as '2013-xx-xx' I should only able to see Year column 'Calender2013' and rest of the years should hide. Similarly If I'm selecting Date parameter value as '2014-xx-xx' I should only able to
    see Year column 'Calender2014' .
    Appreciate your kindly help. 
    Afan

    Hi Afan,
    According to your description, you want to only show the selected year on your report, right?
    In this case, you need to get the year from the date parameter using the expression below
    =Year(Parameters!Date.Value)
    And then use the expression below to get the year from Year_Name field.
    =Right(Fields!Year_Name.Value,4)
    Then add a filter to the dataset to filter the data like below
    Expression:=Year(Parameters!Date.Value)
    Operator:=
    Value:=Right(Fields!Year_Name.Value,4)
    Reference
    http://msdn.microsoft.com/en-IN/library/dd255287.aspx
    If you have any questions, please feel free to ask.
    Regards,
    Charlie Liao
    TechNet Community Support

  • Need to supress main report based on shared value comes from subreport

    Hi,
    I have a database that is used in both main report and subreport. On main report I have column a,b ,c, d,e,f to display in detail section, the subreport (column c, g,h etc) is also displayed on detail section, the link between main report and subreport is column a,b and a formula based on the value of c. So the link is within one database, some records link with other records  and display both matching records on one line(especially column c shows one value in main report and another value in subreport). That's why I need subreport and I can display the report correctly.
    Here is my question: if one record in main report couldn't find a match in subreport (subreport is blank), then I would like to show this record; if one record in main report does find a match in subreport, I don't want it to show(need to be supressed). I can define a shared variable to flag whether the subreport is blank or not, but this shared variable has to be placed under the section of subreport in main report and I don't know how to supress the upper detail section with subreport in it.
    Any help would be appreciated!
    Helen

    Hi
    In this case you need to insert the same sub report twise.
    Example :
    Detail a--Insert the sub report and go in sub report suppress all sections and using shared variables bring the value to main report.
    Detail b -- based on detail a sub report suppress the main report records
    Detail c-- Your actual sub report will display the values.
    Note : use the same links for your detail 'a' sub report which you are using for detail 'c' sub report.
    Thanks,
    Sastry

  • Color report rows based on a value in that row

    I would like to Color report rows based on a value in that row.
    For examplle with the "EMP" table:
    I would like job=MANAGER to be red and job=CLERK to be green etc etc
    The other example I found only had the option of one color either the highlight or the default color.
    I am looking for a way to do multiple colors.

    Hi,
    In the row template, you can use #1#, #2#, etc to indicate where a field in the report needs to be output. This does not have to be plain text - ie, you can use it within style tags if you like.
    So, take a query like:
    SELECT EMPNO,
    ENAME,
    DEPTNO,
    DECODE(DEPTNO, 10, 'green', 20, 'red', 30, 'cyan', 'white') BG_COLOUR
    FROM EMPYou get columns 1=empno, 2=ename, 3=deptno and 4=bg_colour. In the row template, you can then do:
    Before Rows setting (sets up the table):
    <table>
    <tr><td>ID</td><td>Name</td><td>Dept</td></tr>After Rows setting (closes the table):
    </table>Row Template 1 (used for ALL rows):
    <tr style="background-color:#4#;"><td>#1#</td><td>#2#</td><td>#3#</td></tr>Then, for every row, the colour that has been calculated using the DECODE function will be used in the style tag to colour the background for the entire row.
    How you determine the colours is up to you. I've used DECODE here, but you could use a field on the DEPT table to hold this and use this in your SQL statement.
    Andy

  • Activate BI based test reporting - error stating status values missing

    During initial system setup of Solution Manager (as part of an EGI session) we also activated the BI component. I now wanted to activate BI-based test reporting, which is supposed to be done via:
    - Work Center Test Management
    - Settings
    - BI Reporting Settings
    When I reach this screen I get the following error message: "Please add customer defined status values in view u2018V_STATUS_MAPPINGu2019 and assign them to SAP standard values via transaction SM30." The rest of the screen is greyed out.
    Looking at the mentioned table via SM30 I see that for each of the 10 entries maintained (like ALMOST_OK, ...) a customer defined status is maintained as well.
    So what is the problem here?
    Regards
    Martin

    It seems like system is also checking for any status that is not on the list, meaning that for every existing one there has to be a link and not only for every status that is in this view.

  • How to get the last "reported" value in a cross tab

    Dear all,
    based on a BeX Query Universe I have built a report with a cross tab in webI.
    Maybe you can help me with the following issue. There I have a problem: I want to get in the Total-column always the last reported value, e.g. for Number Total Customers "66", not for Mar or Apr, because they are null.
    Calendar Month                      |Jan| |Feb| |Mar| |Apr| |Total|
    Number Total Customers         |54|    |66|  | |      | |       66
    Number Active Customers      |57|    |71|  | |      | |       71
    I hope that you understand my problem and could help as soon as possible.
    Thanks a lot in advance for your support.
    Best regards.
    Edited by: HOLWUE on Feb 8, 2010 1:40 PM

    Hi,
    If this question is related to Webi then post in the below forum.
    http://scn.sap.com/community/businessobjects-web-intelligence/content?filterID=content~objecttype~objecttype[thread]
    Regards,
    Sujit.

  • How to capture the entries based on filter values in oo alv..

    Hi all,
    I have a scenario in my oo alv report, when the user select the any column on report and selects the filter option. In that the user can enters required values. Based on filter values the output will be displayed. Now how can i capture currently displaying entries on report.
    Thanks,
    Ashok

    Hi Jozef,
    Is that GET_FILTERED_ENTRIES( ) reads the indexes or values from the entries..?
    Thanks,
    Ashok

  • Count the number of rows based on the values!!!

    Hi all,
    What I am using:
    I am working with a multidimensional database in Visual Studio 2010 using its Data source view and calculation member and dimension usage.
    What I want to do:
    I have a fact table that has five columns(leg(s),hand(s), Head and body,overall) that shows the category of how severe the injury is. Let say for the records all columns never have an empty value(no injury is stated with 'No injury' ) . These five columns
    are connected with a dimension that has all the available values (Category A-E of injury).The overall has the most severe from the other four columns. I want to create a bar chart with five different measure
    values, one for each column, and count the values in those columns. 
    For example : I have a slicer in the excel and a bar chart and the slicer has all the values of the Category of the injury ( Cat a,Cat B, Cat C, ... Cat E, No injury ) and when i select one of them, lets say
    Cat C,  the bar chart should update and show how many Cat C each measurement column has. 
    Example FACT table:
    ID      LEG      HAND    HEAD   BODY OVERALL
    1        No         A           No        No        A
    2        No        D            C          C         C
    3    E         C            D           A         A
    4         E          E           B            C         B
    So if i selected C the bar chart will count   (Leg = 0, Hand = 1, Head = 1, body = 2 and Overall = 1).
    Any ideas ?
    Thanks for the help and the time :) 

    Hi DBtheoN,
    According to your description, you want to create a chart on excel worksheet to count the rows based on the value, right? If in this case, I am afraid this issue is related to Office forum, I am not the expert of Office, you can post the issue on the corresponding
    forum.
    However, this requirement can be done easily on SQL Server Reporting Services. You can using the expression below to count the rows.
    =COUNT(IIF(Fields!LEG.Value=Parameters!TYPE.Value,1,NOTHING))
    Regards,
    Charlie Liao
    TechNet Community Support

  • How to retrive new logical column based on flag values in table.

    Hi,
    i have two tables in rpd
    1.file table contains the coulmns------->date,file_count,record_count,cldm_stg,cmsa_stg,archive_stg
    2.rejection table columns---------> are same as above
    both have same common columns.my requirement is publish a dashboard like:
    date | land_files count |alnd_recordscount| target_files count|target_records count|Rejection filecount|rejection record count
    These report ineed retrive from those two tables.based on flag values.taget countcomes when all stg values set to ='y'
    i.e(cldm_stg='y' and cmsa_stg='y'and archive_stg='y') if not then it will be in rejection file.
    Please give solution how to achive my output.
    nQSError: 14026] Unable to navigate requested expression: Target_record:[DAggr(FILE_CONTROL.Target_record by [ FILE_CONTROL.FILE_NAME, REJECTED_FILES.FILE_NAME, REJECTED_FILES.NO_OF_ROWS, File_landing.NO_OF_ROWS, File_landing.FILE_LOAD_DATE] SB FILE_CONTROL)]. Please fix the metadata consistency warnings. (HY000)
    Edited by: user8767586 on Jan 12, 2010 4:29 AM

    Tanks for ypur reply .only two tables are there named as above.i taken file_control as a fact table.
    and i create one new tablecalled target in bmm layer taking logical source as file_control(fact table). and iset the where clause for the new table.and i create a new measure called target_file and target_records.in where clause my query is like
    dwbidb."".AUDIT_PROD.FILE_CONTROL.ARCHIVE_STATUS = 'Y' AND dwbidb."".AUDIT_PROD.FILE_CONTROL.CMSA_STATUS = 'Y' AND dwbidb."".AUDIT_PROD.FILE_CONTROL.LND_STATUS = 'Y' AND dwbidb."".AUDIT_PROD.FILE_CONTROL.SCRIPT_STATUS = 'Y' AND dwbidb."".AUDIT_PROD.FILE_CONTROL.STG_STATUS = 'Y'
    please tell me if this is right way to achive mt report. and tell me difference between fragmentation and whereclause.for my requrement i ahve to follow which method either fragmentation or whereclause.and in rpd there are no errors and warnings.but in answers i get a follwing error
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 14026] Unable to navigate requested expression: TARGET_FILECOUNT:[DAggr(TARGET.TARGET_FILECOUNT by [ TARGET.FILE_NAME] SB TARGET)]. Please fix the metadata consistency warnings. (HY000)
    SQL Issued: SELECT TARGET.FILE_LOAD_DATE saw_0, TARGET.TARGET_FILECOUNT saw_1, TARGET.TARGET_FILECOUNT saw_2 FROM AUDIT_PROD ORDER BY saw_0.
    Please tell me to achive my report.
    Regards
    Edited by: user8767586 on Jan 12, 2010 5:21 AM
    Edited by: user8767586 on Jan 12, 2010 5:21 AM
    Edited by: user8767586 on Jan 12, 2010 5:24 AM

  • Hide Repeating Frames based on data value

    Hello,
    Wonderful forum. Hope someone out there can give us input on this one. We have a report where we would like to show a different layout depending on the data value from the master query. One layout occupies a full 8X11 page and the second layout occupies 1/3rd of a page. Is it possible to hide one reapeating frame and show the other based on data value? This would be a multiple page report and each page will have to take the correct payout depending on the value of the data in the row.
    I appreciate any input on this. Thanks
    Ravi

    Thanks for you input. I appreciate it.
    I am having a problem doing this. Let us say i have 2 differnt paper layouts. I want to show or hide one of the layouts based on a data value.
    The problem i am facing is that the 2nd instance of true value for showing the 1st layout is over lapping the 1st instance of the 2nd layout thus showing 2 layouts overlapping each other on the same page. I know this is confusing but i will attempt to give an example:
    page 1 shows - layout #1 only is showing based on result of data value. This is good.
    page 2 shows - layout #2 shows based on data value, but also the 2nd instace of layout #1 (what ever data record satisfies layout #1 rule) is also showing over layout #2. So both the layouts are jumbled up on 1 page.
    Essentially conditional formatting on layout #1 is not able to recognize that there is a 2nd layout taking its place and thus showing the layout #1 whenever it finds data which satisfies the condition on the 2nd page and so on..
    Any help is greatly appreciated.
    Thanks..

  • Building a JSP-based Web Report with a Parameter Form

    Hi,
    I tried in building a report as shown in the example in OTN under reports in the url
    http://otn.oracle.com/products/reports/htdocs/getstart/examples/ParameterFormJSP/index.html
    i.e for Building a JSP-based Web Report with a Parameter Form. The directions in this document were not clear and if any one document which is clear with instruction will be useful to me. In this example it is shown with search criteria with sigle text box and if any one had idea & code to place an combo box and population of the record group in the combo box.
    Thank you in advance.

    hi,
    we will be releasing a new example w.r.t creating a parameter form using the reports JSP within the next month.
    as for your request for a combo box. this widget is not available via regular HTML form elements. you can either have a select list or dropdown list.
    for a regular select list you would use the following (only pseudo-code)
    <select ...>
    <rw:foreach>
    <option value="<rw:field .../>">
    </rw:foreach>
    </select>
    to populate a select list.
    regards,
    philipp

  • Change Column Header / Column Background color based on a value in a specific row in the same column

    SSRS 2012
    Dataset (40 columns) including the first 3 rows for Report layout configuration (eg: the <second> row specifies the column background color).
    Starting from the 4th row, the dataset contains data to be displayed.
    I would like to change the background color of the ColumnHeader/Column based on the value in the same column in the <second> row.
    How can I accomplish the this requirement? (this must be applied for all the columns)
    Thanks

    Hi Fasttrck2,
    Per my understanding that you want to specify the background color of all the columns/column header based on the value in one special column of the special row, right?
    I have tested on my local environment and you can add expression to condition show the background color in the columns properties or the column header properties.
    Details information below for your reference:
    Specify the background color in the Column header: you can select the entire column header row and in the properties add expression in the Background color :
    If you want to specify the background color for the entire column, you can select the entire column and add the expression, repeat to add background color for other columns.
    If you want to specify the background color based on the value in the specific columns and row, you can create an hidden parameter to get the list of values from the  specific column, specify the Available values and default values by select "Get
    values from a query", finally using the expression as below to get the specific value you want:
    Expression(Backgroud Color):
    =IIF(Parameters!Para.Value(1)="1221","red","yellow")
    If your problem still exists, please try to provide some smaple data of the report and also the snapshot of the report structure to help us more effective to provide an solution.
    Any problem, please feel free to ask.
    Regards
    Vicky Liu
    If you have any feedback on our support, please click
    here.
    Vicky Liu
    TechNet Community Support

  • Different heading label based on the value!

    i have IR report  ...
    sl no
    street
    Ph
    notes
    this label never
    to show here!
    dynamic label
    (ASIA)
    (EUROPE)
    1
    2 nd st
    96541
    notes 1
    ASIA
    INDIA
    2
    2nd st
    65841
    notes 2
    EUROPE
    UK
    3
    2nd
    5648
    note 3
    EUROPE
    GERMANY
    i have condition when the user logged from region wise,the region value should goes to label in Dynamic label as HEADING! how its possible?
    Thanx,
    Ram.

    Ramani_vadakadu wrote:
    Yes i did the  validation based on the LOV to affect &ITEM_LABEL ! how can use this validation in pre-validation? please login and do the sample one based on the value(real data means my 1st query in thread)!
    https://apex.oracle.com/pls/apex/f?p=29288:1:9453626954797:::::
    Wks:ram_r&d
    user/password: aramani/apex
    I have no idea what you mean. There is no validation involved. Not only did I never mention validation, you are claiming that you "did the validation", yet there is no validation on your page at all. I suspect that you are using the term "validation" in a very different way from its APEX-specific meaning.
    The component that is required in this case is a page computation with a Before Header computation point.

  • Dispaly or Hide a column based on Prompt Value

    Hi All,
    How can I Display or Hide a Column based on Prompt Value selected?
    On my dashboard I have a Report/Request and a Dashboard Prompt.
    Dashboard Prompt has three values, say: *'A', 'B' and 'C'*.
    And my report/request has three columns named *'Field1', 'Field2'* and Field3'.
    What I am trying to achieve is that whenever user selects prompt values as *'A' or 'B'* all the three fields on my report named *'Field1', 'Field2' and Field3'* should be displayed, however whenever user selects prompt values as *'C'* only fields named *'Field1' and 'Field2'* should be displayed.
    Thanks,
    Deepak

    Hi Bhavna,
    I tried using View Selector, however I am not able to achieve the required functionality with that.
    I created a Request with 3 columns in it, then I switched to criteria and added another table to that. The new table automatically got the similar 3 columns used in the first report. Now when I tried to delete one of those columns from the new report, it also got deleted from the first report.
    All the views are dependent, changes made to one are reflected in other.
    Can't figure it out, where am I going wrong?
    Thanks,
    Deepak

  • Getting rate for my report

    Hi All,
    I would like some help with this query. This is my sample code:
    create table myReport(
    report_id integer,
    product_class_id integer,
    place_id integer,
    fy integer);
    insert into myReport(report_id, product_class_id, place_id, fy)
    values (1, 1, 1, 2012);
    insert into myReport(report_id, product_class_id, place_id, fy)
    values (2, 1, 2, 2011);
    insert into myReport(report_id, product_class_id, place_id, fy)
    values (3, 1, 3, 2011);
    insert into myReport(report_id, product_class_id, place_id, fy)
    values (4, 2, 2, 2012);
    insert into myReport(report_id, product_class_id, place_id, fy)
    values (5, 2, 5, 2011);
    insert into myReport(report_id, product_class_id, place_id, fy)
    values (6, 3, 1, 2012);
    insert into myReport(report_id, product_class_id, place_id, fy)
    values (7, 4, 1, 2012);
    create table myRates(
    rate_id integer,
    product_class_id integer,
    place_id integer)
    insert into myRates(rate_id, product_class_id, place_id)
    values(1, 1, 1);
    insert into myRates(rate_id, product_class_id, place_id)
    values(2, 1, 2);
    insert into myRates(rate_id, product_class_id, place_id)
    values(3, 1, null);
    insert into myRates(rate_id, product_class_id, place_id)
    values(4, 2, 1);
    insert into myRates(rate_id, product_class_id, place_id)
    values(5, 2, 2);
    insert into myRates(rate_id, product_class_id, place_id)
    values(6, 2, null);
    create table myRatesByYear(
    rate_id integer,
    fy integer,
    rate integer)
    insert into myRatesByYear(rate_id,fy,rate)
    values(1, 2011, 5);
    insert into myRatesByYear(rate_id,fy,rate)
    values(1, 2012, 15);
    insert into myRatesByYear(rate_id,fy,rate)
    values(2, 2011, 6);
    insert into myRatesByYear(rate_id,fy,rate)
    values(2, 2012, 12);
    insert into myRatesByYear(rate_id,fy,rate)
    values(3, 2011, 7);
    insert into myRatesByYear(rate_id,fy,rate)
    values(3, 2012, 14);
    insert into myRatesByYear(rate_id,fy,rate)
    values(4, 2011, 8);
    insert into myRatesByYear(rate_id,fy,rate)
    values(4, 2012, 16);
    insert into myRatesByYear(rate_id,fy,rate)
    values(5, 2011, 9);
    insert into myRatesByYear(rate_id,fy,rate)
    values(5, 2012, 18);
    insert into myRatesByYear(rate_id,fy,rate)
    values(6, 2011, 2);
    insert into myRatesByYear(rate_id,fy,rate)
    values(6, 2012, 4);As you see I have a rate table by rate_id, product_class_id, place_id and year
    select r.rate_id, r.product_class_id, r.place_id, y.fy, y.rate
    from myRates r
    join myRatesByYear y on y.rate_id = r.rate_id;
    rate_id     product_class_id     place_id     fy     rate
    1     1     1     2011     5
    1     1     1     2012     15
    2     1     2     2011     6
    2     1     2     2012     12
    3     1     NULL     2011     7
    3     1     NULL     2012     14
    4     2     1     2011     8
    4     2     1     2012     16
    5     2     2     2011     9
    5     2     2     2012     18
    6     2     NULL     2011     2
    6     2     NULL     2012     4I would like to get the rate for my report table base. The search for the rate first will be base on product_class_id, year and place_id, second if the report row match the product_class_id and year but not place_id it should get the default rate (in my rate table the place_id is null).
    Last if the report row doesn't match any key the result should be zero.
    This is my result query, how can I do this query?
    report_id     product_class_id     place_id     fy rate
    1     1     1     2012   15
    2     1     2     2011   6
    3     1     3     2011   7
    4     2     2     2012   18
    5     2     5     2011   2
    6     3     1     2012   0
    7     4     1     2012   0I try to do a function by don't know how to handle the default place_id (null)
    I hope this is clear... Thanks!
    Best,

    Hi,
    Here's one way to do that:
    WITH   got_r_num     AS
         SELECT    re.*
         ,       y.rate
         ,       ROW_NUMBER () OVER ( PARTITION BY  re.report_id
                                      ORDER BY          r.place_id        NULLS LAST
                             )           AS r_num
         FROM           myreport       re
         LEFT OUTER JOIN  myrates        r  ON   r.product_class_id  = re.product_class_id
                                               AND  NVL ( r.place_id
                                             , re.place_id
                                           )              = re.place_id
            LEFT OUTER JOIN  myratesbyyear  y  ON     y.rate_id         = r.rate_id
                                            AND     y.fy              = re.fy
    SELECT    report_id
    ,        product_class_id
    ,        place_id
    ,       fy
    ,       NVL ( rate
               , 0
               )          AS rate
    FROM       got_r_num
    WHERE       r_num     = 1
    ORDER BY  report_id
    ;Output:
    `      PRODUCT
    REPORT  _CLASS PLACE
       _ID     _ID   _ID         FY       RATE
         1       1     1       2012         15
         2       1     2       2011          6
         3       1     3       2011          7
         4       2     2       2012         18
         5       2     5       2011          2
         6       3     1       2012          0
         7       4     1       2012          0This outer-joins the myreport table to the result set you posted, keeping only the rows where myrates.place_id is either NULL or the same as myreport.place_id. From there, it's a matter of picking the best match, when there is a choice, where rows with non-NULL myrates.place_id are better than rows with NULL myrates.place_id. Picking the best row, however "best" is defined, is often a job for the analytic ROW_NUMBER function.

Maybe you are looking for

  • I can't find iPhoto after upgrading to Snow Leopard...

    Usually, there is an icon when I open photobooth but its not there. Then I tried looking in finder to see if I even had it and I don't. Snow Leopard should come with iPhoto right??

  • ViewSonic VX2235wm widescreen LCD

    I'm a new Mac user - received my mini last night. I bought a 22 inch Viewsonic widescreen LCD (VX2235wm) and am happy to say that the Mac Mini supports the monitor's native resolution of 1680x1050 (DVI connection). mac mini    

  • Safari will not clear history

    I am unable to clear some old history from Safari on my retina macbook pro with mavericks.  Reset, private browsing, clear cache, clear history, deleting com.apple.safai.plist - nothing works.  History from Ocotber 2013 returns every time, as well as

  • Verizon On Demand Not Showing Advertised Films?

    The TMC web site states that "The Skeptic" is available beginning April 5.  It is not listed in On Demand, though it is airing.  Why doesn't Verizon air the On Demand films that the channels themselves advertise as available?  Are they simply incompe

  • What do you think are the5 Most Important Tips for a Mac Newbie

    Having been amazed at the intuitivness of the iPad and not wanting to touch Windows 8 I have invested in my first Macbook Pro. I love the feel of its quality and the expected Apple intuitiveness. I guess it is a case of not knowing what to ask hence