OBIEE filter result based on current day of Month

Dears,
I am running an exercise to restrict all available data in my table based on current day of month (less than or equal to), what I am having a trouble in is that when I create a variable in prompt (just to test the query) the below sentence works where when adding it the Criteria body an error happens:
SELECT DayOfMonth(CURRENT_DATE)-3 FROM  "Anysubjectarea" (it works)
but the below won't:
Error getting drill information: SELECT  Month("DIM_TIME"."MONTH") saw_1, Day("DIM_TIME"."DAY") saw_2 FROM "AGGR_REVENUE" WHERE ("DIM_TIME"."YEAR_ID" IN (2014, 2015)) AND (Day("DIM_TIME"."DAY") <= (SELECT DayOfMonth(CURRENT_DATE)-3 FROM "AGGR_REVENUE"))
any help?
Moreover, I have no rich experience in OBIEE, is not there any place to test the query before applying it? If it's a product of ORACLE, why Select sysdate from dual is not working work???
P.s: I have no access to create a repository variable

Hi,
Why do you want to use a "SELECT ...." in your filter? There is no added value in having a subquery in the filter except a slower analysis in your case.
Just add a filter to your "DIM_TIME"."DAY" column and check the "convert this filter to SQL".
And just write your condition there :
Done !
In the Administration you have a link named "Issue SQL" where you can enter LSQL and execute it if you want.
For your last point I guess you are forgetting what OBIEE is ... "Select sysdate from dual" is a query for Oracle Database, OBIEE doesn't "speak" SQL but uses LSQL, so you need to use the correct syntax for LSQL. Also the point of OBIEE is to hide your sources and not be limited by the physical source available in your RPD. Did you try to run a "Select sysdate from dual" against an Excel file? Does it work? Not really (or you have a really smart Excel).
But if you run the same LSQL against an Oracle DB, an Excel file, an Essbase cube they all give you the same result: that's the power of LSQL, adding an abstraction layer on top of your multiple physical sources and have a single language to interact with all of them ...

