Year-to-date behaviour when filtered on day-of-week

In our data warehouse design, the time dimension has - amongst others - following columns:
- day id [ = YYYYMMDD format ]
- day of week [ = name of day of week: Monday, Tuesday, ... ]
- week id [ = IYYYIW format ]
- year id [ = IYYY ]
Our fact table, which contains turnover information, has - amongst others - following columns:
- net amount [ = physical table column containing numeric value ]
- net amount ytd [ = logical column: ToDate(net amount, year id) ]
An analysis was built based upon this dimension and fact table, which is filtered with prompted values. Prompts are foreseen for week and day of week.
When filtering on week the behaviour is very much as expected; the "net amount" is assigned the total net amount of the chosen week, and the "net amount ytd" is assigned the total net amount for the year up to the chosen week.
When adding day-of-week to the filter condition however the result is not as expted; the "net amount" is assigned the total net amount for the chosen day in the chosen week, as hoped for, but the "net amount yet" still is assigned the total net amount for the year up to the chosen day of the chosen week, while I would expect it to be the total net amount of all chosen day-of-weeks (for example, all Tuesdays) of the year up to the Tuesday in the chosen week.
Having a look at the query behind the analysis, the (simplified) code for the YTD information looks like this:
SELECT SUM("net amount")
FROM   "fact",
       "time dimension" td1,
       "time dimension" td2
WHERE  td1."week id" = (prompt week value)
AND    td1."day of week" = (prompt day of week value)
AND    td1."year id" = td2."year id"
AND    td2."week id" <= td1."week id"
AND    fact."day id" = td2."day id"As I said, it is simplified, OBIEE in fact uses a bunch of sub queries and ranking sequences to pull this off, but this is in a nutshell the result. And as seen in the query, the second occurence of the time dimension is not filtered on day of week, which results in the YTD sum for all days, not just Tuesdays, or whatever day was selected.
It makes sense in a way, after all, filtering on week does not limit the second occurence of the time dimension to filter on week either. But is there any way to force OBIEE to make an exception and come up with following query (or something similar that does the trick):
SELECT SUM("net amount")
FROM   "fact",
       "time dimension" td1,
       "time dimension" td2
WHERE  td1."week id" = (prompt week value)
AND    td1."day of week" = (prompt day of week value)
AND    td1."year id" = td2."year id"
AND    td2."week id" <= td1."week id"
AND    td2."day of week" = (prompt day of week value)
AND    fact."day id" = td2."day id"Thanks in advance for your input.
Edited by: Kurt Geens on Mar 12, 2013 2:52 PM

805771 wrote:
Yes, but I don't want to create 7 different jobs, one for each day of the week. Isn't there a way to do this in PL/SQL? It took me 10 seconds in SQL Server's TSQL.Yes you keep showing some TSQL syntax that obviously does not do what you are asking for.
>
SELECT
CASE DATEPART(dw,GETDATE())
WHEN 4 THEN (SELECT COUNT(*) FROM ADR_VLDN )
ENDSo the equivalent in Oracle would be
SQL> var n number
SQL> begin
  2    if to_char(sysdate,'D') = '4' then
  3      select count(*) into :n from dual;
  4    end if;
  5  end;
  6  /
PL/SQL procedure successfully completed.
SQL> print n
         N
         1Also takes 10 seconds.

