How to do running aggr based on prompt value and how to or prompt?

Hello guys
I have some requirements that I have a report that has measures and Months and Date..
1. I have to create dashboard prompts on months and dates in such way that users can select either that want to see monthly sales or daily sales.. So the two prompts should be "or" relationship that point to the same report. If user select month from month prompt, the report will return data at monthly level; if select day on day prompt, it should return data at day level..
2. Doing running sum based on the dates selected from the prompts.
If I select day prompt as between "Feb 12th 2009" and "March 1st 2009", the report should return sales data that is the sum of all sales between "Feb 12th 2009" and "March 1st 2009".. If user select month prompt as between "Nov 2008" and "Feb 2009", the report should show the sum of all the sales from "Nov 2008" and "Feb 2009".
How would I achieve both scenarios?
Any pointer will be greatly appreciated..

Hi.
Maybe you want to have dynamic group by in Answers report by choosing group by part from a dashboard prompt.
So, assume this example in which you have only one dashboard prompt that shows Day or Month character data.
Make dashboard prompt:
edit column formula: 1
control: drop-down list
show:
SELECT case when 1=2 then TIMES.CALENDAR_MONTH_DESC else *'Day'* end FROM "Normal model"
union all
SELECT case when 1=2 then TIMES.CALENDAR_MONTH_DESC else *'Month'* end FROM "Normal model"
default to - specified value: Day
set variable - presentation variable: pv_dyn_group_by
label: Group by
Now make report in Answers and we'll use dynamic column for group by depends on our presentation variable (Day or Month):
/* column 1 */
label:
I don't know how to dynamicly change column label (Month or Day) so I put just label Dynamic group by.
column formula:
case when '@{pv_dyn_group_by}' ='Day'
then EVALUATE('TO_CHAR(%1,%2)' as varchar(20), TIMES.TIME_ID, 'dd.mm.yyyy')
else TIMES.CALENDAR_MONTH_DESC
end
/* column 2 */
AMOUNT_SOLD
/* column 3 */
RSUM(AMOUNT_SOLD)
Test:
In both cases we get the same result of RSUM in the end. First we group by a TIMES.TIME_ID if we choose 'Day', second by a TIMES.CALENDAR_MONTH_DESC if we choose 'Month'.
Is that you want to?
So if you want to see month or day values to choose it (between part) you must make second prompt with something like this in show SQL results:
SELECT case when '@{pv_dyn_group_by}{Month}'='Month' then TIMES.CALENDAR_MONTH_DESC end || case when '@{pv_dyn_group_by}{Day}'='Day' then EVALUATE('TO_CHAR(%1,%2)' as varchar(20), TIMES.TIME_ID, 'dd.mm.yyyy') end FROM "Normal model" order by 1
The name of the second prompt is: '@{pv_filter}{Month}'
That will display 'Month' or 'Day'. I don't know better solution :-)
Similar is to make a between 2 prompts.
After then you must modify filter in Answers to get OR (between dates ot between months)
Regards,
Goran Ocko
http://108obiee.blogspot.com/