Similar Messages

  • Highlighting current day in month view of calendar

    Apple shows the day highlighted in all their promo images. I searched this forum and the latest entries are 2006 and 2007. Since Apple is showing this, it should be possible. But how?
    For instance, one plans a trip of two weeks. I'd like the weeks of the trip to have the squares shaded in so that the two weeks stand out. And then I can put events in the square also ...
    Thanks for your help.

    Diane,
    Unfortunately, what you are requesting is not a feature in any version of iCal. I suggest that you provide Apple - iCal - Feedback.
    The visibility of the  current day highlight color is subject to the whims of the hardware and user settings. You may want to try adjusting the color of your display by using System Preferences...>Displays>Color>Calibrate..., and also System Preferences...>Universal Access>Seeing>"Enhance contrast:"

  • Current  day in month view

    In month view, I used to be able to see the current day in a slightly colored box. now all days are all in white. off to the left there is a blue box around the current day but I would like the big view to have the color. It makes it difficult for your eye to be drawn right to the current day.

    In my iCal, the current day is just ever so slightly shaded a light shade of blue. This "concern" has been expressed many times, so I think expressing your thoughts to Apple is the best you can do for now: http://www.apple.com/feedback/ical.html

  • Highlighting current day in month view.....

    Is there an option to highlight the current day? Maybe shade it a different color? If I look at the mini calendar in the left pane the current day is highlighted blue but on the calendar itself the box for the day is white like every other day.
    Thanks in advance!

    svjesser,
    This often sought after feature is not available in the iCal interface.
    ;~)

  • How to get Current day and month value in Stk applets

    Friends please provide me the hint to get the Current Value of month and date from the Mobile equipment(ME).
    please send feedback to [email protected]

    Use "PROVIDE LOCAL INFORMATION" command as per GSM 11.14. This however queries the handset date and time, and hence depends on the handset clock (which may not always be reliable).

  • Set default value based on current day value and setItems in Design studio

    Hello
    I have 2 filters on my dashboard - year and month. The default display of the dashboard should populate current year data. Is it possible to create formula to populate dynamic default value based on the current date using setSelectedValue() ?
    Also, for the calendar month, the items are set as below
    DD_MONTH.setItems(DS_1.getMemberList("0CALMONTH",
    MemberPresentation.INTERNAL_KEY, MemberDisplay.TEXT, 12, "ALL");
    This displays month values as 01/2014, 02/2014 ... How can I change these value to display as January if mm = 01 and February if mm = 02 etc..
    Thanks
    Sirisha

    Hi Victor,
    I have tried using below statment to populate current year as the default selection value for the dropdown. Used it on Startup, but for some reason it loads all the data when the dashboard is opened the first time. Any ideas?
    DS_1.setFilter("0CALYEAR",[Convert.subString(APPLICATION.getInfo().dateNowInternalFormat, 4,6)]);
    Thanks
    Sirisha

  • ICal has stopped highlighting the current day in month view.  Is there some way to reinstate this?

    It still highlights the day in day and week views.  Not sure when this behavior began, but it may have been after installing ColorMunki software.  Thanks for any suggestions.

    svjesser,
    This often sought after feature is not available in the iCal interface.
    ;~)

  • How can I filter a Sharepoint 2007 libarry list based on current user login?

    Hi all.
    I would like to know how I can filter a SharePoint library list based on current user login.
    Suppose I have created the followings:
    1) A SharePoint form library containing bunch of uploaded InfoPath form data.
    2) The InfoPath form template contains a promoted text field called "TargetUser" to store user domain login (ex: DOMAIN\JOE) and every InfoPath form file in the library has a valid domain name stored in the "TargetUser" field.
    I have created a custom view for the form library and would like to filter this view so only items whose "TargetUser" field matches current user's login ID are displayed.
    I went to Edit View page to customize the view and tried to use the [Me] function but I got a "Filter value is not a valid text string" message instead when clicking OK. Apparently [Me] returns a Person/Group data type and the filter cannot compare its value
    to that of "TargetUser".
    I tried using text functions (ex: TEXT([Me],"") hoping to extract default string value from [Me]. The filter accepts the parameter without any error but the resulting fitlered list does not display any items at all.
    I have googled this subject for hours but I have not found any solution.
    It would be greatly appreciated if anyone can help me to create a functional filtered list.
    FYI, my SharePoint 2007 installation is just WSS 3.0 + Form Server. I do not have MOSS 2007 (so no MOSS 2007 web parts or web services).
    Thank you.
    Jason

    Here's what I usually do in order to accomplish this.  Ultimately you'll need to have 2 different fields.  There's the one you already have, with DOMAIN\username stored in it.  Then you'll need an additional field as a "person" column type. 
    Call it "TargetPerson" or something.
    Create a sharepoint designer workflow that runs each time an item is created or changed.  One action:
    Set FIELD to VALUE.
    The first FIELD is "TargetPerson", the VALUE is your "TargetUser" field. 
    Once this is done, then the person value is stored in the person field.  This is the field that you can filter by "TargetPerson" is equal to [Me]
    Laura Rogers, MCSE, MCTS
    SharePoint911: SharePoint Consulting
    Blog: http://www.sharepoint911.com/blogs/laura
    Twitter: WonderLaura

  • Is it possible to filter list view based on current user logged in

    Hi,
    Is it possible to filter the list view results based on the current user logged in. I have a scenario wherein i want to show only those list items to the user which contains his/her name under the column Approver (a list column).
    So if i login to the page, then only those requests should show up which has my name as the Approver, and so on.
    Is it possible please ?
    Thank you.

    Hi Prajk, you could use audience targeting for this. An alternative would be to create a view and add a filter so that "Approver" is equal to [Me]
    cameron rautmann

  • Filter column based on another column - OBIEE 11g

    Hi, I have kind of a strange requirement. I'm trying to build a dashboard that lets a user see data for the current day, last week, last month, or last year. I'm going to create a presentation variable called "date_range" where the user can choose one of those 4 options.
    Based on this, I've defined a column in answers with the following formula:
    cast
    case
    when 1 = 0 then "Query Time"."Date"
    when @{date_range}{'Day'} = 'Day' then Current_Date
    when @{date_range}{'Week'} = 'Week' then TIMESTAMPADD(SQL_TSI_DAY, -7, CURRENT_DATE)
    when @{date_range}{'Day'} = 'Month' then TIMESTAMPADD(SQL_TSI_DAY, -30, CURRENT_DATE)
    when @{date_range}{'Day'} = 'Year' then TIMESTAMPADD(SQL_TSI_DAY, -365, CURRENT_DATE)
    else TIMESTAMPADD(SQL_TSI_DAY, -10000, CURRENT_DATE)
    end as DATE
    Based on the 4 presentation variable, this should give the proper "start date" of when to pull data.
    Now I've added the actual date column from the date dimension. But I need to put a filter on the date dimension date column that says it's greater than or equal to the calculated column above. How do I do that?
    Thanks,
    Scott

    I always expect what you're expecting, but you can't filter a column on another column. The solution is just to write one formula that returns a literal, so it will be
    case when (your date column) >= (your long formula) then 'Y' else 'N' end
    Then filter that column on 'Y'.
    Regards,
    Robert

  • BCS: Pass a filter based on current SPSite to ReadList method from External Data Picker on list item form

    Hi,
    I am using a BCS model to get external data. I have set this up with filters and it works fine. What I would like is to assign a filter value based on the current SharePoint site. This is because I have multiple SharePoint sites that use the same BCS model,
    but the user only needs to see certain records per each site. I have found ways to do this by adding and connecting web parts to a custom page. However, my particular need is to do this for the external item picker that pop up on the list item new and edit
    form.
    I hope my question is clear and look forward to your answers. Please not that this question is specifically related to the external data picker on the new and edit form.
    Regards,
    Andreas

    Hi Andreas,
    Thanks for posting your issue, Kindly find the CAML query that you can use to pass the filter value based on your SPSite 
    <View>
    <Method Name='ReadList'>
    <Filter Name='ABCName' Value='{0}'/>
    </Method>
    <Query>
    <Where>
    <Contains>
    <FieldRef Name='Name'/>
    <Value Type='Text'>{0}</Value>
    </Contains>
    </Where>
    </Query>
    <ViewFields>
    <FieldRef Name='Name'/>
    <FieldRef Name='Id'/>
    <FieldRef Name='BdcIdentity'/>
    </ViewFields>
    </View>
    Be sure to replace the filter Name attribute value with your own FilterDescriptor name as defined in BCS model and Value attribute with your own value.
    I hope this is helpful to you, mark it as Helpful.
    If this works, Please mark it as Answered.
    Regards,
    Dharmendra Singh (MCPD-EA | MCTS)
    Blog : http://sharepoint-community.net/profile/DharmendraSingh

  • Report for current day and current month

    Hi gurus,
    i 've a report, where i 've to display the values for qty and cost of the material for the current day and current month
    HOw can i do this in BEx Query designer..If any document plz share
    thanks
    rakesh

    hi Kolli
    here i want to filter the data on system date,
    i wnt the report to pick the date dynamically based on the system date.
    but i think restricting on calmonth and calday is not going to solve my scenario..
    rakesh

  • By Pass Cache if the date in the prompt is Current Day

    Hi,
    We have implemeted Cache solution for few dashboards as performance improvement.
    We have a report with date prompt. By default we show previous day data. User can generate report for any date by giving the date in the date prompt.
    To improve performance, we get the previous day data into the BI cache. We got lot of improvement with this for default dashboards(previous date is default).
    If user changes the date to current date and tries to generate, it gets the data from EBS and stores in the BI cache for the first time. If any user tries to generate after this, then it will get the current day data from Cache not from EBS. This is incorrect. We need to bypass cache if the date prompt is having current day.
    We tried the following.
    1) We have enabled cache in RPD at the physical layer.
    2) This will cache the results in to BI even for current day. We tried to purge the current day query using "SAPurgeCacheByQuery" but after executing it says purged successfully, but in BI RPD, if we check the cache, the query still exists and if we generate report for current day, it gets the data from cache not from EBS.
    Any ideas would be helpful in this area.

    Hello,
    Use an alias on the table where you have enabled cache in repository, and enable the "Override the source table caching properties" make this not cacheable so that you are disabling cache for this new alias table.
    Once you have done this also make sure you disable cache at the Presentation for on that single report by going to Answers, go to Advanced Reporting tab when building report, set Prefix value to following:SET VARIABLE DISABLE_CACHE_HIT=1, DISABLE_CACHE_SEED=1, LOGLEVEL=7;
    Now this will make sure you are not caching your results at OBIEE , the query will directly hit your EBS tables.
    Hope this helps. Pls mark if it does!
    Thanks,
    SVS.

  • Search Results based on other Search Results

    Scenario -
    I have a BDC content type which has a custom page for end users to view the data in the content type.  This page has a search result we part that displays the details of the content type.  There are other search result web parts that show related
    documents to the content type. 
    We are able to use the query string to pass in properties of the content type that will filter the search results to documents based on the passed value.  Example: Employee content type has custom page that lists the details about that employee, and
    when passing the department in the url to the page, a list of department specific documents can be displayed.
    There are several attributes of the "Employee" content type that we would like to filter for specific documents with.  How can I access these attributes with out passing them through the query string in the url? 
    I would rather not have to pass all these elements in the url Employee.aspx?employeeid={0}&department={1}&state={2}&employeetype={3} ect...  I would be better to just pass the employee id, and the page be able to get all the information
    it needs for the Search Results/Content Search web parts.
    Any thoughts would be helpful.  We are currently looking at the Product Catalog items, but this doesn't seem to fix our issue where we need to filter the results based on attributes of the current contextual content type.
    Thank You
    Shane

    I have been doing some more research, and I just cannot seem to find a viable option.  Can I use the Page.<FieldName>, or ListItem.<property>?  I am not sure, and no body seems to be doing anything like this?  Can it be done with
    javascript on the client, without having to rebuild the Display Template functionality for the results?
    So many questions and no one seems to have an answer?
    Shane

  • Auto Refresh OBI Page for Current Day Only

    Hello Guru's
    I have a obiee page which needs to get refreshed every 30 seconds . I could able to do that using <META HTTP-EQUIV = "REFRESH" CONTENT = "30"> . But the triggy part is , auto refresh needs to be applied only for current day and not for any date range selected by user .
    Details :
    Prompts are defaulted to current date and time on the page, but user can also select date ranges as well . So the setting for auto refresh needs to apply only on current date (default prompt values) and not if the the user select data range .
    let me know if any of you guys have come across such .

    Check the below link and tweak it if needed.
    http://www.cool-bi.com/Customize/AutoRefresh.php
    Appreciate if you mark as correct :)
    Let me know for issues
    Edited by: Srini VEERAVALLI on Jan 4, 2013 10:46 AM

Maybe you are looking for

  • Adobe Flash Player 10.1 is not working

    Hallo, My problem is that everything that uses flash player, does not work at the moment and says that I need the latest version. (I cannot see a video on you tube for example.) I downloaded AFP 10.1 several times (install-uninstall-reboot several ti

  • How do I add a star to an email in my inbox

    How do I add a star to an email in my inbox

  • Installing a new tv

    I have recently bought a new Cello tv which I have installed. Unfortunately Cello do not have a code which I can enter on my BT remote to allow me to control the tv and BT vision. At present my BT remote can do everything I need with the exception of

  • Poor quality image with doing videos with photos/images HELP!

    Hello, I bought Adobe Premiere Element to make videos with pictures. When I do the video, the quality of my photos is good. When I save the video on my computer or I download it on youtube (example) the quality of my photos is extremely poor. Why? Do

  • Adobe Presenter vs. Articulate Presenter

    Hello! I previously used Articulate Presenter to develop content. However, due to some major software bugs I was having with Articulate, I switched to using Adobe Captive (and am very happy). Now I just came across Adobe Presenter and it seems exactl