Filter base on prompt generated variables

Hi.
I need to create a presentation variable and pass it to a report.
In this report 2 fields need to be filtered on this value (i.e. Billing Date and ).
I tried to create a prompt generating a presentation variable, but I'm able to create a variable only with the option "is equal to / is in" while my need is to filter with "is less than or equal to".
Am I wrong ? What is the correct way to achive my goal ?
Many many thanks,
Andrea

Hi,
Use presentation variable while creating pormpt and apply filter on the report using this presentation variable,you will have many options to select equal to,less than,greater than etc..
Close thread if answered.
Regards,
Srikanth
http://bintelligencegroup.wordpress.com
Edited by: Srikanth Mandadi on Feb 1, 2011 1:28 AM

Similar Messages

  • Issue with Calendar prompt presentation variable

    Requirement: (OBIEE 11g)
    A dashboard should have two prompts - one calendar prompt and one text field prompt giving number of days. There is a timestamp column (SHIP DATE) in the analysis. There should be a between limit in this timestamp field. Logic to be implemented is - Calendar Prompt DateTime <= SHIP DATE < (Calendar Prompt DateTime + No. of days from text field).
    Solution Tried:-
    Using the dashboard prompt, two prompts and two corresponding presentation variables were created. First presentation variable is for calendar prompt timestamp (Date1) and other one is for no. of days (Num_Days) text field prompt.
    Then in the analysis, two filters were created on the Ship Date. First filter is set as 'Is Prompted' and it takes the values '<=' from calendar prompt in dashboard.
    For the other filter, I converted it to SQL and wrote the following:-
    "Time"."Ship date" <= (timestamp '@{variables.Date1}['YYYY-mm-DD HH:MM:SS']{2013-01-01  00:00:00}')  + @{variables.Num_Days}{30}
    The analysis runs fine for the above filters, but when run from the dashboard, it throws up an error.
    Error getting drill information: SELECT "Time"."SHIP DATE" saw_0, "Base Facts"."QUANTITY" saw_1 FROM "SHIPPING DATA" WHERE ("Time"."SHIP DATE" <= (timestamp '''2013-00-01 00:10:SS''') + 30) AND ("Time"."SHIP DATE" >= timestamp '2013-10-01 00:00:00').
    From the above it seems that error is coming because I am unable to set properly the calendar prompt presentation variable in a format which can be read by the analysis. Since analysis is running fine from the default value of Date1, I was thinking of somehow converting the calendar prompt presentation variable in the similar prompt.
    Any pointers to the correct approach?
    Thanks
    Kundan

    I found a workaround to my above issue for now but I would like to know the proper approach from experienced folks.
    My workaround is as follows:-
    I created an additional column in the analysis -> TIMESTAMPADD(SQL_TSI_DAY,- @{variables.Num_Days}{30}, "Time"."Ship date"). Then I applied a filter on this new field. The filter is set as < variable expression Date1 (coming from presentation variable). Since I am not converting this filter to SQL, OBIEE server seems to be taking care of timestamp format conversion.
    I think I need to study the logs and the config XMLs to see how date format is being stored to get a better solution.
    Regards
    Kundan

  • How to set a dynamic filter to a prompted one?

    Hello:
    I have a dashboard prompt whose values determine the columns for a constructed dynamic filter column using case statement.
    There is another dashboard prompt whose value determine the the values for the dynamic filter column.
    I have a need to set this dynamic filter to the operator 'is prompted'. According to the OBIEE documentation, the requirement for 'is prompted' filter is to have the dashboard prompt column match with the filter column.
    I currently use a presentation variable for the dashboard prompt column that gives the filter value.
    How do I make my dynamic filter to be prompted (for pre-filtering results as a default behavior) and subsequently use the presentation variable (derived from the dashboard prompt) if a user enters the appropriate prompt values?
    Here is an example:
    Dashboard prompt: Location Type-> (State, District, City) (The case statement on my filter determines the appropriate logical column State or District or City)
    Filter Value: Dallas (pv1)
    The dynamic filter will generate "City" = '@{pv1}' (Dallas in the above example)
    I want this dynamic filter to be set to 'is prompted' for pre-filtering results as a default behavior.
    Thanks for reading this far and looking forward to your suggestions.
    Regards
    Sankar Bala

    Please read this carefully, you may find what you are looking for:
    Dynamic dashboard prompts and columns used in multifunctional report, full guided navigation
    http://108obiee.blogspot.com/2009/08/dynamic-dashboard-prompts-and-columns.html
    Or this one:
    http://obiee101.blogspot.com/2009/04/obiee-dynamic-prompt-content.html
    Regards
    Goran
    http://108obiee.blogspot.com

  • Inserting in the UUT_Results table a value that we read from our data base from a local variable

    We would like to include in the UUT_Results table a value that we read from our data base into a local variable during the execution of our sequence file. We found that by modifying the configure database options we were able to add a column for this variable, but the local variable was not available to be placed into an expression for that column from the local variables or parameters. Is it possible to do this, and if so, how? Station Globals were available to be included in the expression, however the sequence file may be executed on more than one system which makes the Global unavailable on systems other than the one where the sequence file originated.

    You can use the TestStand API to programmatically create global variables at runtime, thus ensuring their existence. For example, you could call Engine.Globals.SetValString("GlobalStringVariableName", PropOption_InsertIfMissing, "variable value")
    Of course, if you need to test multiple UUTs in parallel, a single global is not sufficient. In that case you might consider adding the field you need to the UUT datatype in the process model. You could then access the field in your sequence via RunState.Root.Locals.UUT.YourNewField = YourNewValue.
    If you also want your sequence to run without using a process model, you must check for the existence of the UUT before accessing it. You could use the expression function: PropertyExists("RunState.Root.Locals.UUT.YourNewFi
    eld")

  • Filter base on CallerID to VM for only 1 User

    Hi
    CM4.0.2sr2a - Can I Filter base on CallerID to VM for only 1 User.
    Reason: This user gets constant sales calls from certain vendor that they recognize the callerID and don't want to answer their calls but rather have it go to VM

    perhaps you can setup a phone template that has an "idivert" button where if the user sees an incoming number they don't want to answer, they can just press the 'idivert' button and the call goes straight to voice mail.
    see the following link for more info:
    http://www.cisco.com/en/US/products/sw/voicesw/ps556/products_administration_guide_chapter09186a00801ed115.html

  • How to generate variable to receive name of database on B1if

    Hi Everyone,
    I need your help, I created a web service with B1if and I tried generate one variavel to receive a name of database to use work on my web service, but I could not.
    The client will set the name of database to receive to data from webservice.
    Can generate variable to receive name of database on B1if?
    I dont find nothing about this situation, Anyone tried make something like this?
    Sorry for my bad English.
    Thanks,
    Duoglas

    Hi
    I'm not sure if I understood you correctly:
    you will receive a database name as a part of the incoming message for your web service and then you need to choose a correct system from SLD based on this name? For example there will be a <dbName> tag in your and based on its value you would have to choose appropriate system in B1iF. Am I right?
    Kind regards,
    Radek

  • Making generated variable names?

    Hey, I'm trying to make new Vector variables given some input I already have. I'm doing it as follows:
    for (int i=0; i < commandName.size()-1; i++) {
    String newVariableName = commandName.elementAt(i).toString();
    Vector newVariableName = new Vector();
    Of course, it's not working - but do you know if it is possible to generate variable names in this manner?

    Use HashMap.
    You will generally find that most languages that offer variable dereferencing are also essentially "typeless", although you can sometimes query what the type of the "value" of a variable is.
    HashMap does this exactly, with the bonus that you can double your namespace by creating two maps! :-)

  • KPI doesn't filter according to the repository variables- obiee 11g

    Hello all,
    I have created a KPI that contains the following dimensions:
    Year, Monthname, Trn_date
    I have also created some 3 repository variables:
    CurrentYearRepoVariable: holds current year (select to_char(trunc(sysdate, 'yyyy'),'yyyy') from dual)
    CurrentMonthRepoVariable: holds current month (select to_char(trunc(sysdate, 'mm'),'MONTH') from dual)
    and TodayRepoVariable: holds current day (select trunc(sysdate) from dual)
    I added the KPI in a KPI watchlist and added as filter for Year, Monthname, Trn_date the CurrentYearRepoVariable,  CurrentMonthRepoVariable and TodayRepoVariable accordingly.
    When I “analyze” the KPI I don’t see the results for the current day as if the filters are not correct. I can see from the repository that the variables have the correct values. I have also created an analysis where I applied the same filters and the result is the correct one. It seems that the KPI doesn’t seem to “see” the correct values of the variables. I have also tested with an agent and it doesn’t seem to work either.
    The OBIEE version is 11.1.1.6 .
    Can somebody help with this? How is it possible with the analysis to see the correct result but not with the KPI and agent?
    Thanks in advance,
    Konstantina

    Sorry I was wrong in my previous thread.
    Actually your approach is not correct, Product Number choose constraint that will show as per the selection of Product Name.
    Coming to default value for Product Number you are going for sql override that is okay but not work with variable, instead of setting default values for product number set that to product name.
    if not you need to go for 2 different prompts
    Prompt 1 Product Name hit GO
    Prompt 2 will work based on as you defined earlier with variables
    Hope this helps

  • Query - Filter several characteristics by one variable

    Hi Experts,
    I'm facing the following situation in my current project:
    I have several characteristics named Formula ID for each cost component in the cube.
    Formula ID - Base Price
    Formula ID - Additives
    Formula ID - Differential
    Formula ID - Transportation
    Etc
    I need to create a single variable that is going to appear in the selection screen, where the user will be able to type a value. Then the query will search this value in all the characteristics below during query runtime.
    I was thinking in formula variable. Is it applicable in this case? If so, do I need to use customer exit together?
    Is there any other way to do it?
    Thanks!!!
    Helder

    I am not sure if formula variable would help coz. therein again, u can give only one ref characteristic.
    You can do this with customer exit provided the data type is same for all the char.
    Create restriction for one of the chars as you would do normally (create a variable. processing type - manual input. eg. for base_price)
    For the other char, create a variables of processing type customer exit (ready for input should not be checked); and write the below code for each of them.
    READ TABLE i_t_var_range WITH KEY iobjnm = 'BASE_PRICE' INTO l_s_var_range_dt.
        IF I_STEP = 2.
          l_s_range-low          = l_s_var_range_dt-low.
          l_s_range-high          = l_s_var_range_dt-high.
          l_s_range-sign          = l_s_var_range_dt-sign.
          l_s_range-option          = l_s_var_range_dt-option.
          APPEND l_s_range TO e_t_range.
        ENDIF.
    In the above code, ZV_ADDITIVES is the customer exit variable for 'additives'.
    Write similar code for the other 2 char.
    When the query executes, only the variable for base_price would be prompted. the other variables would take the value from the base_price variable.
    Hope this helps!
    ~ Arun KK

  • Query Generator Variable Alias

    Hi,
    How can I create an alias for variables in scripts made with query generator? For example, if i include where clauses such as begin date and end date using greater/less than, they will be both shown in the criteria selection box as "Posting Date." This may be confusing to users unfamiliar with the query format. Can I change these prompt names? Thank you.

    Hi Allen,
    If you mean the selection box when you run query to input values, then the answer is no.  The selection box will only desplay the field description like you can see in DTW template.
    For the query results, I am sure you know how alias can be assigned
    Thanks,
    Gordon

  • Query Generator/Variables

    In Query Generator I need to prompt for dates using [%0] and [%1].  However, I get an error once I input dates.  Do the query variables come in as string format and if so, how do I compare a date input

    I'm not a specialist on this, but I have to learn this for the Certification exam. So, I played with Queries and noticed that the date format is driven by the Date format parameter in Administration - General settings - Display.
    I tried the following query:
    SELECT CardCode, UpdateDate FROM OCRD T0 WHERE T0.UpdateDate >= '[%1]'  ORDER BY T0.UpdateDate
    When the date format is CCYY-MM-DD it works with 2003-11-31 and 03-11-31 and 03.11.31.
    When the date format is set to DD.MM.YYYY the query runs OK with 31.12.02.
    HTH
    Juha

  • Filter column values depending on variable

    Hi,
    I have a requirement to filter column results based on a prompt on a report. So, for example, there is a column called Transaction Type which can hold one of 3 values (Forced Sign, Forced Embark, or Optional). The prompt should give the selections:
    Forrced Transactions
    Optional Transactions
    If First Transaction is chosen, then the transaction column is filtered to show rows that have Forced Sign and Forced Embark transactions; if the Optional Transaction option is chosen then the report must show only rows that have Optional in the transaction column.
    I have created variable prompt called TransType with the above options, but not sure where to go next. Can anyone help?
    Thanks in advance.
    Geoff

    Thanks for your reply. Won't that just filter the transaction type column by the value of the user variable set by the dashboard promp?
    I want to filter as follows:
    Case 1 - Forced Transactions is selected on prompt: Report shows only Forced Sign and Forced Embark transactions.
    Case 2 - Optional Transactions is selected on prompt: Report shows only optional transactions.
    Thanks.

  • Prompts and variables

    In the dashboard prompt what is 'Presentation variable' and 'Request variable' in the set variable drop down. Also what is the difference between dashboard prompt and column filter prompt? I am little confused with these prompts, variables.

    What did you do to find out? You need to do some research...
    Read the manual:
    http://download.oracle.com/docs/cd/E10415_01/doc/bi.1013/b31767.pdf
    Presentation Variables, page 44
    Column Filters, page 47
    Request Variable
    http://www.lmgtfy.com/?q=request+variable+in+obiee

  • In the filter the value of text variable is not shown, only technical name.

    Hi All,
    We have some odd behavior of text variables in the filter screen of key-figures.
    After entering values in the variable screen, the report is executed.
    Within the report all text variables are filled, with the values entered in the variable screen.
    I say all, because we use both sap standard variables &0T_FPER& as customer specific &ZFSCYR&.
    When i want to change the key figures showned, i press the filter icon for key-figures (BW 3.5)
    In the list shown: existing filtervalues, the textvariables of SAP standard are filled with the value entered in the variable screen. However the customer specific is shown with the technical name (&ZFSCYR&) and not the value.
    Has anyone experience with this behavior or even better a solution to prevent this?
    As allways, each usefull answer points assigned!
    Regards,
    René

    Hi Rene,
    If ur custom text variable is not getting populated then you need to check out the code that u have written in there in CMOD for this and ofcourse if ur using this text variable after report execution then it will definately be in i_step 2.
    So best way is to debug your code and check that using code RSRT.
    Thanks
    Dipika

  • RUN Time error while use filter table in query generator

    Hai..
                   I have 2 Functions under "Scalar valued functions" in SQL Server,i try to call this functions in Query generator its working fine,result also display correctly, but i click filter table system showing  Error Message " Run Time Error,Abnormal program termination" then SAP is get closed,i tested this scenario in 3 Database am getting same error , Is this BUG in SAP B1?There is no error number in error message

    This is my function
    set ANSI_NULLS ON
    set QUOTED_IDENTIFIER ON
    go
    -- =============================================
    -- Author:          <Author,,Name>
    -- Create date: <Create Date, ,>
    -- Description:     <Description, ,>
    -- =============================================
    ALTER function [dbo].[Get_TransObjName](@Obj_type NUMERIC(20,5))
    returns varchar(500) as
    BEGIN
    DECLARE @Obj_type_Name varchar(100)
    select @Obj_type_Name =
    case @Obj_type
    when     -2     then     'Opening Balance'
    when     -3     then     'Closing Balance'
    when     1     then     'oChartOfAccounts'
    when     2     then     'oBusinessPartners'
    when     3     then     'oBanks'
    when     4     then     'oItems'
    when     5     then     'oVatGroups'
    when     6     then     'oPriceLists'
    when     7     then     'oSpecialPrices'
    when     8     then     'oItemProperties'
    when     12     then     'oUsers'
    when     13     then     'A/R Invoices'
    when     14     then     'A/R Credit Memo'
    when     15     then     'A/R DeliveryNotes'
    when     16     then     'A/R Returns'
    when     17     then     'oOrders'
    when     18     then     'A/P Invoice'
    when     19     then     'A/P Credit Memo'
    when     20     then     'Goods Receipt PO'
    when     21     then     'Goods Returns'
    when     22     then     'PurchaseOrders'
    when     23     then     'Quotations'
    when     24     then     'IncomingPayments'
    when     25     then     'Deposit'
    when     28     then     'oJournalVouchers'
    when     30     then     'JournalEntries'
    when     31     then     'oStockTakings'
    when     33     then     'oContacts'
    when     36     then     'oCreditCards'
    when     37     then     'oCurrencyCodes'
    when     40     then     'oPaymentTermsTypes'
    when     42     then     'oBankPages'
    when     43     then     'oManufacturers'
    when     46     then     'VendorPayments'
    when     48     then     'oLandedCostsCodes'
    when     49     then     'oShippingTypes'
    when     50     then     'oLengthMeasures'
    when     51     then     'oWeightMeasures'
    when     52     then     'oItemGroups'
    when     53     then     'oSalesPersons'
    when     56     then     'oCustomsGroups'
    when     57     then     'ChecksforPayment'
    when     58     then     'Stock List'
    when     59     then     'Goods Receipt'
    when     60     then     'Goods Issue'
    when     64     then     'oWarehouses'
    when     65     then     'oCommissionGroups'
    when     66     then     'oProductTrees'
    when     67     then     'Inventory Transfers'
    when     68     then     'oWorkOrders'
    when     69     then     'Landed Costs'
    when     70     then     'oCreditPaymentMethods'
    when     71     then     'oCreditCardPayments'
    when     73     then     'oAlternateCatNum'
    when     76     then     'Postdated Deposit'
    when     77     then     'oBudget'
    when     78     then     'oBudgetDistribution'
    when     81     then     'oMessages'
    when     91     then     'oBudgetScenarios'
    when     97     then     'oSalesOpportunities'
    when     93     then     'oUserDefaultGroups'
    when     101     then     'oSalesStages'
    when     103     then     'oActivityTypes'
    when     104     then     'oActivityLocations'
    when     112     then     'oDrafts'
    when     116     then     'oDeductionTaxHierarchies'
    when     117     then     'oDeductionTaxGroups'
    when     125     then     'oAdditionalExpenses'
    when     126     then     'oSalesTaxAuthorities'
    when     127     then     'oSalesTaxAuthoritiesTypes'
    when     128     then     'oSalesTaxCodes'
    when     134     then     'oQueryCategories'
    when     138     then     'oFactoringIndicators'
    when     140     then     'oPaymentsDrafts'
    when     142     then     'oAccountSegmentations'
    when     143     then     'oAccountSegmentationCategories'
    when     144     then     'oWarehouseLocations'
    when     145     then     'oForms1099'
    when     146     then     'oInventoryCycles'
    when     147     then     'oWizardPaymentMethods'
    when     150     then     'oBPPriorities'
    when     151     then     'oDunningLetters'
    when     152     then     'oUserFields'
    when     153     then     'oUserTables'
    when     156     then     'oPickLists'
    when     158     then     'oPaymentRunExport'
    when     160     then     'oUserQueries'
    when     162     then     'Inventory Valuation'
    when     163     then     'oCorrectionPurchaseInvoice'
    when     164     then     'oCorrectionPurchaseInvoiceReversal'
    when     165     then     'oCorrectionInvoice'
    when     166     then     'oCorrectionInvoiceReversal'
    when     170     then     'oContractTemplates'
    when     171     then     'oEmployeesInfo'
    when     176     then     'oCustomerEquipmentCards'
    when     178     then     'oWithholdingTaxCodes'
    when     182     then     'oBillOfExchangeTransactions'
    when     189     then     'oKnowledgeBaseSolutions'
    when     190     then     'oServiceContracts'
    when     191     then     'oServiceCalls'
    when     193     then     'oUserKeys'
    when     194     then     'oQueue'
    when     198     then     'oSalesForecast'
    when     200     then     'oTerritories'
    when     201     then     'oIndustries'
    when     202     then     'oProductionOrders'
    when     203     then    'A/R Down Payment'
    when     204     then    'A/P Down Payment'
    when     205     then     'oPackagesTypes'
    when     206     then     'oUserObjectsMD'
    when     211     then     'oTeams'
    when     212     then     'oRelationships'
    when     214     then     'oUserPermissionTree'
    when     217     then     'oActivityStatus'
    when     218     then     'oChooseFromList'
    when     219     then     'oFormattedSearches'
    when     221     then     'oAttachments2'
    when     223     then     'oUserLanguages'
    when     224     then     'oMultiLanguageTranslations'
    when     229     then     'oDynamicSystemStrings'
    when     231     then     'oHouseBankAccounts'
    when     247     then     'oBusinessPlaces'
    when     250     then     'oLocalEra'
    when     280     then     'oSalesTaxInvoice'
    when     281     then     'oPurchaseTaxInvoice'
    when     300     then     'BoRecordset'
    when     305     then     'BoBridge'
    when     260     then     'oNotaFiscalUsage'
    when     258     then     'oNotaFiscalCFOP'
    when     259     then     'oNotaFiscalCST'
    when     261     then     'oClosingDateProcedure'
    when     10     then     'oBusinessPartnerGroups'
    when     278     then     'oBPFiscalRegistryID'
    else cast(@Obj_type as char(20)) end
    return @Obj_type_Name
    END

Maybe you are looking for

  • How can we transfer the date field in to the PO in R/3 from SRM

    Hi, We are using classic scenario with SRM release 5.50 and when we create SC using service option we can maintain the delivery date with start and end date in SC. In R/3 ECC 5.0 when the SC is converted as PO the end date is not reflected as we are

  • Airport Extreme b/g disappearing

    I'm having a problem that is really puzzling me. I have a "dual band" network that is powered by a Time Capsule and an Airport Extreme b/g base station. The TC is configured to run n-only, which the Extreme base station is b/g compatible. The Extreme

  • Trying to print form fields only

    I have made a fillable form with LiveCycle Designer, it is a 2 page form that my customer will receive by email, fill out and then feeds into a regular ink jet printer to print off fields onto an already pre-printed page they have in their office (th

  • Billing block for invoices and credit notes on Sold-tou00B4s level

    Hi All can we have billing block for invoices and credit notes on Sold-to´s level. please advice. Thanks Tushar

  • Nokia please do something for c6-00

    nokia please do something for c6-00 as c6-00 phone performance are really bad compared to other s60v5. nokia market is currently getting down day by day, so kindly support for s60v5 like c6-00 and 5800 for further improvements, so that customers of t