Similar Messages

  • HT1338 Purchased a used macbook pro with Mountain Lion. My old Mac runs Snow Leopard is backed up to Time machine. How do I register the operating system to me and how do I use Time Machine to move my files to the new used computer?

    Purchased a used macbook pro with Mountain Lion. My old Mac runs Snow Leopard is backed up to Time machine. How do I register the operating system to me and how do I use Time Machine to move my files to the new used computer?

    If you look at the User Tips tab, you will find a write up on just this subject:
    https://discussions.apple.com/docs/DOC-4053
    The subject of buying/selling a Mac is quite complicated.  Here is a guide to the steps involved. It is from the Seller's point of view, but easily read the other way too:
    SELLING A MAC A
    Internet Recovery, and Transferability of OS & iLife Apps
    Selling an Old Mac:
    • When selling an old Mac, the only OS that is legally transferable is the one that came preinstalled when the Mac was new. Selling a Mac with an upgraded OS isn't doing the new owner any favors. Attempting to do so will only result in headaches since the upgraded OS can't be registered by the new owner. If a clean install becomes necessary, they won't be able to do so and will be forced to install the original OS via Internet Recovery. Best to simply erase the drive and revert back to the original OS prior to selling any Mac.
    • Additionally, upgrading the OS on a Mac you intend to sell means that you are leaving personally identifiable information on the Mac since the only way to upgrade the OS involves using your own AppleID to download the upgrade from the App Store. So there will be traces of your info and user account left behind. Again, best to erase the drive and revert to the original OS via Internet Recovery.
    Internet Recovery:
    • In the event that the OS has been upgraded to a newer version (i.e. Lion to Mountain Lion), Internet Recovery will offer the version of the OS that originally came with the Mac. So while booting to the Recovery Disk will show Mountain Lion as available for reinstall since that is the current version running, Internet Recovery, on the other hand, will only show Lion available since that was the OS shipped with that particular Mac.
    • Though the Mac came with a particular version of Mac OS X, it appears that, when Internet Recovery is invoked, the most recent update of that version may be applied. (i.e. if the Mac originally came with 10.7.3, Internet Recovery may install a more recent update like 10.7.5)
    iLife Apps:
    • When the App Store is launched for the first time it will report that the iLife apps are available for the user to Accept under the Purchases section. The user will be required to enter their AppleID during the Acceptance process. From that point on the iLife apps will be tied to the AppleID used to Accept them. The user will be allowed to download the apps to other Macs they own if they wish using the same AppleID used to Accept them.
    • Once Accepted on the new Mac, the iLife apps can not be transferred to any future owner when the Mac is sold. Attempting to use an AppleID after the apps have already been accepted using a different AppleID will result in the App Store reporting "These apps were already assigned to another Apple ID".
    • It appears, however, that the iLife Apps do not automatically go to the first owner of the Mac. It's quite possible that the original owner, either by choice or neglect, never Accepted the iLife apps in the App Store. As a result, a future owner of the Mac may be able to successfully Accept the apps and retain them for themselves using their own AppleID. Bottom Line: Whoever Accepts the iLife apps first gets to keep them.
    SELLING A MAC B
    Follow these instructions step by step to prepare a Mac for sale:
    Step One - Back up your data:
    A. If you have any Virtual PCs shut them down. They cannot be in their "fast saved" state. They must be shut down from inside Windows.
    B. Clone to an external drive using using Carbon Copy Cloner.
    1. Open Carbon Copy Cloner.
    2. Select the Source volume from the Select a source drop down menu on the left side.
    3. Select the Destination volume from the Select a destination drop down menu on the right
    side.
    4. Click on the Clone button. If you are prompted about creating a clone of the Recovery HD be
    sure to opt for that.
    Destination means a freshly erased external backup drive. Source means the internal
    startup drive. 
    Step Two - Prepare the machine for the new buyer:
    1. De-authorize the computer in iTunes! De-authorize both iTunes and Audible accounts.
    2, Remove any Open Firmware passwords or Firmware passwords.
    3. Turn the brightness full up and volume nearly so.
    4. Turn off File Vault, if enabled.
    5. Disable iCloud, if enabled: See.What to do with iCloud before selling your computer
    Step Three - Install a fresh OS:
    A. Snow Leopard and earlier versions of OS X
    1. Insert the original OS X install CD/DVD that came with your computer.
    2. Restart the computer while holding down the C key to boot from the CD/DVD.
    3. Select Disk Utility from the Utilities menu; repartition and reformat the internal hard drive.
    Optionally, click on the Security button and set the Zero Data option to one-pass.
    4. Install OS X.
    5. Upon completion DO NOT restart the computer.
    6. Shutdown the computer.
    B. Lion and Mountain Lion (if pre-installed on the computer at purchase*)
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because
    it is three times faster than wireless.
    1. Restart the computer while holding down the COMMAND and R keys until the Mac OS X
    Utilities window appears.
    2. Select Disk Utility from the Mac OS X Utilities window and click on the Continue button. 
    3. After DU loads select your startup volume (usually Macintosh HD) from the left side list. Click
    on the Erase tab in the DU main window.
    4. Set the format type to Mac OS Extended (Journaled.) Optionally, click on the Security button
    and set the Zero Data option to one-pass.
    5. Click on the Erase button and wait until the process has completed.
    6. Quit DU and return to the Mac OS X Utilities window.
    7. Select Reinstall Lion/Mountain Lion and click on the Install button.
    8. Upon completion shutdown the computer.
    *If your computer came with Lion or Mountain Lion pre-installed then you are entitled to transfer your license once. If you purchased Lion or Mountain Lion from the App Store then you cannot transfer your license to another party. In the case of the latter you should install the original version of OS X that came with your computer. You need to repartition the hard drive as well as reformat it; this will assure that the Recovery HD partition is removed. See Step Three above. You may verify these requirements by reviewing your OS X Software License.

  • How to select different Querys based on Variable Value

    Hi guys i need to know how to select different Querys, based on variable values selected by the user, i try to do it using a Web Template but i don´t know how to program a Dynamic Query.....
    I hope sombody could help me with this
    Message was edited by: Oscar Diaz

    Hi Diaz,
    Can you explain the exact scenario which you are looking for!!!
    regards
    Happy Tony

  • How to install drivers for ati radeon 3200?and how to config xorg.co ?

    how to install drivers for ati radeon 3200?and how to config xorg.conf?

    mawch wrote:how to install drivers for ati radeon 3200?and how to config xorg.conf?
    Hello
    I am using ati hd 3200 which is integrated with my motherboard. If you are using arch you can download & install through pacman. The package is named like catalyst*. You can install them by issuing as root user
    #pacman -Sy
    #pacman -S -l | grep -i catalyst
    #pacman -S catalyst catalyst-utils
    After installation reboot your machine in runlevel 1. (single mode).  Ensure "fglrx" module is loaded correctly using
    #lsmod | grep -i fglrx
    If the resultant output have "fglrx" part  the module is loaded correctly. The next step is to create a working /etc/X11/xorg.conf. Backup your current xorg.conf if needed.
    #cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bkup
    Then issue
    #aticonfig --initial --input=/etc/X11/xorg.conf
    This will create a new xorg.conf file. Now we can test our confign.
    #telinit 3
    I am using runlevel 3 to avoid graphic messup!!
    issue
    #gdm
    If you graphical login screen works correctly there is nothing to do more except adjust your monitor resoloution as you like.
    To know your ati driver is working correctly issue as root
    #fgl_glxgears
    If gears are rolling happily it seems correct. You can also know more about installed ati driver
    #fglrxinfo
    Now the installed driver version is in the output 
    If there is any problem try following
    ##### Soloutions to solve various display problems using ATI Catalyst Drivers in Linux #####
    yes video playback is choppy until i ran :-
    sudo aticonfig --overlay-type=Xv
    Try adding the following to the 'Device' section in /etc/X11/xorg.conf
    Option "TexturedVideo" "true"
    ### This is a half solution for mythtv problems. Run mythtv in window (no full screen) If You have a screen resolution of 1024x768 try the command;
    mythfrontend --geometry 800x600
    Append the "Device" Section of /etc/X11/xorg.conf file as follows;
    Section "Device"
    Identifier "Videocard0"
    Driver "fglrx"
    Option "OpenGLOverlay" "off"
    Option "VideoOverlay" "on"
    Option "TexturedVideo" "on"
    Option "TexturedVideoSync" "on"
    Option "Capabilities" "0x00000800"
    BusID "PCI:1:0:0"
    EndSection
    Add following in the .bashrc of each user or /etc/bashrc file* Most Effective In My Case!!
    export LIBGL_ALWAYS_INDIRECT=true
    ####### Arch Linux - Add the "nopat" option to the /boot/grub/menu.lst or /boot/grub/grub.conf
    ####### as in the following example
    title  Archlinux Ice Kernel
    root   (hd0,1)
    kernel /boot/vmlinuz26-ice root=/dev/sda2 ro resume=/dev/sda3 quiet splash nopat
    initrd /boot/kernel26-ice.img
    NB: REGULAR DISCLAIMER IS ALSO APPLICABLE TO THE ABOVE MATTER; USE IT AT YOUR OWN RISK !!!  ALL THE ABOVE INFORMATION IS COLLECTED FROM VARIOUS POSTINGS IN THE FORUM AND FROM MY OWN EXPERIENCE
    Wish U good luck
    mvdvarrier

  • HT4910 I have a simple question or 2. 1) how can I see what is on my icloud and how do I edit the data if I do not want it on icloud. 2) I have an app that I would like to update data - it doesn't appear to be doing that, how can I fix that? It is the mob

    1) how can I see what is on my icloud and how would I edit the data that is on it?
    2) I am having problems with an app syncing data with pc - how can I fix that? It is mobile noter.

    Welcome to the Apple Community.
    You can see what's in iCloud collectively at settings > iCloud > storage & back up > manage.... You can only edit the data through the appropriate app (contacts, calendars etc)
    For problems with 3rd party apps, contact the developer.

  • I recently installed an app CARTOON HD. I stupidly clicked install as I read that it wants access to my protected data. How can I see what it wants access to and how do I delete it

    I recently installed an app CARTOON HD. I stupidly clicked install as I read that it wants access to my protected data.... I think.  How can I see what it wants access to and how do I delete it

    How do I delete it permanently if it has indeed requested my protected/personal data?

  • As a JSF Developer, I want to understand technically how the JSF View Components are rendered as html and how there events are binded to Server.I want to know each Java Class that is involved in flow.

    As a JSF Developer, I want to understand technically how the JSF View Components are rendered as html and how there events are binded to Server.I want to know how flows goes to the server and server understands the method which is to be called of managed bean. I know it is with annotation @ManagedBean and method name, but how Call is binded with annotation @ManagedBean.
    In short, i want to know the internal implementation of JSF Framework.

    As a JSF Developer, I want to understand technically how the JSF View Components are rendered as html and how there events are binded to Server.I want to know how flows goes to the server and server understands the method which is to be called of managed bean. I know it is with annotation @ManagedBean and method name, but how Call is binded with annotation @ManagedBean.
    In short, i want to know the internal implementation of JSF Framework.

  • I had water damage to my iphone5 when I was deployed w/ the military overseas. How can I find out what saved to icloud and how to see where my photos are. I don't know when it was able to back up as wi fi was pretty sketchy. please advise. thx in advance

    I had water damage to my iphone5 when I was deployed w/ the military overseas. How can I find out what saved to icloud and how to see where my photos are. I don't know when it was able to back up as wi fi was pretty sketchy. please advise. thx in advance
    My iphone is toast, I know I checked on icloud and see my emails from the day before it happened. Can I see when and what my phone backed up through itunes or icloud?
    Please please help i am lost.

    This was EXACTLY what I needed about the purchases I made from my device. However, is there a way to re-download other ones you've made from a computer? Because I realized some of them were not just purchased from my device.
    This is a picture of what it looks like now:
    http://tinypic.com/r/107quxu/7
    As you can see, the stuff circled in red doesn't give me an option to download from Cloud Beta because it already says "downloaded".
    any way to get around that?

  • How to edit xml file particular value. and how to send xml file over ip address 192.168.2.10 using ftp

    how to edit xml file particular value. and how to send xml file over ip address 192.168.2.10 device using ftp through Ethernet

    Hello
    For using FTP function in LabVIEW, I recommend you to check this document: FTP Basics
    Also, take a look at FTP Browser.vi, which is available at the Example Finder.
    To edit a XML file, try to use VIs in XML palette. Maybe Write to XML.vi helps you.
    Post your current VI if possible.
    Regards
    Mondoni

  • How to upload ESS.sca in to  WAS server and how to configure it

    How to upload ESS.sca in to  WAS server and how to configure it.
    If business package ESS.epa how to deploy and configure it.

    Hi
    Configuring The Business Package For Employee Self Service (ESS)-mySAP ERP 2004
    contains a helpful guide on
    CONFIGURING THE BUSINESS PACKAGE FOR EMPLOYEE SELF SERVICE (ESS)-MYSAP ERP 2004
    Thanks & regards
    Arun Singh

  • How do I upgrade from CS5.5 to CS6 and how much does it cost in New Zealand?

    How do I upgrade from CS5.5 to CS6 and how much does it cost in New Zealand?

    If you don't want to go the Cloud route and subscribe then Adobe still sells CS6 (online only) via their website
    http://www.adobe.com/au/products/catalog/cs6._sl_id-contentfilter_sl_catalog_sl_software_s l_creativesuite6.html
    (make sure you're in the NZ store - check the Country the link above the Copyright at the bottom LHS of the page)
    Select your product then click Buy
    I want to buy: Select Upgrade from the dropdown menu
    I own: <select your existing CS5.5 product>
    Complete your purchase.
    Upgrade cost depends on which CS5.5 suite you own and which CS6 suite you want to upgrade to.

  • Mountain Lion is downloading, how can I tell where it is downloading to and how much has downloaded?

    Mountain Lion is downloading, how can I tell where it is downloading to and how much has downloaded?

    In the "purchases" tab in the App Store you'll see a progress report. 
    Also once it completes downloading the installer will auto-launch.
    Once you get Mountain Lion installed, if you have the Downloads folder in your dock you will get a progress indicator in the dock while it's downloading :-)

  • After installin Adoe phostoshop c6 and illustrator i open it then it no open because need the serial no.... i follo the steps to finde my serial no.and no real result to find it .. pleaaase help me how can i find e my seria no.. and howa y download the ph

    after installin Adoe phostoshop c6 and illustrator i open it then it no open because need the serial no.... i follo the steps to finde my serial no.and no real result to find it .. pleaaase help me how can i find e my seria no.. and howa y download the photoshop free ith no serial no and nolimit 30 days and no money? please get the link????

    Yasmine,
    Topic or subject titles should be clear, pertinent and concise so that individual users can tell at a glance if they can help or not.
    That field is not for attempting to fit your entire question in there.
    Please keep this in mind next time you post.  Thank you.

  • I have iPhone 6 screen broken how much the cost for fix it in UAE and how many time need it fix it ?

    iI have iPhone 6 screen borken how much money need to fix it in UAE and how many time need to do it?

    Hi khaled278, 
    Welcome to the Apple Support Communities!
    I am sorry to hear that the display on your new iPhone 6 is broken. I would suggest using the following link to contact Apple Support in UAE to gather more detailed information on the repair process and pricing. 
    iPhone - Apple Support
    Regards, 
    Joe

  • How can i do with labview program,when i have 20 different values,and 1 want to add it with constant value.and how to get the results?

    how can i do with labview program,when i have   20 different values,and 1 want to add it with constant value.and how to get the results?

    Why do the 20 values have to be different? The same code should work even if some are equal.
    What do you mean by "get the result"? The result is available at the output terminal and all you need is a wire to get it where you need it. That could be an indicator, another operation, or even a hardware device.
    What is the data type of the 20 values? An array? A cluster? A bunch of scalars? A waveform? Dynamic data?
    LabVIEW Champion . Do more with less code and in less time .

Maybe you are looking for

  • My apple tv(3rd Gen) total screws. connection always break down, nothing changes on the setting!!! no movies, no iTunes, only seconds than it is gone!!

    One month after purchase and perfect functioning my apple Tv is screwed! I can not stream any content to since the connection always breaks down after second, also itunes etc cannot be accessed!! I did everything, changed Routher channels to all poss

  • Wacom Cintiq 12 WX

    Hi, does somebody got a Cintiq 12 WX calibrated for Adobe RGB ? I havent got enogh money to buy a spider tool or somethings else...just baught me that 12 WX and that was allready awfull expensive for me. Would be graet if you can help me. Regards atr

  • Blocks in Images

    There is an issue when I develop an Image in LR6. Colored Spotlights are surroundet by blocks. In LR5 there is no problem with the same Image.

  • Customer not maintained in sales area

    when i create sales order system is throwing a error message like customer not maintained in sales area.... in va01, after entering sold to party i am getting this error.... what should be configuration setting for setting this right.... kindly advis

  • Naming photos on Iphoto

    i upload my photos to my Mac and use them for my screen saver. i would like them as they rotate, to state the description that i write on the import line when they're imported. in other words if i import them to read New York 2012, i'd like them to s