Current day and prior day prompts..BUt user should select only one prompt

there is table in my universe ..mi.dim_date...... the columns/objects are ....ID_date ,Date,Datetime,month,quarter,yeID_date column type is
Number,Date column type is Date.
here i want to apply a prompts on Date column, and that prompt,when user select specific date,the prompt should display yesterday data and todays data.
example..user selects 20140915......prompt should display 20140915 data and 20141409 data..
i have written a prompt like as follows ..... select mi.dim_date.date where mi.dim_date.date between @prompt('select date','D',mi.dim_date.date,mono,free,not_persistent,user:-1) AND @prompt('select date','D',mi.dim_date.date',mono,free,not_persistent,user:-1)-1
but i am getting errors like 7 th parametr is wrong...cannot convert data type,...invalid expression type...database staements could not be prepared.

Hi vbattu,
According to your description, you want to select some records in the report when export it to Excel. To achieve the goal, we can add a parameter to filter certain rows by following steps:
Add an additional Multi-value parameter to the report.
Set the Available Values and Default Values are all got from a field which can be used to select the records in the current dataset.
Add a Filter based on the new parameter in the tablix to filter the rows.
The parameter does not affect the data when we view the report. While we can use the parameter to select certain rows when we want to export the report to Excel.
If you have any more questions, please feel free to ask.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support

Similar Messages

  • Queries for current Qtr and prior quarter

    If I select one date in dashboard prompt in one column I want to display current quarter revenue and prior Qtr revenue.
    Could anyone give me the queries for the current Qtr and prior Qtr?
    So I will going to use presentation variable from the dashboard prompts

    obiee-date-expressions-reference
    Date Calculation OBIEE Expression Explanation :
    First Day of the Previous Year
    TIMESTAMPADD( SQL_TSI_YEAR , -1, TIMESTAMPADD( SQL_TSI_DAY , EXTRACT( DAY_OF_YEAR FROM CURRENT_DATE) * -(1) + 1, CURRENT_DATE)) From right to left the first TIMESTAMPADD returns the first day of the current year. The second TIMESTAMPADD removes a year from the returned date for the First Day of the Previous Year.
    First Day of the Current Year
    TIMESTAMPADD( SQL_TSI_DAY , EXTRACT( DAY_OF_YEAR FROM CURRENT_DATE) * -(1) + 1, CURRENT_DATE) This calculation returns the first day of the year by deducting one less than the total number of days in the year.
    First Day of the Next Year
    TIMESTAMPADD( SQL_TSI_YEAR , 1, TIMESTAMPADD( SQL_TSI_DAY , EXTRACT( DAY_OF_YEAR FROM CURRENT_DATE) * -(1) + 1, CURRENT_DATE)) From right to left the first TIMESTAMPADD returns the first day of the current year. The second TIMESTAMPADD adds a year to the date returned which will give the first day of the next year.
    First Day of the Previous Month
    TIMESTAMPADD(SQL_TSI_MONTH, -1, TIMESTAMPADD( SQL_TSI_DAY , DAYOFMONTH( CURRENT_DATE) * -(1) + 1, CURRENT_DATE)) From right to left the first TIMESTAMPADD returns the first day of the Current Month. The second TIMESTAMPADD then subtracts one month from the first day of the Current Month arriving to the First Day of the previous month.
    First Day of the Current Month
    TIMESTAMPADD( SQL_TSI_DAY , DAYOFMONTH( CURRENT_DATE) * -(1) + 1, CURRENT_DATE) This expression gets the current day of the month and subtracts one less than the current day to arrive at the first day of the month.
    First Day of the Next Month
    TIMESTAMPADD(SQL_TSI_MONTH, 1, TIMESTAMPADD( SQL_TSI_DAY , DAYOFMONTH( CURRENT_DATE) * -(1) + 1, CURRENT_DATE)) From right to left the first TIMESTAMPADD returns the first day of the Current Month. The second TIMESTAMPADD then adds one month from the first day of the Current Month arriving to the First Day of the next month.
    First Day of Current Quarter
    TIMESTAMPADD( SQL_TSI_DAY , DAY_OF_QUARTER( CURRENT_DATE) * -(1) + 1, CURRENT_DATE) This was included to show the calculations discussed above can be used with other functions. This is the same expression as the one that returns the first day of the current month except this one uses the DAY_OF_QUARTER property to return the first day of the current quarter.
    Last Day of the Previous Month
    TIMESTAMPADD( SQL_TSI_DAY , -(1), TIMESTAMPADD( SQL_TSI_DAY , DAYOFMONTH( CURRENT_DATE) * -(1) + 1, CURRENT_DATE)) From right to left the first TIMESTAMPADD returns the first day of the Current Month. The second TIMESTAMPADD subtracts a month to arrive at the first day of the previous month.
    Last Day of Current Month
    TIMESTAMPADD( SQL_TSI_DAY , -(1), TIMESTAMPADD( SQL_TSI_MONTH , 1, TIMESTAMPADD( SQL_TSI_DAY , DAYOFMONTH( CURRENT_DATE) * -(1) + 1, CURRENT_DATE))) From right to left the first TIMESTAMPADD finds the first day of the current Month. The second TIMESTAMPADD adds one month to the date to arrive at the first day of the next month. The final TIMESTAMPADD subtracts one day from the returned date to arrive at the last day of the Current Month.
    Last Day of the Next Month
    TIMESTAMPADD( SQL_TSI_DAY , -(1), TIMESTAMPADD( SQL_TSI_MONTH , 2, TIMESTAMPADD( SQL_TSI_DAY , DAYOFMONTH( CURRENT_DATE) * -(1) + 1, CURRENT_DATE))) From right to left the first TIMESTAMPADD finds the first day of the current Month. The second TIMESTAMPADD adds two months to the date to arrive at the first day of month after next. The final TIMESTAMPADD subtracts one day from the returned date to arrive at the last day of the Next Month.
    Last Day of Previous Year
    TIMESTAMPADD( SQL_TSI_DAY , -1, TIMESTAMPADD( SQL_TSI_DAY , EXTRACT( DAY_OF_YEAR FROM CURRENT_DATE) * -(1) + 1,
    CURRENT_DATE)) From right to left the first TIMESTAMPADD returns the first day of the current year. The second TIMESTAMPADD subtracts one day to arrive at December 31st of the previous year.
    Last Day of Current Year
    TIMESTAMPADD(SQL_TSI_YEAR, 1, TIMESTAMPADD( SQL_TSI_DAY , -1, TIMESTAMPADD( SQL_TSI_DAY , EXTRACT( DAY_OF_YEAR FROM CURRENT_DATE) * -(1) + 1, CURRENT_DATE))) From right to left the first TIMESTAMPADD returns the first day of the current year. The second TIMESTAMPADD deducts one day to arrive at December 31 of the previous year. The third TIMESTAMPADD adds a single year to the date to arrive at December 31 of the Current Year.
    Last Day of the Next Year
    TIMESTAMPADD(SQL_TSI_YEAR, 2, TIMESTAMPADD( SQL_TSI_DAY , -1, TIMESTAMPADD( SQL_TSI_DAY , EXTRACT( DAY_OF_YEAR FROM CURRENT_DATE) * -(1) + 1, CURRENT_DATE))) From right to left the first TIMESTAMPADD returns the first day of the current year. The second TIMESTAMPADD deducts one day to arrive at December 31 of the previous year. The third TIMESTAMPADD adds 2 years to the date to arrive at December 31 of the Next Year.
    Last Day of Current Quarter
    TIMESTAMPADD( SQL_TSI_DAY , -(1), TIMESTAMPADD( SQL_TSI_QUARTER , 1, TIMESTAMPADD( SQL_TSI_DAY , DAY_OF_QUARTER( CURRENT_DATE) * -(1) + 1, CURRENT_DATE))) Demonstrated using Quarters. From right to left the first TIMESTAMPADD returns the first day of the Current Quarter. The second TIMESTAMPADD returns the first day of the next quarter. The final TIMESTAMPADD subtracts a single day from the date to arrive at the last day of the Current Quarter.
    Number of days between First Day of Year and Last Day of Current Month TIMESTAMPDIFF(SQL_TSI_DAY, CAST('2010/01/01 00:00:00' AS DATE), TIMESTAMPADD( SQL_TSI_DAY , -(1), TIMESTAMPADD( SQL_TSI_MONTH , 1, TIMESTAMPADD( SQL_TSI_DAY , DAYOFMONTH( CURRENT_DATE) * -(1) + 1, CURRENT_DATE)))) For simplicity I hard coded the January 1, 2010 date and CAST it to a date. I could have used the First Day of the Current Year calculation but didn’t want to over clutter the example. The second part of the TIMESTAMPDIFF uses Last Day of the Current Month calculation to force the TIMESTAMPDIFF to calculate the number of days between the first day of the year and the last day of the current month.
    =============
    FYI, let say some example,
    Last day of previous Quarter:
    "GPC_DataMart"."GPC_DataMart"."dbo"."LQ_Position"."Business_Date"=TIMESTAMPADD( SQL_TSI_DAY , -(1), TIMESTAMPADD( SQL_TSI_DAY , DAY_OF_QUARTER( "GPC_DataMart"."GPC_DataMart"."dbo"."MT_BUSINESS_DATE"."Business_Date") * -(1) + 1, "GPC_DataMart"."GPC_DataMart"."dbo"."MT_BUSINESS_DATE"."Business_Date"))
    Last month last day:
    "GPC_DataMart"."GPC_DataMart"."dbo"."LM_Position"."Business_Date"=
    TIMESTAMPADD( SQL_TSI_DAY , -(1), TIMESTAMPADD( SQL_TSI_DAY , DAYOFMONTH( "GPC_DataMart"."GPC_DataMart"."dbo"."MT_BUSINESS_DATE"."Business_Date") * -(1) + 1, "GPC_DataMart"."GPC_DataMart"."dbo"."MT_BUSINESS_DATE"."Business_Date"))
    Last year Last day
    "GPC_DataMart"."GPC_DataMart"."dbo"."LY_Position"."Business_Date"=
    TIMESTAMPADD( SQL_TSI_DAY , -1, TIMESTAMPADD( SQL_TSI_DAY , EXTRACT( DAY_OF_YEAR FROM "GPC_DataMart"."GPC_DataMart"."dbo"."MT_BUSINESS_DATE"."Business_Date") * -(1) + 1, "GPC_DataMart"."GPC_DataMart"."dbo"."MT_BUSINESS_DATE"."Business_Date"))
    Thanks and Regards,
    Deva
    http://obieeelegant.blogspot.com/2011/06/obiee-date-expressions-reference.html

  • How to create logical columns for current period and prior period

    Hello all.
    Is there any way in obiee to create a new logica column in BMM layer that says "CURRENT PERIOD" AND "PRIOR PERIOD" OR ONE SINGLE COLUMN THAT SAYS "PERIOD".
    In those columns what I need is if it a current period column it shoould have 03/01/2012-03/31/2012 (this month date range)
    and in prior period column I shouldhave 02/01/2012 -02/29/2012(which is previous month date range).These columns I will be using in my reports.
    Please help me if we can create any such columns with these conditions/requirements

    Hi,I have already created he dynamic variables.But I am not getting how to use those variables and create the new logical columns in bmm layer.
    this is what I am trying
    case when VALUEOF("Current Month begin date"."Current Month begin date") ='..' and VALUEOF("Current Month end date"."Current Month end date")
    ='..' then 'current period' end
    I don't really understand what I should write case when VALUEOF("Current Month begin date"."Current Month begin date") ='..'??

  • TS1424 I downloaded a song that stops at 1:04 and jumps to the next song, as if it's over.  This song was in the middle of several songs, but this is the only one that is incomplete.  Can I download this song again for free, or do I have to purchase again

    I downloaded a song that stops at 1:04 and jumps to the next song, as if it's over.  This song was in the middle of several songs, but this is the only one that is incomplete.  Can I download this song again for free, or do I have to purchase again?

    If you live in a Region that allows re-downloading Music...
    Delete the Song(s) and re-download...
    See Here  >  Download Past Purchases
    http://support.apple.com/kb/HT2519
    If not... Contact iTunes Customer Service
    Apple  Support  iTunes Store  Contact Us

  • I have Photoshop Elements 12 and premiere elements 12 but I have it only in english laguage. How do I get a swedish version?

    I have Photoshop Elements 12 and premiere elements 12 but I have it only in english laguage. How do I get a swedish version?

    Use the crop tool.
    On the tool's option bar, type 300 px & 200 px, and the desired resolution.

  • I have installed Angry Birds Season and the Icon appears but when I select that game it goes back to the main screen???

    I have installed Angry Birds Seasons and the Icon appears but when I select the game it starts to open but then goes back to the home screen.  What to do???

    Try closing the app completely and then see if it works when you re-open it : from the home screen double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the Angry Bird Seasons app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    If that doesn't work then you could try a reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.
    A third option if neither work is to delete the app and then re-download it

  • IMovie was removed from my macbook pro after I downloaded OS X Yosemite, I had it before and have used it, but now I can only get it through the app store

    iMovie was removed from my macbook pro after I downloaded OS X Yosemite, I had it before and have used it, but now I can only get it through the app store. I can't pay for it so I would really appreciate the help.

    Look in your applications folder for the installer - Install OS X Yosemite. Delete it. Then go back to the App Store purchases tab and see if you can download it. You might have to re-index Spotlight.
    Spotlight – Re-index

  • I added a custom ringtone . Then later I tried to add another three set  but now after sync . Am not able to get rid of the first one... It's still there as my custom ringtone. But my iPhone in iTunes shows all four... But the phone shows only one...?

    I added a custom ringtone . Then later I tried to add another three set  but now after sync . Am not able to get rid of the first one... It's still there as my custom ringtone. But my iPhone in iTunes shows all four... But the phone shows only one...?

    Paul--you are a life-saver!! Worked great. I did have to look around to make sure I was getting 4.9 instead of 4.7 (even when the file was named 4.9 at techspot.com), but I finally got the right file, did the install as you suggested, and everything is now fine. One note, though, that I haven't seen mentioned in any of this thread: when I first tried to open up iTunes after getting back to 4.9, the following message appeared: "The file iTunes Library.itl cannot be read because it was created by a newer version of iTunes." I merely went to the old .itl file that was created when I did the update to iTunes 5, renamed it, moved it over to my now new 4.9, and iTunes opened fine. My library was a few days out of date, because of the few days' lag from the time I did the iTunes update, but that was easily taken care of, and everything's now working fine. Thanks again!!!

  • Since I installed the latest version of iTunes I cannot sync new downloads to my ipod. Before I installed this version I had two windows when I attached my ipod to my desktop but now there is only one. HELP

    Since I installed the latest version of iTunes I have been unable to sync new downloads to my ipod. Prior to this installation I would get 2 windows when I attached my ipod but now there is only one. The software does not recognise the device (I tried running the doagnostic) but I can see it on my desktop. Anyone know what I can do?

    Hi findmeat,
    Welcome to the Support Communities!
    The article below may be able to help you with this.
    Click on the link to see more details and screenshots. 
    About iTunes Radio
    http://support.apple.com/kb/HT5848
    Cheers,
    - Judy

  • I have two devices (Iphone and Ipad) on the same Apple ID. When I go to Icloud and click at the "find Iphone" I see only one of my devices. How can I do to see both of them?

    I have two devices (Iphone and Ipad) on the same Apple ID. When I go to Icloud and click at the "find Iphone" I see only one of my devices. How can I do to see both of them?

    Obvious question, but have you got 'Find My iPhone' set on both devices?  Settings>iCloud>Find My iPhone.

  • Tacacs authentication fails for one user account for only one switch

    Hi,
    I am having an scenario, where as Tacacs authentication fails for one user account for only one switch.
    The same user account works well for other devices.
    The AAA configs are same on every devices in the network.
    Heres the show tacacs output from the switch where only one user account fails;
                  Socket opens:        157
                 Socket closes:        156
                 Socket aborts:        303
                 Socket errors:          1
               Socket Timeouts:          2
       Failed Connect Attempts:          0
            Total Packets Sent:       1703
            Total Packets Recv:       1243
              Expected Replies:          0
    What could be the reason ?
    No errors on ACS server; same rights had been given to the user account.
    Thanks to advise.
    Prasey

    Hi there,
    Does the user get authenticated in the ACS logs?
    reports and activity----> failed attempts
    ro
    reports and activity----->  passed authentications
    That will help narrow it down.
    Brad

  • HT4060 iPad will not charge if hooked by USB to pc or plugged into wall.  How do I know if the problem is with iPad, cable or power adapter.  I have a 12, 10 and 5W adapters no success with any.  Only one lightening cable so can't swap cables.

    iPad will not charge if hooked by USB to pc or plugged into wall.  How do I know if the problem is with iPad, cable or power adapter.  I have a 12, 10 and 5W adapters no success with any.  Only one lightening cable so can't swap cables.

    I'm sorry but this is too funny to pass up. 

  • Restricting the user to access only one view in or database

    A user wants to create a database link , so that he can view one of our views. We want to restrict permission, so that he can access only that view, and not any of our tables. What is the best way to proceed?
    Thanks in advance,
    Gayatri

    Pl do not post duplicate threads - Restricting the user to access only one view in or database

  • [WPF] AutoCompleteBox: oblige the user to select only items in list

    Hi,
    I'm using AutoCompleteBox from Codeplex.com
    Is there a way for oblige the user to select only items shown in list?
    I would avoid that user can to insert custom words in database.
    Thanks.

    Hi robertino_salemi ,
    In my experience, if you want to "avoid custom words and insert into database", I suggest that you could check these words before user inserts into database.
    I have made a code sample , suppose there is a button, it will check the value when click the button. you can refer to code below.
    You can also use the other event ,such as LostFocus,MouseLeave etc.
    <toolkit:AutoCompleteBox x:Name="autoTextbox" Width="150" Height="30" SelectedItem="{Binding}"></toolkit:AutoCompleteBox>
    <Button Width="100" Height="30" Content="submit" Click="Button_Click"></Button>
    List<string> ls = new List<string>();
    public MainWindow()
    InitializeComponent();
    ls.Add("abc" );
    ls.Add( "acc" );
    ls.Add("affc" );
    autoTextbox.ItemsSource = ls;
    private void Button_Click(object sender, RoutedEventArgs e)
    if(!ls.Contains(autoTextbox.Text.Trim()))
    MessageBox.Show("Error data!");
    return;
    Best Regards,
    Eoro

  • Creating iphoto book and can't seem to view/ work on only one page at a time.

    I am creating an iPhoto book and can't seem to view/work on only one page at a time.  The Navigator, that allows you to focus on a part of the page is actually 1 1/2 pages in size so 1 1/2 pages are in view when trying to work on one page.  What am I doing wrong or how can I fix this.  It is very distracting viewing half of a previous page when trying to create a new page and write a story to go with the related pictures.

    My Navigator seems to be to large.  It covers 1 1/2 pages while in the training information it shows as the size of one page.  Is there a way to adjust the size of the Navigator?
    You can hover the mouse over the left border of the Navigator - then the cursor will turn into a resize cursor and you can drag the border and make the Navigator panel smaller by enlarging the source list.
    Or drag the lower right corner of the iPhoto window and shrink the appliaction window. This will only make the navigator smaller - the source list and information panel will stay the same size.
    Regards
    Léonie

Maybe you are looking for

  • How can I go back to google maps instead of apple maps?

    Apple maps are very very very bad. Is it possible to go back to google maps. I come from Spain and maps doesn't work. Always finds what you are not looking for and what you want does not exist in 75% of searches. You find places and apple maps is not

  • Working out the total memory consumed by a process

    Hi, I am writing a general snapshot utility that provides session statistics. The code is as follows: set pagesize 9999 set linesize 140 set heading off select SUBSTR(name,1,8) || ' sessions as on '||TO_CHAR(CURRENT_DATE, 'MON DD YYYY HH:MI AM') from

  • HT4436 Can i set up two icloud accounts to same computer?

    Can i set up two icloud accounts to the same pc? If so can i have it so i dont have to log into or switch accounts for stuff to transfer to my computer?

  • Native schema; Translation error

    I'm trying to create a flatfile based on a native schema. It seems that the nested structure (order/orderlines) does not work, although I can't figure out what I'm doing wrong. The ESB retunrs "Error while translating message to native format [Caused

  • OnAction for TreeItemType

    Hi If I click on a TreeItem, my Event Handler method get's the path information for the selected context element like "IOCG.TreeUIView.Customer.1.Order.0.OrderItem.2" How do I transfer this String into an context element? (of type IWDTreeItemType Ele