Identifying same values that existed previously (last month)?

I am creating an OBIEE usage report and need help with a complex Column Formula.
I want to identify returning users, that logged in this month AND last month.
This logic might be something like:
CASE WHEN User ID exists in Current Month = User ID that existed in the Previous Month then 1 else 0
I have Month and User ID columns to work with in OBIEE Answers (no RPD access).
Any idea of how to right a formuala that will compare non-measure values from last month to this month?
Thanks!

Roman,
You can push down your current month and last month logic into Analytical view.
In Time Attribute view, create two claculated measure for calender month. You can build this using "NOW" function, left functions. Once you have current month create last month leveraging current month and casting (current month -1)
Once you have these two calculated attribute ready in your Time attribute view. Bring it to Analytical view and using "if then" function you can calculate measures for Current Month and Last Month.
This will improve performance as it avoids jumps between various engine.
Thanks

Similar Messages

  • About a year ago I purchased the student addition of the Adobe Creative suite 6 Design Standard and just recently purchased an additional computer for my home. Can I use the same disc that I previously purchased to download the program?

    About a year ago I purchased the student addition of the Adobe Creative suite 6 Design Standard and just recently purchased an additional computer for my home. Can I use the same disc that I previously purchased to download the program?

    Yes, as long as the machine meets the system requirements for the software you can install and activate it.  Your license allows you to have the software installed and activated on two machines.

  • When i import a movie file into iMovie,it somehow reverts to the shortened file of the same name that i previously had used

    I'm trying to import a movie file into imovie that I know is 3hr16mins long but when it's finished importing,all I have in the programme is the heavily edited 51mins that i used in a previous project (using the same file),5 years ago. How can I stop iMovie from reverting back or could the much longer file be there and I have incorrect settings so I can't see it all?

    Are these files MPEG compressed files? iMovie can not deal with the multiplexed audio of those files. For suggestions on how to get them right start here...
    http://www.danslagle.com/mac/iMovie/tips_tricks/6030.shtml
    And if your files are not MPEGs, some of the suggestions on that page may still do what you need done.
    Patrick

  • Forgotton iPod Touch Passcode - I Don't Have The Same PC That Had My Last Sync - I Don't Want To Lose ANY Data

    Hi All!
    I have an iPod Touch and I set a passcode yesterday. I wento unlock it today and it seams I have forgotten my 4 Digit Pascode. I don't know what I should do
    I don't have the PC which I last synced my iPod to. I changed My PC a month ago to a upgraded version, I diddnt transfer any data to that pc. I have iTunes installd on that pc but I havnt connected my iPod to it at all. I tried to connect it to my new pc for the first time so I could make a backup of everything, but itunes sid I had to unlock my ipod to use it on itunes. I don't know it so icant make a backup.
    My ipod has very special things on like wedding pics/vids and other things which I dont have of.
    I am fully aware how I have to restore it (dfu mode) but I have no data of it
    Is it possible to use a third party application (windows) to make a backup and itunes to restore?
    Or can I use a third party application to unlock my ipod?
    Or will I have to say goodbye to my only copy of things?
    I don't want to risk any more attempts. I have done a number of tries and I'm upto "ipod is disabled for 5 mins" I can still do more tries but I don't want the minutes to go higher
    Thanks for you help!
    I appriciate any replies given...

    Hello,
    I was meaning to make a icloud backup, but diddnt get round to it!
    The only data iv got backed up is the record of my purchased apps, which is only a small amount of help,
    I forgot to mention: my ipod is in airplane mode

  • Validation to compare a value that exist.

    Hi Everybody,
    I am using JDeveloper11.1.1.4. I want to implement a validation based on the comparison.
    I have an editable table in a .jspx file. This table is created by making use of an Entity based view object. And, this view object has some conditions in its where clause.
    Now since my page has editable table, I want a validation to happen in such a way that the user does not duplicate a value while editing/creating a new record in the form. Please note we cannot set Unique constraint because the table can have duplicate values. And hence, only the users context should not have a duplicate values. In short, the column in the table in which the user currently in, should not have the duplicate values.
    I tried with comparison operator with query result but came to know that we cannot pass parameters to the query.
    Can somebody suggest me what the best way of doing this?
    Regards,
    V. Praveen

    Assuming you are using ADF BC (which you appear to be), go to the "business rules" section of your EO, click the Entity Validators folder (not any of the attributes), and click the "plus" button to add a new validator. You can then choose "compare" as the rule type "equals" as the operator and "Entity Attribute" as the "compare with" item. Pick the two attributes to compare (one in the "attribute" list and the other in the "select entity attribute" list). Provide your error message on the "failure" tab (that way it can be translated, and not hard-coded in the exception, should you so desire) and voila, you are done.

  • HT4847 iCloud storage plan that I bought last month is gone when my Apple ID has been changed

    I just bought iCloud storage 20GB by using my the old Apple ID and then I just swapt my Apple ID from the old to the new one so my iCloud storage is gone.

    Welcome to the Apple Community.
    When your account becomes disabled, Apple provides the following recommendation:
    "This message means that someone tried and failed to sign in to your account multiple times. The Apple ID system disables the account to prevent unauthorized people from gaining access to your information. You need to reset your password, following the instructions at the Apple ID website".
    Visit iForgot.com and follow the instructions there.
    In order to change your Apple ID or password for your iCloud account on your iOS device, you need to delete the account from your iOS device first, then add it back using your updated details. (Settings > iCloud, scroll down and hit "Delete Account")
    Providing you are simply updating your existing details and not changing to another account, when you delete your account, all the data that is synced with iCloud will also be deleted from the device (but not from iCloud), but will be synced back to your device when you login again.
    In order to change your Apple ID or password for your iCloud account on your computer, you need to sign out of the account from your computer first, then sign back in using your updated details. (System Preferences > iCloud, click the sign out button)
    In order to change your Apple ID or password for your iTunes account on your iOS device, you need to sign out from your iOS device first, then sign back in using your updated details. (Settings > store, scroll down and tap your ID)
    If that doesn't help you might try contacting Apple through iTunes Store Support

  • HT4623 i am trying to download ios7 but some how its showing error. i m trying to download on my iPad mini that i bought last month

    has anyone had the same problem

    The servers are overloaded. There are a hundred million people all trying to download iOS 7 at one time. Try again later

  • Last Month value for the keyfigure in Report

    HI ALL,
    how do we get keyfigure value for the last month in the report.
    for ex:  for  amount keyfigure should come for the last month  rest of the key figures should come for the current month values.
    SBU |    AMOUNT (LAST MONTH VALUE) |      QTY(CURRENT MONTH) |     NETPROFIT(CURRENT MONTH)
    The above shown is ex as i required in same manner. Even i restricted with calmonth offset value -1 in keyfigure but it is not working. please help me to get solution .
    Thanks
    Pinky Reddy

    Hi Pinky,
    It is not advisable to use offset to get the previous month value.This is not effective in the case when your current month is Jan & u have to get the previous year's dec month value.It is always better to opt for Exits
    Do use the code mentioned below.
    Note:- ZCUSMFIS3 - Variable in the selection screen for entering current month
               'ZPREVPER - Variable with which the amount key figure has to be resticted.
      WHEN 'ZPREVPER'.
        IF I_STEP = 2. "after the popup
          LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
                                  WHERE VNAM = 'ZCUSMFIS3'.              
            V_PERIOD = LOC_VAR_RANGE-LOW+4(3).
            V_FYEAR = LOC_VAR_RANGE-LOW+0(4).
            V_FVARIANT = 'B1'.
            V_FISCPERYEAR = LOC_VAR_RANGE-LOW.
            IF V_PERIOD = '001'.
              V_PERIOD = '012'.
              V_FYEAR = V_FYEAR - 1.
              CONCATENATE V_FYEAR V_PERIOD INTO V_FISCPERYEAR.
            ELSE.
              V_FISCPERYEAR = V_FISCPERYEAR - 1.
              LOC_VAR_RANGE-LOW = V_FISCPERYEAR.
            ENDIF.
            CLEAR L_S_RANGE.
            L_S_RANGE-LOW = LOC_VAR_RANGE-LOW. "YYYYMMDD - DD will indicate the no of days
            L_S_RANGE-SIGN = 'I'.
            L_S_RANGE-OPT = 'EQ'.
            APPEND L_S_RANGE TO E_T_RANGE.
            EXIT.
          ENDLOOP.
        ENDIF.
    Hope this provides the solution for your requirement.
    Regards,
    Saswati.

  • Need To Create Box That Shows Previous Month Label And Amount Of Sales

    I am using CR2008
    I am creating a report for our salesmen and one of the fields in the report will be a text box that shows what the last month was. For instance, if the report is run this month, the report will plug July 2011 into the box because that was what last month was. Tied to this will be a salesman's total sales for last month that should show up in a box. I will place this box right next to the salesman's name on the report as the names will be static.
    I have several of these to do and if I can see the method I can re-create it for the others.
    How would I do this?

    Hi
    You can create a formula to get last month and this formula can be placed in a text box.
    dateadd('m',-1,currentdate)
    or
    Month(currentdate)-1&" ,"&Year(currentdate)
    This formula can be placed for all your salesmans
    Thanks,
    Sastry

  • Traffic light on the basis of last month

    Hi guys,
    I have a question about the traffic light in the model Visual Composer. I would like to have a traffic light besids a table or graphic that wil be shown the status ( Green, red, yellow!) on the basis of the last month. In the table or in a graphic wil be shown several data of several months. But the traffic light have to respond on the basis of last month. That means that, if the last month exception( in the query) is green, the traffic light also wil be green.
    Can anybody help me please?
    Another question.
    How can i get only two types of order as example in a pie chart? I have seen that in a pie chart you can only add one formula, not two.So!!
    Thanks,
    Regards,
    Esrat

    In the VC model create an Expression Box. Double click on this box to open up its Properties.
    In the control properties window there is tab "Styles", here give Green color to the column 'Style' and in the next column 'Condition' select 'Enter Formula...'
    Select the field and enter the condition.
    Like
    Style      Condition
    Style 1   @CITY == 'Frankfurt'
    Style2    @BANK_CTRY == 'DE'

  • For the last month or so my icloud won't back up, it keeps telling me that there is too much storage and I need to delete some data. But I have deleted between 3-400 photos and it is still saying the same, can anyone please help

    For the last month or so my icloud won't back up, it keeps telling me that there is too much storage and I need to delete some data. But I have deleted between 3-400 photos and it is still saying the same, can anyone please help

    If they were deleted from your camera roll that should have resulted in a corresponding decrease in the estimated size of your next backup.
    If it's still saying that you don't have enough storage to back up, read through this article: http://support.apple.com/kb/ht4847.  It provides some suggestions for reducing your iCloud storage, such as deleting unneeded email. 
    The other area to look at is your text messages.  These are included in the backup.  If you have lots of photos and videos attached to your messages, that can significantly increase the size of your backup.  If that's the case, deleting these may make a big difference.

  • I have a new Samsung phone and I live in CT. Last month they charged me $38 on my bill for the sales tax for the new phone which was $600. I'm paying for the phone itself over 20 installments of $30 each.  Now again I'm getting that same $38 charge. I can

    I have a new Samsung phone and I live in CT. Last month they charged me $38 on my bill for the sales tax for the new phone which was $600. I'm paying for the phone itself over 20 installments of $30 each.  Now again I'm getting that same $38 charge. I can't  believe that the monthly CT tax is higher than the payment for the phone itself. Does this make sense. Last time I spoke with them on the phone it was for 1 1/4 hours for something simple. I don't want to call unless I need to. The salesman told me nothing about any of this. Thank you for any help you can offer.

    The bill from last month states:
    CT state sales tax**     $38.10
    ** In some states sales tax or surcharges are calculated on the full cost of the full retail price or VZW cost of the device you purchased and not on the discounted price you pay. The sales tax or surcharges charged on your device was based on $599.99 and appears on this first bill.
    The current bill says the same.
    Actually, now I'm realizing that last month's bill stated I was making the first payment toward the phone. Now this month also says it's the first payment toward the phone when it's really the second.

  • Want last month value of a Quarter instead of to-date value

    Hi All
    I have a report that has 2 columns : Quarter-year , Measure1. Quarter-Year can be drilled down to the month level. Now, what is happening is because I only have the Quarter-Year as the dimension column, I'm getting the cumulative (todate) value for the measure. Say I have Q1-2010 drills down to Jan - 10,000 .. Feb-20,000.. Mar-30,000... I want the report
    to show the value as of March (the last month of the quarter): Q1-2010     30,000.
    Instead I see the value as (10k+20k+30k = 60,000). Is there a way of achieving 30,000 value for Q1-2010 in Answers?
    Thanks
    Ananth
    Edited by: Ananth V on Feb 4, 2010 8:54 AM

    Excuse the re-edit, the instructions below will give you a level based measures. if you used function QUARTER_OF_YEAR(expr) you should be able to use a case statement below to only pull Quarters 3, 6, 9 and 12 (ie last quarters) in your measure definition, then use the level based mechanism if required.
    Create another measure (duplicate your existing) and set the level of this measure to 'Quarter' by editing content tab on that measure or dragging it up to the Quarter level in your date hierarchy.
    This will return the Quarter total , regardless of group by- you may need to set other levels in accordance with other dimensions used on the report.
    Hope this helps,
    Rgrds
    Alastair
    Edited by: Alastair_PeakIndicators on Apr 26, 2010 4:12 PM
    Edited by: Alastair_PeakIndicators on Apr 26, 2010 4:13 PM

  • I am trying to sync my ipod but it keeps saying that a previous library exists and that I can only sync it to one library.  I want to sync it to the previous library but how do I get it to go there?

    I am trying to sync my ipod but it keeps saying that a previous library exists and that I can only sync to one library.  I want to sync it to the original library bc that is the one that has all songs.  It keeps giving me a library with just songs that I have bought on itunes.  I never created a new library so I am not sure why it is doing this.  How do I get it to sync to my original library?  I have already tried to restore a previous version of itunes but that did not help.

    It appears that something happened to yur computer/iTunes files.  It happens sometimes.  To recovery:
    - Import the old music into the current iTunes library
    - Make sure all the apps are also in the library
    - If in the USA and therplaces where iCloud has benn released you can redownload most iTunes puchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    - You can always redownload apps at no additional cost as long as you are singned into the same iTunes account the originally purchased them.
    - After all the suff in in the iTunes library, make a backup of the iPod by connecting the iPod to the computer and right clicking on the iPOd under Devices in iTunes. 
    - Restore the iPod from backup and restore as necessary.

  • My iPhone is about 6 months old now and I would say I don't use it that much. Yet for the last month or so the battery life has been going down and today after having charged it to 100% this morning, it was at 5% at 4 pm this aft. help!!

    my iPhone is about 6 months old now and I would say I don't use it that much. Yet for the last month or so the battery life has been going down and today after having charged it to 100% this morning, it was at 5% at 4 pm this aft. help!!

    Ok Fellas, let me give you a clue:  Games, particularly those that make heavy use of graphics and sound are notoriously power hungry.  In fact, when I was in the Navy many years ago, the folks working on the NTDS (Navy Tactical Data System)  computers used a version of Space Invaders to load test the AN/UYK-43 computers.
    I have also noticed that all of my laptops (I have a brand new Toshiba dual core, an older Toshiba single core, plus 2 Dell dual core machines) have significantly shorter battery life when I play Company of Heroes than when I am just reading e-mail or surfing the 'Net.  I have also noticed the same behavior when I play games on my 4th gen Touch and my iPhone 4.
    The fact is, iOS 5 did make some major improvements as well as adding some nice functionality like iMessage, wireless synch, and such, but the down side is that depending on how you use the device battery life can be shorter that what you may have experienced with pervious versions of iOS.  Its just the nature of the beast...
    We now return you to our regularly scheduled programming.....
    Oh John....  Oh Marsha.....

Maybe you are looking for