Similar Messages

  • Date Breakup with Monday First Day of Week for Fortnight

    Post Author: Guggu
    CA Forum: Formula
    Hi,
    I am using a cross tab and I am trying to break up the data by the reporting periods we use, which is 2 weeks and is from Monday of Week 1 to Sunday of week 2.
    I use the GROUP OPTIONS in Crystal report XI and tell it ot show FOR EACH TWO WEEKS but shows the dates with SUNDAY the first day of the week.
    I had some BASIC SYNTAX which used to work in v8.5 and some times works for XI but not this time, so i would like to know if there is a better way to work this out as all my reports need to be done this way.
    The BASIC SYNTAX i had was:
    Dim ew1 As Date Dim rosterdate As Date Dim i As Number Dim fortnight As Date  rosterdate = cdate({?StartDate}) + 70 ew1 = cdate({?StartDate}) ew1 = ew1 + 13 For i = 1 To 10
        If rosterdate <= ew1 Then        fortnight = ew1        formula = fortnight        Exit For     End If
        ew1 = ew1 + 14Next i
    But this is not working anymore.
    Can someone please help.
    Kindest Regards,
    George

    I just realized that the .../CatalystScripts/Java_DatePicker.js was modified on April 1st, but not by me. Did you do that?
    The weekdays were sorted by Monday to Sunday, but the number of the days were not right. So today it showed Tuesday the 6th of April (of course it should be Monday).
    My client just contacted me, that they have a mess with the reservations, people did reservations with the wrong date
    I already changed it to the previous version. I think, I will implement a jQuery-datepicker, the BC datepicker is not flexibel enough.

  • How to create a Year to Date Query when only Monthly values are in the data

    Hi SDN community,
    Is it possible to create a query by dragging in the fiscal year period characteristic , and any other required characteristics in the rows,
    and then use functionality to have columns of data that add up the previous periods. 
    ex.  the month of sept, = Jul + aug + sep
    i basically want to see 12 columns of Actuals,
    and then a trend line, to add up those columns.
    If we load up the data with a YTD time variant out of the system and load, then this is fine, but can we do it with the query and how.
    Thank you.
    Simon

    Hi,
    ex. the month of sept, = Jul + aug + sep
    Of course it is possible in Query,
    -->Create a formula on the key fig.
                   NoDim(<Key Fig Name>)
    -->in Property of that formula, in Calculation Tab
    -->Check the Cumulative Property
    -->Select Either Along Rows or Along Columns as per your requirement
    please give more details, so I can provide Full steps for that..
    Best regards
    Obaid

  • SharePoint Workflow Long Date does not output day of week!

    Hi all, 
    We have developed a workflow that sets a time delay and notifies users after three working days have elapsed. It detects a working day by checking whether the words "Saturday" or "Sunday" occur in the long date version of "Today".
    This workflow was running just fine but recently we found that emails were being sent out on the weekend and the cause for this was that the long date did not contain the day of week at all!. 
    I have been looking at this issue for a while and the only thing I have found is that when I change the site regional settings away from UK, the long date displays correctly again. In fact, it works for most locales, but as soon as I change the locale back
    to UK it stops working again. I have confirmed that this behaviour is consistent across more than one environment, and even on SharePoint Online!!
    Has anyone experienced this or have any solution? To me this seems like a bug and a call to MS but I thought I would post here to see if anyone had similar experiences. The only discussion I have ever found on this subject is linked below but I do not see
    a resolution to the problem. I don't think changing our locale is a solution! :-)
    https://social.msdn.microsoft.com/Forums/en-US/174e853f-69b6-46ab-a1a8-674daec898c0/workflow-lookup-on-datetime-field-format-set-to-long-date-but-missing-day-of-week?forum=sharepointcustomizationprevious
    Thanks,
    Tal

    My last reply that this did not fix the problem when I reactivated the workflow was deleted by someone from this forum post. 
    I still have this issue with the calculated field and will probably end up calling Microsoft Tech Support to have them help me figure out why this works in my WSS 3.0 version of our Sharepoint Help Desk app and not in the SFS 2010 version.  I have the
    exact same formula in the calculated field for both versions.  The SFS 2010 version always changes to "Sat" after any modification and there is no place in the workflows that get invoke when items are changed that this calculated field or any elements
    in the formula get touched.
    Alan-Seattle

  • ICal Date Headings Missing from Day and Week Views

    Good morning,
    A few days ago, the date headings disappeared from the Day and Week views in iCal. I can see the date heading in Month view, but when I switch back, the dates are missing. All of my events are there, and correct.
    I have resolved font duplications and restarted iCal, to no avail.
    Thanks for your help.
    W

    Still no date headings when my calendar is views in the Day and Week views. All of my appointments are there. The days of the month appear in Month view. But when I change to week or day, I don't know what day I'm looking at because there are no dates. Only "2010" appears in the upper left.
    Any ideas? I couldn't be the only one this has happened to!
    Thanks, Wendy

  • Regarding year to date Calculations

    Hello,
            I Have a requirement to calculate the Year to date. When i input the value 009/2008 the exit should calculate the value from 001/2008 - 009/2008. the values should cumulate.
    For eg: For the period: 002/2008 value is 10
                                     003/2008 value is 20.
        cumulative value should be 30.
    Thanx in advance

    Hi,
    there are content varables that you can use in a query for this purpose. They are deliverd for the InfoObjects 0CALMONTH (0CYTLM: 'Cumulated to last month' or 0CYTCM 'Cumulated to current month' for example) and 0FISCPER. They select the complete range from periode 01 to your actuel month and therfore give you the cumulated value.
    Hope that helps
    Regards
    Christoph Vortkamp

  • When ever  enter the date start date up to next year same date between the days divided into 8 parts

    when ever  enter the date start date up to next year same date between the days divided into 8 parts
    Q1.1 (YYYY) = 1st half of Quarter 1 for year YYYY
    Q1.2 (YYYY) = 2nd half of Quarter1 for year YYYY
    Q2.1 (YYYY) = 1st half of Quarter 2 for year YYYY
    Q2.2 (YYYY) = 2nd half of Quarter 2 for year YYYY
    Q3.1 (YYYY) = 1st half of Quarter 3 for year YYYY
    Q3.2 (YYYY) = 2nd half of QuarterQ3 for year YYYY
    Q4.1 (YYYY) = 1st half of Quarter 4 for year YYYY
    Q4.2 (YYYY) = 2nd half of Quarter 4 for year YYYY
    Here YYYY depicts the year.
    e.g. Q1.2 (2014) depicts the 2nd half of Quarter 1 for year 2014.
    The description of these values are explained below.
    The table below provides the description about each value:
    Quarter     Quarter Range      Start Date
    Q1.1      1 Jan - 15 Feb         1st  Jan
    Q1.2      16 Feb-31 Mar         16th Feb
    Q2.1      1 Apr- 15 May          1st Apr
    Q2.2      16 May-30 June       16th May
    Q3.1      1 Jul-15 Aug             1th Jul
    Q3.2      16 Aug -30 Sep       16th Aug
    Q4.1      1 Oct -15 Nov           1st Oct
    Q4.2      16 Nov – 31 Dec      16th Nov
    The dropdown values in time window needs to be updated as per date entered by the user in the Audit Plan start date and
    should display the next four Quarter (each divided in 2 half  i.e. Eight values ) along with the year  from the selected Audit plan start date.
    for eg. If the Plan start date is given as August 10 2013 then the Time window will display the following options:                      
    Q3.2 (2013)                
    Q 4.1 (2013)               
    Q 4.2 (2013)               
    Q 1.1 (2014)               
    Q1.2 (2014)                
    Q2.1 (2014)                
    Q 2.2 (2014)               
    Q 3.1 (2014)               
    You can refer to the Table above and look that 10 Aug 2013 falls under the Q3.1 so Time window will display the next next 8 half Quarters ( Total 4 Quarter) till Q 3.1 for the year 2014.

    Hello,
    WITH half_quarters AS(
        SELECT  ADD_MONTHS(TRUNC(DATE '2013-08-15','Q'), 3*(LEVEL - 1)) hq_start
               ,1 part
        FROM    dual
        CONNECT BY ROWNUM <= 5
        UNION ALL
        SELECT  ADD_MONTHS(TRUNC(DATE '2013-08-15','Q'), 3*(LEVEL - 1) + 1) + 15 hq_start
               ,2 part
        FROM    dual
        CONNECT BY ROWNUM <= 5
    ,ordered_half_quarters AS(
        SELECT  hq_start
               ,part
               ,ROW_NUMBER() OVER (ORDER BY hq_start) r
        FROM    half_quarters
        WHERE   hq_start > DATE '2013-08-15'
    SELECT  'Q '||TO_CHAR(hq_start,'Q')||'.'||part||' ('||TO_CHAR(hq_start,'YYYY')||')' q
    FROM    ordered_half_quarters
    WHERE   r <= 8
    ORDER BY r;
    Q       
    Q 3.2 (2013) 
    Q 4.1 (2013) 
    Q 4.2 (2013) 
    Q 1.1 (2014) 
    Q 1.2 (2014) 
    Q 2.1 (2014) 
    Q 2.2 (2014) 
    Q 3.1 (2014) 
    half_quarters generates the start dates of every half of a quarter, starting with the begin of the first quarter that contains the sample date.
    The next step is to order the dates and to select only those after the sample date.
    The last part formats the output and orders the data.
    Regards
    Marcus

  • I've got a 15" white macbook which I bought about 2 years ago. It froze the other day and wouldn't respond so I shut it down. When I turn it on now it comes up with a flashing file with a question mark on it. How can I fix it?

    I've got a 15" white macbook which I bought about 2 years ago. It froze the other day and wouldn't respond so I shut it down. When I turn it on now it comes up with a flashing file with a question mark on it. How can I fix it? I've tried a few things i've seen online but the futhest ive got is to put the start up disk in when you makes it go to a grey screen with an apple logo and the spinning wheel which then stops spinning. Can anybody help?

    That folder with the question mark icon means that the MacBook can't find the boot directory. That can either mean it can't find the hard drive or the Operating System data on the hard drive is somehow corrupted.
    Put your install DVD into the optical drive and reboot. As soon as you hear the boot chime, hold down the "c" key on your keyboard (or the Option key until the Install Disk shows up). That will force your MacBook to boot from the install DVD in the optical drive.
    When it does start up, you'll see a panel asking you to choose your language. Just press the Return key on your keyboard once.It will then present you with an Installation window. Completely ignore this window and click on Utilities in the top menu and scroll down to Disk Utility and click it. When it comes up is your Hard Drive in the list on the left?
    If it is then click on the Mac OS partition of your hard drive in the left handlist. Then select the First Aid Tab and run Repair Disk. The Repair Disk button won't be available until you've clicked on the Mac OS partition on your hard drive. If that repairs any problems run it again until the green OK appears and then run Repair Permissions.
    If your hard drive isn’t recognized in Disk Utility then your hard drive is probably dead.

  • Unable to retrieve records when filtering by date

    I am having difficulties getting this query to run when filtering by date. The code works fine if I remove the Date filter, and I have tested the query using SQL Developer and it works fine there so I am not sure what I am doing wrong:
    Public Sub CheckForNewCampaign()
    'Checks if the campaign received is new or not
    'if new update the database with the new campaign information
    'else check with the database for the existing campaign status
    Dim strcmdQuery As String = “SELECT FROM RSP_ORDER_QUEUE WHERE REQUEST_CODE = 'N' AND INSERT_DATE > TO_DATE('2010-01-19','YYYY-MM-DD') “*
    Dim strConn As String = System.Configuration.ConfigurationManager.AppSettings("SQLConnectionString")
    Dim objOraConn As OracleConnection = New OracleConnection(strConn)
    Dim objOraCmd As OracleCommand = New OracleCommand(strcmdQuery, objOraConn)
    Try
    objOraCmd.Connection.Open()
    objOraCmd.CommandText = strcmdQuery
    objOraCmd.CommandType = CommandType.Text
    Dim objReader As OracleDataReader = objOraCmd.ExecuteReader()
    If objReader.HasRows Then
    LoggingQueueIn("CheckForNewCampaign: " & strcmdQuery & " records found")
    bIsNewCampaign = True
    'Set the Attempt for new call
    oQueueKeyCols.memAttemps = 1
    oQueueKeyCols.memRetries = 1
    oQueueKeyCols.memSequenceNumber = 1
    mCollectNewCampaignElements(objReader)
    Else
    LoggingQueueIn("CheckForNewCampaign: " & strcmdQuery & " no records found")
    bIsNewCampaign = False
    End If
    Catch ex As Exception
    LoggingQueueIn("CheckForNewCampaign: " & ex.Message.ToString)
    Finally
    objOraCmd.Dispose()
    objOraConn.Close()
    End Try
    End Sub
    Any help would be greatly appreciated. I am spinning my wheels here and could use some assistance.

    I can't think of any reason that you'd get different results with a hard coded literal query. I assume that rdr.HasRows=false?
    My only guess would be that maybe you're connected to a different database, or as a different user, you inserted the data via sql develper but have not yet committed it, or something along those lines.
    Were you to log a SR with Oracle Support, we'd probably ask for a level 16 sqlnet trace of they query executed via the .net app and sql developer so we can compare them to make sure all else is indeed equal.
    Hope it helps,
    Greg

  • I own an account on iTunes two years ago, almost always used it two days ago, the account stops working do not know why when I open the account Italpin reset your password and resend the email to and I did not receive any Klnh aftermarket tried a lot and

    hi
    I own an account on iTunes two years ago, almost always used it two days ago, the account stops working do not know why when I open the account Italpin reset your password and resend the email to and I did not receive any Klnh aftermarket tried a lot and Amaisalna something please help

    CHANGING APPLE ID/EDIT ACCOUNT INFORMATION/CHANGE ITUNES COUNTRY
    Tap Settings / iTunes & App Stores, then tap the Apple ID signed in. Sign out of the current Apple ID account and then sign in with another account or create a new Apple ID http://support.apple.com/kb/HT2731?viewlocale=en_US
    To edit account information tap Settings / iTunes & App Stores / Apple ID: / View Apple ID
    To change your iTunes Store country, sign in to the account for the iTunes Store region you would like to use, tap Settings/iTunes & App Store/Apple ID/View Apple ID/Country/Region
    Read this article for information http://support.apple.com/kb/HT1311

  • I need FM calc. days/months/years between 2 dates but computes the work day

    I need FM calc. days/months/years between 2 dates but computes the work day.
    someone knows ?

    Hi,
    The FM is 'FIMA_DAYS_AND_MONTHS_AND_YEARS'
    Check the following example:
    DATA: EDAYS   LIKE VTBBEWE-ATAGE,
          EMONTHS LIKE VTBBEWE-ATAGE,
          EYEARS  LIKE VTBBEWE-ATAGE.
    PARAMETERS: FROMDATE LIKE VTBBEWE-DBERVON,
                TODATE   LIKE VTBBEWE-DBERBIS DEFAULT SY-DATUM.
    call function 'FIMA_DAYS_AND_MONTHS_AND_YEARS'
      exporting
        i_date_from          = FROMDATE
        i_date_to            = TODATE
      I_FLG_SEPARATE       = ' '
      IMPORTING
        E_DAYS               = EDAYS
        E_MONTHS             = EMONTHS
        E_YEARS              = EYEARS.
    WRITE:/ 'Difference in Days   ', EDAYS.
    WRITE:/ 'Difference in Months ', EMONTHS.
    WRITE:/ 'Difference in Years  ', EYEARS.
    INITIALIZATION.
    FROMDATE = SY-DATUM - 60.
    Regards,
    Bhaskar

  • Error when Read only permission set when filtering data before loading with Excel 2013 Addin

    Good afternoon :)
    I have an MDS issue that is making me lose my mind.
    I have some permission set to an Entity. It is a read only permission in the entity but I tried to put inside every field and same thing happen.
    Every time an Entity has any kind of read only permission assigned to it or its fields, Excel Addin show an error when we try to load it. When Entity has more rows than the maximum rows in the Settings pane, it will show you an option to filter data. When
    you try to use this filter, Excel show an error message but you can press OK and everything works fine.
    There is the message:
    The thing user, my user do not want it :( And I don't know how to get rid of it.
    Do anyone have an ideia on how to fix it ?
    In the debug set of the addin, there is this message:
    2014-10-22T11:38:42.152        8440 EXCEL.EXE            EXCEL.EXE                               
    Generic          EventType: Error, Message: Unobserved exception in TaskScheduler. Exception:'System.AggregateException: One or more errors occurred. ---> System.NullReferenceException: Object reference not set
    to an instance of an object.
       at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
       at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
       at System.Windows.Forms.WindowsFormsSynchronizationContext.Send(SendOrPostCallback d, Object state)
       at Microsoft.MasterDataServices.ExcelAddInCore.ExcelHelpers.ExecuteOnUIThread(SendOrPostCallback callback)
       at Microsoft.MasterDataServices.ExcelAddInCore.DataView.FinalizeUIOperation(Boolean mdsOperation)
       at Microsoft.MasterDataServices.ExcelAddInCore.DataView.<>c__DisplayClass53.<LoadData>b__51(IAsyncResult ar)
       at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
       --- End of inner exception stack trace ---
    ---> (Inner Exception #0) System.NullReferenceException: Object reference not set to an instance of an object.
       at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
       at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
       at System.Windows.Forms.WindowsFormsSynchronizationContext.Send(SendOrPostCallback d, Object state)
       at Microsoft.MasterDataServices.ExcelAddInCore.ExcelHelpers.ExecuteOnUIThread(SendOrPostCallback callback)
       at Microsoft.MasterDataServices.ExcelAddInCore.DataView.FinalizeUIOperation(Boolean mdsOperation)
       at Microsoft.MasterDataServices.ExcelAddInCore.DataView.<>c__DisplayClass53.<LoadData>b__51(IAsyncResult ar)
       at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)<---

    Rafael,
    Is this still an issue?
    Thanks!
    Ed Price, Azure & Power BI Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

  • Year to Date reports using Prompts

    Hi.
    I'm trying to build a report that will show results of sales compared to Annual targets. All those fields are fields directly at the opportunity level (amount and targets). I also need to put a prompt to select dates from and to, for the Opportunity Close date. I've used Variables for this, and am comparing throuhg two filters "Opportunity.Close Date greater than pvCloseDateFrom" and "Opportunity.Close Date lower than pvCloseDateTo". I'm also presenting the % Achievment, which is the % of Total Sales compared to the Target field.
    So far the report is simple
    User - Total Amount of Sales - Target FIeld - % Realized.
    The difficulty I'm facing concern the next set of columns in the report : I also need to present the Year to Date Target that is represented by the number of days between the two dates prompted (for instance if I prompt 01/01/2010 and 31/03/2010 needs to show 25% of the total target) along with the % of SAles compared to this new target calculated field.
    I'm having issues with the TIMESTAMPDIFF function through the Presentation Variables as it either tells that the type is not correct even if I'm trying to use the CAST function or it discard part of the string when I'm trying to rebuilt the date as a timestamp : in my configuration date are presented D/M/YYYY where my timestamp function expects DDDD-MM-DD HH-MI-SS.
    Is there anyone who could have an example of such calculations in a report based on dates and duration ?
    Thanks in advance for your help !!
    Olivier

    Dear Adam,
    For Year to Date , We have created a Customer Exit , For working , Create a Variable for 0calday and populate that with from and to value ...to value would be Sy-datum and From value is year starting date. Hope it helps..
    Thanks,
    Krish

  • How to create a year to date filter?

    All,
    I would like to create a date range filter on the opportunity close date column so that the report retrieves records with a close date between the beginning of the current calendar year and the current date.
    I am having trouble using date/time functions to establish the first day of the current calendar year.
    Any help is appreciated.
    Thanks,
    Dan

    I'm so sorry... I missed this thread and have not replied.
    You could place a filter on the Fiscal Year column in the Date Dimension folder of your subject area to get Fiscal Year to Date (most of the time):
    Date."Fiscal Year" = VALUEOF(NQ_SESSION.CURRENT_YEAR)
    This would likely not work, however, if the current year is 2008 and you are already in Fiscal Year 2009.
    To allow for this, your filters become much more complex. I will use Opportunity Close Date in my example.
    First, we want to ensure that no data in the report is more than one year old...
    TIMESTAMPDIFF(SQL_TSI_DAY, Opportunity."Close Date", CURRENT_DATE) < 366
    With the next filter, we want to ensure that the data in the report is not from months outside of the fiscal year. You can do this with a CASE statement in a hidden column.
    CASE WHEN MONTH(Opportunity."Close Date") > 06 AND YEAR(Opportunity."Close Date") < VALUEOF(NQ_SESSION.CURRENT_YEAR) THEN 'Current Fiscal Year'
    WHEN MONTH(Opportunity."Close Date") < 06 AND YEAR(Opportunity."Close Date") = VALUEOF(NQ_SESSION.CURRENT_YEAR) THEN 'Current Fiscal Year'
    ELSE 'Not Current Fiscal Year' END
    Your Filter will be:
    CASE WHEN MONTH(Opportunity."Close Date") > 06 AND YEAR(Opportunity."Close Date") < VALUEOF(NQ_SESSION.CURRENT_YEAR) THEN 'Current Fiscal Year'
    WHEN MONTH(Opportunity."Close Date") < 06 AND YEAR(Opportunity."Close Date") = VALUEOF(NQ_SESSION.CURRENT_YEAR) THEN 'Current Fiscal Year'
    ELSE 'Not Current Fiscal Year' END = 'Current Fiscal Year'
    Assuming my code is correct, July 2007 - June 2008 evaluates as current fiscal year and July 2008+ evaluates as not current fiscal year.
    There are bound to be other ways to accomplish this, but this is one method that should work.
    Regards,
    Mike L

  • How can you manage data usage when cellular data is off, but you are using WiFi where your WiFi provider charges for data use?

    I spend quite a few months each year in Canada where I use a Telus Cellular Hub device which is also my WiFi Router.  My iPhone 5 has Cellular Data set to "Off" which insures I won't be charged via my Verizon Wireless Service Provider for charges while in Canada.  Trouble is Telus, Rogers and all the Canadian Internet Providers charge for all Data going through their Systems.  Again, My Cellular Data on the iPhone 5 is turned off, but I use WiFi for such things as checking the Weather, or FaceBook, or searching the Web. 
    I believe that things may be happening in the background from various Apps that use quite a lot of Data.  It could be that iCloud is part of the issue with things being backed up automatically.  It also could be that Apps like AP or other News Apps are sending large amounts of Data in the photos associated with their New Stories, etc.  I typically turn off the App Store "Updates" such that they don't automatically load.  The FaceBook works now posted videos play when you are just scrolling through the News Feed. 
    I have been trying to fine an article somewhere which focuses on this specific problem but unfortunately many if not most articles are about folks worried about using Cellular Data while in a WiFi environment when their Cellular Data is turned on. 
    Does anyone know of a fairly comprehensive article about what settings on which Apps might reduce the Data Usage when Cellular Data is turned "Off" but you are going through a Service Provider who charges for all Data Accessed even when you are using WiFi?

    Thanks for your comments, it is clear you understand my plight.  The trouble is fully understanding what Apps and App Features are transferring data in the background any time you happen to turn WiFi to on (even if you have had it off most of the day or night).  Obviously things like Location Services can constantly be sending and receiving data from my iPhone without any action on my part.  Also if you have things like photo backup on the iCloud then each time you take a photo you are sending a copy out.  All App Updates if set to Automatic also can add up to quite a bit of Data.  Reading the News on AP or scrolling through FB News Feed is actually adding up to a lot of Data.  There could be other culprits that I am not even thinking of.  I don't want to turn Apps like Find My Phone off or turn iCloud off due to loosing the value of such a program entirely.  Again thanks for your quick response. 

Maybe you are looking for