Date timestamp in a query filter

Hi,
I have date filter in WebI report.  when ever i apply/choose  the dates it's adding time stamp to the query. But that date object doesn't have time stamp at DB table level. still it gives us the correct data irrespective of the time stamp part?
Thanks!!

Hi Aaskar,
It's Webi standard but you could use some formula on the dimension to remove it.
FormatDate(datefield(); "hh:mm:ss" )
With regards
Gill

Similar Messages

  • InfoView - Query Filter for date variable of previous week

    I am trying to automate the process to generate a report for the previous week's data.  Right now I just prompt the user to enter in the start & end date/times, but I would like to somehow automate the date filtering using a Query Filter.
    In particular, the report will be generated every Thursday at 12:35 PM, and it needs to filter only the date field between the date's of the previous Thursday @ 1:31 PM, and the current Thursday @ 12:30 PM.
    I know there is a way to do this using an offset or something like that, but I'm a bit of a newbie to InfoView....so any help is greatly appreciated.  Sorry if the explanation is confusing.
    Thanks so much,
    Nick

    Hi,
    You can create two objects on universe level or first database level then add in the universe based the sysdate.
    Then go to  webi  query and  replace the prompt value by these objects and from next time when ever user refresh this report will run  without any prompt.Same thing in the scheduled report.
    Thanks,
    Amit

  • How can I get query filter dates in report heading?

    <p>Hello everybody.</p><p>I&#39;m pretty new at this so I hope this is the place to ask this question.</p><p>I&#39;m trying to create a report in WebI where I want a number of cases sorted by a number of categories and between different dates. The dates are supposed to be selceted at the time you are running the report (like "I want all cases between 2006-03-13 and 2006-05-30). And this is ofcourse done by using the "Finished date" object that I&#39;ve created in the universe as a filter. </p><p> The dates selected in the query is supposed to be included in the report heading (like "Results of cases between {date 1} and {date 2}". I have been reading the documentation about free cells, but the only thing I&#39;ve found was about last refresh date and drill level.</p><p> Anyone who understand what I&#39;m talking about <img src="/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-smile.gif" alt="Smile" title="Smile" width="18" height="18" />and know how I can accomplish this?</p><p>Thanks in advance!</p>

    UserResponse(DataProvider([date 1]); "Start date?")

  • Query - Filter by a specific dynamic date - Return only the max date record

    Hello experts,
    I'm building a query. In this query I have a filter named validity date. I need to select a record where the max date is less than this filter.
    For example:
    Comp. Code | Plant | Mat. | Cost Type | Valid. Date | Value
    0000000001   00001  0001  xxxxxxxx    12.05.2008   2,00
    0000000001   00001  0001  xxxxxxxx    09.05.2008   1,00
    0000000001   00001  0001  xxxxxxxx    05.05.2008   0,50
    If the user set 13.05.2008 in the filter, the report should return:
    0000000001   00001  0001  xxxxxxxx    12.05.2008   2,00
    If the user set 11.05.2008 in the filter, the report should return:
    0000000001   00001  0001  xxxxxxxx    09.05.2008   1,00
    If the user set 08.05.2008 in the filter, the report should return:
    0000000001   00001  0001  xxxxxxxx    05.05.2008   0,50
    The problem is that the date will be dynamic and I'll need to return just one line for a combination of Company Code, Plant, Material and Cost Type. First of all I would like to know the best way to do it. Do I need to use virtual key figure? If so, anyone could tell me some steps to do it?
    Thanks in advance,
    Helder

    Not Virtual KeyFigure.
    You can achieve this with Restricted KeyFigure with the restriction with CalDay (Variable) which user input while Running the Query. Its more like a Bucket. SAP Delivered Buckets Query is in the below link. Check that query you will understand better about Bucket.
    http://help.sap.com/saphelp_nw04/helpdata/en/40/94af39a3488979e10000000a11402f/content.htm
    If not clear try to Install the BC Query and play with that you will know better.
    Thanks
    Sriram

  • How can I use a variable in webi query filter

    I created a webi report using the fiscal year/month(period) field as a filter to show a window of 18 periods.  The report works just as requested using a between filter on fiscal period with prompts for both the start and ending periods.  Now I'd like to calculate the start period based on what was entered in the prompt for the ending period (e.g. enter 201106 for the TO prompt on the between statement and have the FROM statement filled in as 201001.)  I can create variables in the report to display both the user response to the ending period prompt and the calculated starting period, but I cannot figure out how to incorporate that calculated starting date into the FROM side of the between query filter.
    Any suggestions? 
    Thanks,
    Doug
    Sorry I got my froms and to's mixed up in the first draft. Edited by: Doug Roswold on Mar 4, 2011 6:27 PM

    Let me understand what you want to do.  You don't want to use two prompts, just one, insn't it?
    I mean, instead of:
    Filter area:
    Date between "From prompt" to "To Prompt"
    You want something like:.
    Filter area:
    Date between Variable  to "To Prompt"
    if I'm not wrong that's not possible to achieve in Webi Query  Panel.
    Can you modify your universe? The only way to achieve it is modifying your universe, creating your formula in the universe and assigning it to an object, so you can use this new object in your filter area like this:
    Date between MyUniverseObject  to "To Prompt"
    Edited by: PadawanGirl on Mar 4, 2011 8:15 PM

  • Bex Query Filter Page in BSP - Urgent Please...

    I have seen many threads about Bex query in BSP, but can any one tell me how can i display the default Bex Query Filter page in BSP.
    I created a query in Bex Query Designer and added few filters and when i execute i get a popup where i can enter the input values for which the report would be generated, can i get the same functionality or similar functionality if i have the same Bex query in BSP.
    Also apart from the filters specified in the Bex, all the columns displayed in the report appears in the filter section how can get the same functionality BSP.
    Note: I do not want to use Bex Web Application Designer
    Please tell me the steps for the same.
    Atleast please give me the steps at a high level. Please...

    Hi,
    1.  Create a CKF, inside the CKF window create a new Formula Variable --> Right click in left side window on var and say create new Variable
    2.  Create new variable of replacement path type and reference Characteristic as the TO DATE value which you want to be max.
    3.  Now drag this new created var to CKF and save.
    4. Now create condition with follwoing deatils:
    Key Figure              Operator     Value
    Max Date(CKF)       TOP N          1
    Save and execute your query. This will give you max value for the To Date field.
    Hope it works .
    Regards
    Raj Rai

  • Use Yesterday as variable for Query Filter

    Post Author: rrburton
    CA Forum: WebIntelligence Reporting
    I want to have a query filter that refers to the previous day.  In regular SQL I would use something like "= trunc(sysdate)-1".  I don't see any option for doing it this way in web intelligence, the closest it comes is selecting object and then assigning the Beginning of Last Week item from the System Date table.  What am I missing?

    Post Author: rrburton
    CA Forum: WebIntelligence Reporting
    Nevermind - I figured it out just now.  It isn't very intuitive.  In the Objects and Variables dialog in the SystemDate table there are a bunch of items like 1 day, 2 days, etc. and you select one of those and then in the code it looks like:
    WHERE   PKG_NTD_CONV.TO_ORCL_DATE(TROUBLE_TICKET_ARCHIVE.CREATE_DATE)  =  ( sysdate )-1
    It should say something like 1 day ago, 2 days ago, etc.

  • Format/Calculation Timestamp Keyfigure in Query (Web)

    Hi All,
    i have a timestamp keyfigure (DEC) in my query...it is coming as '20100705175113'... in my webreport it looks like this:
    20.100.705.175.113
    1.) Is there any possibility to show the keyfigure in this format '2010-07-05 17:15:13' ?
    2.) Is it possible to calculate the difference (in minutes or...) between 2 timestamps at query runtime, and how??
    3.) Is there a SAP standard variable, which gives me a timestamp (current date and time) at query execution (to use in exception reporting)?
    One problem: I cant use customer exit (no developer key)... but would be nice, if there is no other option than customer exit, to explain it all the same...
    Thanks in advance,<deleted by Moderator>
    Sven
    Edited by: Siegfried Szameitat on Jul 5, 2010 6:11 PM
    Edited by: Sven Mler on Jul 5, 2010 6:14 PM

    Hi, thank you for your answer!!! But I don't know, what to wirte it in my conversion routine...I would be very happy, if you could help me again...Please
    Sven
    My blank conversion routine right now:
    PROGRAM CONVERSION_ROUTINE.
    Type pools used by conversion program
    TYPE-POOLS: RSD, RSARC, RSARR.
    TYPES: DE_ (000005) TYPE P.
    Conversion rule for InfoObject
        Data type       = DEC
        ABAP type       = P
        ABAP length     = 000005
    FORM CONVERT_
      USING    RECORD_NO LIKE SY-TABIX
               SOURCE_SYSTEM TYPE RSA_LOGSYS
               IOBJ_NAME TYPE RSIOBJNM
      CHANGING RESULT TYPE DE_  " InfoObject value
               RETURNCODE LIKE SY-SUBRC.
    $$ begin of routine - insert your code only below this line        -
      RESULT = .
      RETURNCODE = 0.
    $$ end of routine - insert your code only before this line         -
    ENDFORM.
    Edited by: Sven Mler on Jul 6, 2010 11:08 AM

  • Problems about  query filter (BEx).

    Hello there,
    I have some problems about  query filter (BEx).
    I have master data and I want to use attribute in this master data to dynamic filter in query(BEx).
    But this attribute is key figure. I can't done it now. TT
    Is this possible? If yes, could anyone advise how this is to be done?
    Thanks in advance.

    Hi
    In BEx there is option as 'Exceptions' & 'Conditions'. If you go in condition, you can specify range for key figure output. This is either predefined or by user selection. You create the condition as per your requirement & it will show you filtered data.
    How to create conditions you will find easily on this site.
    You can create as many conditions as no of filters you want. You can create these at query level also at report output level.

  • Sorting query in MDX query filter in PPS

    Hi,
    Iam new to the PPS world. Iam using MDX query filter and I need to create a filter field using the [BusinessLine].[Department] dimension. I need to sort the display value of Department in descending order in the filter and Iam using the following
    Order([BusinessLine].[Department],[BusinessLine].[Department],DESC) in the query window while creating the filter. But Iam getting 'No value found'! result.
    Please let me know Iam doing any mistake in this

    Hi Umair,
    Thanks for the reply
    The department here is Attribute and BusinessLine is dimension in my cube.For other requirement(the department has to be sorted based on the creation date attribute) purpose I have kept department as composite key with other attribute called CREATE_DATE
    with named column as department
    Order (
    [BuisnessLine].[Department].[DEPARTMENT],
    [BusinessLine].[CREATE_DATE].Properties("Name"),
    DESC
    Iam just replacing the above query as it is in the Enter MDX formul? page
    Is it correct.

  • Query Filter Function?

    when I make a report, I want it to chose the date in "Query Filters` place. this option is going to be between and i am going to chose one of them by myself and the other is going to be chosen 4 months before which I chose. for example, I chose june as a filter, it should give me the february automatically based on my function.  this kind of function  can be written filter which is in  "Query Filters"?????? whenever I write =currentMonth() in filter place, It brings up the data based on the last month.

    Hello,
    Your post is a little difficult to understand, but it sounds like you want to do something like go back, for example 4 months from the date you enter in a prompt when running the report? So if you enter June 1, you want to see data between Feb 1 and June 1?
    You can easily create such an object in your Universe with DateAdd function. That can then be used in query filter. I don't think you can create such a filter on the fly in query filter in Webi. You can on the report as a variable, but not sure that would help.
    Thanks!

  • Query filter over key figure

    Hi,
    A report need to have a query level filter with key figure (to allow +ve values) but not possible for key figures.
    Scenario- every day deltau2019s get added in cube and final report publishes aggregated value. But requirement is to show historical value not the aggregated. This is how cube data looks like-
    Ex-
                                            Receipt Date    Profit Center  Amount(Key figure)  ZDAYS (Dimension)   ZDAYCOUNT(Key figure)
    First Day Posting            14/09/2009            K                     9800                             1                                          1
    2nd days -ve entry         14/09/2009           K                    -9800                             1                                         -1
    2nd days actual posting 14/09/2009           K                      6000                             2                                          2
    3rd days -ve entry          14/09/2009           K                    -6000                             2                                         -2
    3rd days actual posting   14/09/2009          K                     5000                              3                                          3
    Now report supposed to show posting values of every day like for Day 1 and Day 2...tried using conditins & other aggregation options but no luck. Does any one has a clue?

    Hello,
    The only thing i could think of is as below: Check if its plausible.
    1) Add a new infoobject ZFLAG (TYPE CHAR, LEN 1) in your cube.
    2) Now write a routine to populate values in this object while loading data. The routine is a simple one with below logic:
    if KF_value < 0.
    ZFLAG = 'N'.
    else.
    ZFLAG = 'P'.
    endif.
    3) Now for every -ve value record the ZFLAG will be tagged as N.
    4) Now in query filter out all the records with ZFLAG = N.
    When you need aggregated report, simply dont use the ZFLAG in the report and the report will show up aggregated values.
    Regards,
    Shashank

  • Query filter vs report filter

    Hi,
    when running queries in webi, on a universe that is based on a BW BEx query, we often see a problem when trying to at dimensions in to the query filter pane. This often lead to columns switching place and/or report just showing the technical ID, not text. If we do the same filtering in the report filter pane after the query has run, there is no issue.
    When running a query on a universe based on a BEx query, my understanding is that a filter on a dimension (blue object), will be applied after the BEx query has delivered it's result to BO, and then BO/Webi should only keep the records fitting the filter. Why would this obscure the report result? Anybody else had issues with this?
    The users are used to adding filters to the query, and not adding filters in the report afterwards, and they are expecting this to work...
    Regards,
    Øystein

    Hi,
    To apply filters at two levels:
    The query definition u2013 this is the data defined on the Query tab, retrieved from the data source, and returned to the  report.
    The data displayed in the report u2013 this is a subset of the query definition data that you want to display in a specific version of the report
    Filters you apply to the query definition are called query filters. You use query filters to reduce the amount of data retrieved from the data source. Query filters decrease the time it takes to run the report and ensure that only the data relevant to the report users is saved.
    Filters you apply to the data displayed in the report are called report filters. Once the report is generated, you or other users can apply report filters to restrict the values displayed in the report table or chart. The values hidden by the report filters are still saved with in  the microcube. You can modify the report filters to display different values in the report or remove the report filters to display all the values retrieved from the data source.
    Tip
    Filtering the query minimizes the size of reports, reduces the time it takes to refresh report data, and ensures that the data the documents contain is relevant to users consulting the reports. Individual users can then filter the displayed report values by applying the report filters relevant to their specific business focus.
    All the Best,
    Madhu...

  • Query Filter Multiple Value

    Dear expert,
    On the query filter I have u201CTransaction Dateu201D. When prompt to enter the date I picked the operator u201CBetweenu201D. The date I entered ex: u201C05/01/2011u201D and u201C08/31/2011u201D.
    On the report title I need those time frame above. I put the u201CTransaction Dateu201D on my report title.
    However  on the report result I got #MULTIVALUE. Much appreaciate your help.
    Edited by: LToronto on Aug 31, 2011 5:34 PM

    Hi,
    You cannot use minimum or maximum functions, take an example where user has entered dates like 1-1-2000 to 1-1-2012
    but the actaual data may contain values for the dates 9-1-2001 to 2-9-2011 then your report with min and max displays vlaues 9-1-2001 to 2-9-2011 but the actual dates entered by user is different.
    ="Start Date: " + UserResponse("Enter Transaction Date(Start):")+" to  End Date : " + UserResponse("Enter Transaction Date(End):")

  • Query filter doesnt work after switching on hierarchy

    I have 0CALMONTH as a mandatory selection criteria on a Bex query. After the result output if the user switches on a virtual time hierarchy / physical hierarchy created on CALMONTH,(year-quater-month) then the query filter entered on 0CALMONTH is ignored and data for all years is displayed. Is there any way to avoid this? Since we want to use this hierarchy in multiple reports, can this problem be avoided by any hierarchy settings?

    Hi Godbole Yogesh,
    We can ignore the hiearchey from second level i.e. Calmonth level . In hiearchey settings, level of dispay we have is one. by this setting we will be able to see only first of of hiearchey i.e. calday node.
    Pls let me know if you want any further info..
    Cheers,
    Maruthi

Maybe you are looking for

  • Why can I not sign in to itune

    I'm not able to sign in to iTunes. How come?

  • Nokia Messaging doesn't work with vanity domains

    Nokia Messaging's "simplified" setup means I can't get it to work with my vanity domain. I can't get it to ask me what server it should use, it just complains that it can't connect - which isn't very surprising when it doesn't give me any opportunity

  • Address Book Wish List!

    Unless it's already possible, anybody know if Apple ever plans on updating "Address Book" to enable the user to password protect an address book and to have multiple address books.... Having multiple sign-ins is not really a solution. Thx MBP 2ghz 1g

  • XI FILE SRVICE

    Hi i have problem in xi. i build scenario proxy to file. i want that the file will copy to other dictionary with time stamp, so i think to build two file service but i don't know how to insert the second file service to the scenario Maybe someone hav

  • Seritek 2EN2 + Intel SSD's + eSATA Extender?

    I am going to be setting up a new boot volume for my Mac Pro most likely consisting of 2 x 80GB Intel X25-M SSD's in a RAID 0 stripe. I am still exploring options on how to configure this along with my other data volumes and am wondering if anyone ha