Getting maximum and minimum of all values in a result set

Hi,
I want to find the maximum and minimum of values of a column in answers. For example, suppose there are three columns x,y,z and 'x' has values 1,2,3. I want to display the result as:
x y z max(x) min(x)
1 y1 z1 3 1
2 y2 z2 3 1
3 y3 z3 3 1
I tried to use the Max and Min functions. But the result is displayed as
1 y1 z1 1 1
2 y2 z2 2 2
3 y3 z3 3 3
Any help is greatly appreciated.
Thanks,
KK
Edited by: 842704 on Aug 16, 2011 12:44 PM

where did you give this max and min ?
You need to type Max( column_name) in the formula of the column and dont choose the max function from the  dop down of the "Aggregation Rule"
This should work...
Thanks
Ashish

Similar Messages

  • How to capture the data within the given range of maximum and minimum values ? from csv files

    My requirement,
    1. Here, the user will provide the range like maximum and minimum values, based on this range, the VI should capture the data within the given range. ( from CSV file as attached )
    2. Then VI should calcluate the average value for captured data and export it to excel.
    This is my requirement can anyone help me on this.
    Many thanks in advance
    rc_cks
    Attachments:
    sample_short.csv ‏2439 KB

    Hi,
    Thanks for remnding me. I forgt to attach the VI, 
    Here I am attaching the VI, what I tried. 
    From attached CSV file, I have to find an average value for columns B,C,D,E,F,G,H,I and AJ, AK. ( data range will be defined  by user ), focused only on these columns
    Here, the scope is to calculate an average value for given data range by user as MAX and MIN data.  
    FYI:  I tried manually for two instance i.e column H & I.  As per H column one steady state values from  7500 to 10500 and similarly in I column 7875 to 10050. So, I gave these as a limit to capture and calculate the average value. But unfortunaltely, requirement has been modified as per below requirements.
    More Info on requirement: 
    --> The user will define the range of data by giving some MAXIMUM and MINIMUM values(for above mentioned columns induvidually), then VI should capture          that data range and it has to caculate the average value for that range of data. This is the task I have to complete. 
    --> I am stuck in creating a logic for data capturing for given range of MAX and MIN value from user, 
         Can anyone help me on this. 
    If my explanation is not clear, Please let me know.  
    Many thanks, help mw
    rc
    Attachments:
    VI_rc.vi ‏25 KB
    sample.zip ‏4166 KB

  • How to calculate the ratio between the maximum and minimum peaks of the two waves using two looping to find the value of SPO2?

    hello everyone,
    i'm rai from indonesia
    I have a final project about pulse oximetriy, I have some problems,
    how to calculate the ratio between the maximum and minimum peaks of the two waves using two while loops to calculate SpO2 ?
    My program image can be seen below predicament ?
    Attachments:
    spo2 akusisi data with filter lpf hpf smoot nilai max min ir merah.vi ‏249 KB
    spo2 akusisi data with filter lpf hpf smoot nilai max min ir merah.vi ‏249 KB

    Hi rai,
    I would appreciate it as kind of respect for forum participants if you would clean up your VI before uploading it (or images of its block diagram)…
    That being said:
    - Your inner while loops each run exactly twice. Replace them with FOR loops!
    - Lots of unneeded operations, mainly induced by ExpressVI usage. Is there a reason to convert to DDT and immediately convert back to 1D array?
    - You already calculate some Min/Max values. Ratio is just a division of two values…
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How to calculate the ratio between the maximum and minimum peaks of the two waves using two while loops?

    hello everyone,
    i'm rai from indonesia
    I have a final project about pulse oximetriy, I have some problems,
    how to calculate the ratio between the maximum and minimum peaks of the two waves using two while loops to calculate SpO2 ?
    My program image can be seen below predicament ?
    Attachments:
    spo2 akusisi data with filter lpf hpf smoot nilai max min ir merah.vi ‏249 KB

    Hi Rai,
    You should post this into the LabVIEW forum rather than Real-Time since this isn't a Real-Time application. Your post will see more replies in the LabVIEW forum. 
    As far as your question is concerned, you can write the max and min from the respective loops to a local variable to send the data out of the loops to a third loop or just do the calculation in one of the loops. This would be ideal if you're trying to do this while the loop is running. 
    -Jayk
    Applications Engineering
    National Instruments

  • My Airport wireless is working for my two MacBook Pros and my daughter's iPod, but our iPad, Iphone and other iPod all say they need to set up an Airport Base Station but do not have the proper software.  I'm not sure what to do to remedy this situation.

    My Airport wireless is working for my two MacBook Pros and my daughter's iPod, but our iPad, Iphone and other iPod all say they need to set up an Airport Base Station but do not have the proper software.  I'm not sure what to do to remedy this situation.

    This might sound like a silly question, but are you sure the iOS devices (iPhone, iPad, iPod touch etc.) are still trying to connect to the same network from your own Airport router, as the MacBook Pros are? If you tap Settings on them, is the network name next to where it says Wi-Fi, the right one?
    I've got a weird feeling that either in the past couple of days, a neighbour got an Airport device and hasn't set it up yet (causing your iOS devices to try to help), or that perhaps there's an issue with your Airport router and they're noticing it and trying to help out, while for whatever reason, Airport Utility isn't opening itself on the MacBook Pros like it normally should if there's a problem.
    If you open Airport Utility on one of the MacBook Pros, does it report any problems with your Airport device, and can you view/edit the settings on it?

  • Maximum and minimum value..

    Hi,
    I want to print/output maximum and minimun value as range from one internal table.
    How to print.
    Example: for entries 1,2,3,5,6,8,9.
    output : 01-09.

    HI,
    Use aggeriget function .
    tables: ekko.
    data: begin of itab occurs 0,
      ebeln like ekko-ebeln,
      matnr like ekpo-matnr,
      netpr like ekpo-netpr,
      end of itab.
    data: v_cnt like sy-tabix.
    select-options: s_ebeln for ekko-ebeln .
    select ebeln from ekko into corresponding fields of table itab where ebeln in s_ebeln.
    loop at itab.
      select count(*) into v_cnt from ekpo where ebeln = itab-ebeln.
      write:/1 itab-ebeln,15 v_cnt.
    endloop.
    Regards,
    Nehru.s

  • Macbook Pro getting slower and slower, freezing all the time

    Hi,
    My early 2011 Macbook Pro is gettin slower and slower, and I'm pretty sure Mavericks only worsened the condition. This is my report, can someone help me on why this is happening?
    Hardware Information:
              MacBook Pro (13-inch, Early 2011)
              MacBook Pro - model: MacBookPro8,1
              1 2.3 GHz Intel Core i5 CPU: 2 cores
              4 GB RAM
    Video Information:
              Intel HD Graphics 3000 - VRAM: 384 MB
    Audio Plug-ins:
              BluetoothAudioPlugIn: Version: 1.0 - SDK 10.9
              AirPlay: Version: 1.9 - SDK 10.9
              AppleAVBAudio: Version: 2.0.0 - SDK 10.9
              iSightAudio: Version: 7.7.3 - SDK 10.9
    Startup Items:
              FanControlDaemon: Path: /Library/StartupItems/FanControlDaemon
    System Software:
              OS X 10.9.1 (13B42) - Uptime: 1 day 1:28:0
    Disk Information:
              TOSHIBA MK5059GSXP disk0 : (500,11 GB)
                        EFI (disk0s1) <not mounted>: 209,7 MB
                        Macintosh HD (disk0s2) /: 499,25 GB (54,63 GB free)
                        Recovery HD (disk0s3) <not mounted>: 650 MB
              MATSHITADVD-R   UJ-898 
    USB Information:
              JMicron USB to ATA/ATAPI bridge 500,11 GB
                        EFI (disk2s1) <not mounted>: 209,7 MB
                        Filmes (disk2s2) /Volumes/Filmes: 499,76 GB (330,53 GB free)
              Apple Computer, Inc. IR Receiver
              Apple Inc. FaceTime HD Camera (Built-in)
              Apple Inc. iPhone
              Apple Inc. Apple Internal Keyboard / Trackpad
              Apple Inc. BRCM2070 Hub
                        Apple Inc. Bluetooth USB Host Controller
    FireWire Information:
    Thunderbolt Information:
              Apple Inc. thunderbolt_bus
    Kernel Extensions:
              de.novamedia.driver.NMSmartplugSCSIDevice          (1.0.1)
              com.Cycling74.driver.Soundflower          (1.5.1)
              com.bresink.driver.BRESINKx86Monitoring          (8.0)
    Problem System Launch Daemons:
    Problem System Launch Agents:
    Launch Daemons:
              [loaded] com.adobe.fpsaud.plist
              [loaded] com.microsoft.office.licensing.helper.plist
              [loaded] com.oracle.java.Helper-Tool.plist
    Launch Agents:
              [failed] com.brother.LOGINserver.plist
              [loaded] com.oracle.java.Java-Updater.plist
              [loaded] de.novamedia.VodafoneDeviceObserver.plist
    User Launch Agents:
              [failed] com.akamai.single-user-client.plist
              [loaded] com.facebook.videochat.[redacted].plist
              [failed] com.google.GoogleContactSyncAgent.plist
              [loaded] com.macpaw.CleanMyMac.helperTool.plist
              [loaded] com.macpaw.CleanMyMac.trashSizeWatcher.plist
              [loaded] com.spotify.webhelper.plist
              [loaded] com.valvesoftware.steamclean.plist
    User Login Items:
              uHD-Agent
              GrowlHelperApp
              Alfred
              uTorrent
              Dropbox
              iShutdown
              HyperDock Helper
              Assistente de gestor de conteúdo
    3rd Party Preference Panes:
              Akamai NetSession Preferences
              Fan Control
              Flash Player
              Flip4Mac WMV
              Growl
              HyperDock
              Java
    Internet Plug-ins::
              DirectorShockwave: Version: 11.5.9r620
              o1dbrowserplugin: Version: 4.9.1.16010
              Unity Web Player: Version: UnityPlayer version 3.4.2f3 - SDK 10.5
              Default Browser: Version: 537 - SDK 10.9
              Flip4Mac WMV Plugin: Version: 2.3.8.1
              RealPlayer Plugin: Version: Unknown
              Silverlight: Version: 5.1.20913.0 - SDK 10.6
              FlashPlayer-10.6: Version: 11.9.900.170 - SDK 10.6
              Flash Player: Version: 11.9.900.170 - SDK 10.6
              QuickTime Plugin: Version: 7.7.3
              googletalkbrowserplugin: Version: 4.9.1.16010
              npgtpo3dautoplugin: Version: 0.1.44.29 - SDK 10.5
              iPhotoPhotocast: Version: 7.0 - SDK 10.8
              SharePointBrowserPlugin: Version: 14.3.9 - SDK 10.6
              JavaAppletPlugin: Version: Java 7 Update 45
    Bad Fonts:
              None
    Old applications:
              Content Manager Assistant:          Version: 1.10.4086.78 - SDK 10.5
                        /Users/duarte_cunharosa/Applications/CMA.app
              Content Manager Assistant:          Version: 1.10.4086.78 - SDK 10.5
                        /Applications/CMA.app
              FacebookVideoCalling:          Version: 1.2.0.157 - SDK 10.5
                        /Users/duarte_cunharosa/Library/Application Support/Facebook/video/1.2.0.158/FacebookVideoCalling.app
              Microsoft Alerts Daemon:          Version: 14.3.9 - SDK 10.5
                        /Applications/Microsoft Office 2011/Office/Microsoft Alerts Daemon.app
              Microsoft AutoUpdate:          Version: 2.3.6 - SDK 10.4
                        /Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app
              Microsoft Chart Converter:          Version: 14.3.9 - SDK 10.5
                        /Applications/Microsoft Office 2011/Office/Microsoft Chart Converter.app
              Microsoft Clip Gallery:          Version: 14.3.9 - SDK 10.5
                        /Applications/Microsoft Office 2011/Office/Microsoft Clip Gallery.app
              Microsoft Database Daemon:          Version: 14.3.9 - SDK 10.5
                        /Applications/Microsoft Office 2011/Office/Microsoft Database Daemon.app
              Microsoft Database Utility:          Version: 14.3.9 - SDK 10.5
                        /Applications/Microsoft Office 2011/Office/Microsoft Database Utility.app
              Microsoft Document Connection:          Version: 14.3.9 - SDK 10.5
                        /Applications/Microsoft Office 2011/Microsoft Document Connection.app
              Microsoft Error Reporting:          Version: 2.2.9 - SDK 10.4
                        /Library/Application Support/Microsoft/MERP2.0/Microsoft Error Reporting.app
              Microsoft Excel:          Version: 14.3.9 - SDK 10.5
                        /Applications/Microsoft Office 2011/Microsoft Excel.app
              Microsoft Graph:          Version: 14.3.9 - SDK 10.5
                        /Applications/Microsoft Office 2011/Office/Microsoft Graph.app
              Microsoft Language Register:          Version: 14.3.9 - SDK 10.5
                        /Applications/Microsoft Office 2011/Additional Tools/Microsoft Language Register/Microsoft Language Register.app
              Microsoft Office Reminders:          Version: 14.3.9 - SDK 10.5
                        /Applications/Microsoft Office 2011/Office/Microsoft Office Reminders.app
              Microsoft Outlook:          Version: 14.3.9 - SDK 10.5
                        /Applications/Microsoft Office 2011/Microsoft Outlook.app
              Microsoft PowerPoint:          Version: 14.3.9 - SDK 10.5
                        /Applications/Microsoft Office 2011/Microsoft PowerPoint.app
              Microsoft Ship Asserts:          Version: 1.1.4 - SDK 10.4
                        /Library/Application Support/Microsoft/MERP2.0/Microsoft Ship Asserts.app
              Microsoft Upload Center:          Version: 14.3.9 - SDK 10.5
                        /Applications/Microsoft Office 2011/Office/Microsoft Upload Center.app
              Microsoft Word:          Version: 14.3.9 - SDK 10.5
                        /Applications/Microsoft Office 2011/Microsoft Word.app
              Miro Video Converter:          Version: 2.6 - SDK 10.0
                        /Applications/Miro Video Converter.app
              My Day:          Version: 14.3.9 - SDK 10.5
                        /Applications/Microsoft Office 2011/Office/My Day.app
              Open XML for Excel:          Version: 14.3.9 - SDK 10.5
                        /Applications/Microsoft Office 2011/Office/Open XML for Excel.app
              Plants vs:          Version: 1.0.40 - SDK 10.5
                        /Applications/Plants vs. Zombies.app
              RipIt:          Version: 1.6.2 - SDK 10.5
                        /Applications/RipIt.app
              SLLauncher:          Version: 1.0 - SDK 10.5
                        /Library/Application Support/Microsoft/Silverlight/OutOfBrowser/SLLauncher.app
              Solver:          Version: 1.0 - SDK 10.5
                        /Applications/Microsoft Office 2011/Office/Add-Ins/Solver.app
              SyncServicesAgent:          Version: 14.3.9 - SDK 10.5
                        /Applications/Microsoft Office 2011/Office/SyncServicesAgent.app
              UPlayBrowser:          Version: 1.0.1.23853 - SDK 10.5
                        /Library/Application Support/Ubisoft/Assassin's Creed Brotherhood/UPlayBrowser.app
    Time Machine:
              Mobile backups: ON
              Auto backup: YES
              Volumes being backed up:
                        Macintosh HD: Disk size: 464.96 GB Disk used: 414.09 GB
              Destinations:
                        Time Machine [Local] (Last used)
                        Total size: 698.32 GB
                        Total number of backups: 3
                        Oldest backup: 2013-12-20 18:10:54 +0000
                        Last backup: 2013-12-22 19:52:17 +0000
                        Size of backup disk: Too small
                                  Backup size 698.32 GB < (Disk used 414.09 GB X 3)
              Time Machine details may not be accurate.
              All volumes being backed up may not be listed.
    Top Processes by CPU:
                   9%          Transmission
                   4%          Dropbox
                   2%          WindowServer
                   2%          Dock
                   1%          Google Chrome
    Top Processes by Memory:
              123 MB          Google Chrome
              119 MB          iTunes
              102 MB          Dropbox
              87 MB          Google Chrome Helper
              66 MB          Finder
    Virtual Memory Statistics:
              148 MB          Free RAM
              995 MB          Active RAM
              859 MB          Inactive RAM
              1.03 GB          Wired RAM
              7.80 GB          Page-ins
              4.84 GB          Page-outs

    If you don't already have a current backup, back up all data before doing anything else. This procedure is a diagnostic  test. It changes nothing, for better or worse, and therefore will not, in itself, solve your problem. The backup is necessary on general principle, not because of anything suggested in this comment. There are ways to back up a computer that isn't fully functional. Ask if you need guidance.
    Third-party system modifications are a common cause of usability problems. By a “system modification,” I mean software that affects the operation of other software — potentially for the worse. The procedure will help identify which such modifications you've installed, as well as some other aspects of the configuration that may be related to the problem.
    Don’t be alarmed by the seeming complexity of these instructions — they’re easy to carry out. Here's a brief summary: In each of two steps, you copy a line of text from this web page into a window in another application. You wait about a minute. Then you paste some other text, which will have been copied automatically, back into a reply on this page. The sequence is copy; paste; paste again. That's all there is to it. Details follow.
    You may have started the computer in "safe" mode. Preferably, these steps should be taken while booted in “normal” mode. If the system is now running in safe mode and is bootable in normal mode, reboot as usual. If it only boots in safe mode, use that.
    Below are instructions to enter UNIX shell commands. They do nothing but produce human-readable output. However, you need to think carefully before running any program at the behest of a stranger on a public message board. If you question the safety of the procedure suggested here — which you should — search this site for other discussions in which it’s been followed without any report of ill effects. If you can't satisfy yourself that these instructions are safe, don't follow them.
    The commands will line-wrap or scroll in your browser, but each one is really just a single long line, all of which must be selected. You can accomplish this easily by triple-clicking anywhere in the line. The whole line will highlight, and you can then copy it.
    If you have more than one user account, Step 2 must be taken as an administrator. Ordinarily that would be the user created automatically when you booted the system for the first time. Step 1 should be taken as the user who has the problem, if different. Most personal Macs have only one user, and in that case this paragraph doesn’t apply.
    Launch the Terminal application in any of the following ways: 
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.) 
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens. 
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid. 
    When you launch Terminal, a text window will open with a line already in it, ending either in a dollar sign (“$”) or a percent sign (“%”). If you get the percent sign, enter “sh” and press return. You should then get a new line ending in a dollar sign. 
    Step 1 
    Triple-click anywhere in the line of text below on this page to select it:
    PB=/usr/libexec/PlistBuddy; PR () { [[ "$o" ]] && printf '\n%s:\n\n%s\n' "$1" "$o"; }; PC () { o=$(grep [^[:blank:]] "$2"); PR "$1"; }; PF () { o=$($PB -c Print "$2" | awk -F'= ' \/$3'/{print $2}'); PR "$1"; }; PN () { [[ $o -eq 0 ]] || printf "\n%s: %s\n" "$1" $o; }; { system_profiler SPSoftwareDataType | sed '8!d;s/^ *//'; o=$(system_profiler SPDiagnosticsDataType | sed '5,6!d'); fgrep -q P <<< "$o" && o=; PR "POST"; o=$(( $(vm_stat | awk '/Pageo/{sub("\\.",""); print $2}')/256 )); [[ $o -gt 1024 ]] && printf "\nPageouts: %s MiB\n" $o; o=$(kextstat -kl | grep -v com\\.apple | cut -c53- | cut -d\< -f1); PR "Loaded extrinsic kernel extensions"; o=$(launchctl list | sed 1d | awk '!/0x|com\.apple|org\.(x|openbsd)|\.[0-9]+$/{print $3}'); PR "Loaded extrinsic user agents"; o=$(launchctl getenv DYLD_INSERT_LIBRARIES); PR "Inserted libraries"; PC "cron configuration" /e*/cron*; o=$(crontab -l | grep [^[:blank:]]); PR "User cron tasks"; PC "Global launchd configuration" /e*/lau*; PC "Per-user launchd configuration" ~/.lau*; PF "Global login items" /L*/P*/loginw* Path; PF "Per-user login items" L*/P*/*loginit* Name; PF "Safari extensions" L*/Saf*/*/E*.plist Bundle | sed 's/\..*$//;s/-[1-9]$//'; o=$(find ~ $TMPDIR.. \( -flags +sappnd,schg,uappnd,uchg -o ! -user $UID -o ! -perm -600 \) | wc -l); PN "Restricted user files"; cd; o=$(find -L /S*/L*/E* {,/}L*/{A*d,Compon,Ex,In,Keyb,Mail/Bu,P*P,Qu,Scripti,Servi,Spo}* -type d -name Contents -prune | while read d; do ID=$($PB -c 'Print :CFBundleIdentifier' "$d/Info.plist") || ID=; ID=${ID:-No bundle ID}; egrep -qv "^com\.apple\.[^x]|Accusys|ArcMSR|ATTO|HDPro|HighPoint|driver\.stex|hp-fax|JMicron|microsoft\.MDI|print|SoftRAID" <<< $ID && printf '%s\n\t(%s)\n' "${d%/Contents}" "$ID"; done); PR "Extrinsic loadable bundles"; o=$(find /u*/{,*/}lib -type f -exec sh -c 'file -b "$1" | grep -qw shared && ! codesign -v "$1"' {} {} \; -print); PR "Unsigned shared libraries"; o=$(system_profiler SPFontsDataType | egrep "Valid: N|Duplicate: Y" | wc -l); PN "Font problems"; for d in {,/}L*/{La,Priv,Sta}*; do o=$(ls -A "$d"); PR "$d"; done; } 2> /dev/null | pbcopy; echo $'\nStep 1 done'
    Copy the selected text to the Clipboard by pressing the key combination command-C. Then click anywhere in the Terminal window and paste (command-V). I've tested these instructions only with the Safari web browser. If you use another browser, you may have to press the return key after pasting.
    The command may take up to a few minutes to run, depending on how many files you have and the speed of the computer. Wait for the line "Step 1 done" to appear below what you entered. The output of the command will beautomatically copied to the Clipboard. All you have to do is paste into a reply to this message by pressing command-Vagain. Please don't copy anything from the Terminal window. No typing is involved in this step.
    Step 2 
    Remember that you must be logged in as an administrator for this step. Do as in Step 1 with this line:
    PR () { [[ "$o" ]] && printf '\n%s:\n\n%s\n' "$1" "$o"; }; { o=$(sudo launchctl list | sed 1d | awk '!/0x|com\.(apple|openssh|vix\.cron)|org\.(amav|apac|calendarse|cups|dove|isc|ntp|post[fg]|x)/{print $3}'); PR "Loaded extrinsic daemons"; o=$(sudo defaults read com.apple.loginwindow LoginHook); PR "Login hook"; o=$(sudo crontab -l | grep [^[:blank:]]); PR "Root cron tasks"; o=$(syslog -k Sender kernel -k Message CReq 'GPU |hfs: Ru|I/O e|find tok|n Cause: -|NVDA\(|pagin|timed? ?o' | tail -n25 | awk '/:/{$4=""; print}'); PR "Log check"; } 2>&- | pbcopy; echo $'\nStep 2 done'
    This time you'll be prompted for your login password, which you do have to type. Nothing will be displayed when you type it. Type it carefully and then press return. You may get a one-time warning to be careful. Heed that warning, but don't post it. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    You can then quit Terminal. Please note:
    ☞ Steps 1 and 2 are all copy-and-paste — type only your login password when prompted.
    ☞ When you type your password, you won't see what you're typing.
    ☞ If you don’t have a password, set one before taking Step 2. If that’s not possible, skip the step.
    ☞ Step 2 might not produce any output, in which case the Clipboard will be empty. Step 1 will always produce something.
    ☞ The commands don't change anything, and merely running them will do neither good nor harm.
    ☞ Remember to post the output. It's already in the Clipboard. You don't have to copy it. Just paste into a reply    
    ☞ If any personal information, such as your name or email address, appears in the output of either command, anonymize it before posting. Usually that won't be necessary.
    ☞ Don't post the contents of the Terminal window.
    ☞ Don't paste the output of Step 1 into the Terminal window. Paste it into a reply.

  • How to get Implicit Dimensions/Dimension Values in the result set?

    Hi All,
    How does endeca return implicitly selected dimensions in the result set? For example, consider a dimension set up for Television data as below.
    Brand
    Samsung
    LG
    Philips
    Type
    LEDs
    LCDs
    Plasma
    Lets say, I refine the result set by brand, by selecting Philips. Now lets assume that there were 2 results returned for philips and both the results were of Type - Plasma. In this case, Endeca does not return the Type dimension in the result set, as we cannot drill down the 2 results further based on LED or LCD.
    How does Endeca return these implicit dimensions in the result set in such scenarios? Suppose if there was a requirement to show to the user that both the results were of Type - Plasma, how do we get this information from Endeca, by default?
    Thanks in advance :)

    How does Endeca return these implicit dimensions in the result set in such scenarios?Check out: Navigation.getCompleteDimensions() or Navigation.getCompleteDimGroups()
    http://docs.oracle.com/cd/E28910_01/PresentationAPI.622/apidoc/javadoc/navigation/index.html

  • Adding hard coded column values to a result set.

    DB version:10gR2
    Example from sample schema SCOTT
    select e.ename, e.empno, d.loc
    from
    emp e inner join dept d on (e.deptno=d.deptno)
    and e.ename like 'M%';
    ENAME           EMPNO LOC
    MARTIN           7654 CHICAGO
    MILLER           7934 DALLAS
    For every ename like 'MARTIN' the following two rows (hardcoded column values 001-985 and 003-745 ) should get created.
    PAY_TYPES   PAY_CODES               
       001           985               
       003           745    
       Everything else must remain same.
    The result set should look like the following. Here two rows got created for MARTIN and MILLER.Everything else remains the same
      ENAME           EMPNO  PAY_TYPES   PAY_CODES               LOC
      MARTIN           7654  001           985               CHICAGO
      MARTIN        7654  003           745                       CHICAGO
      MILLER           7934  001           985                  DALLAS
      MILLER           7934  003           745                  DALLAS
      How is this possible?

    Hello Scott,
    Try this,
    SELECT ENAME, EMPNO, PAY_TYPES, PAY_CODES, LOC
      FROM (SELECT K.*, ROW_NUMBER() OVER(PARTITION BY ENAME ORDER BY ENAME) ID
              FROM (SELECT *
                      FROM (SELECT ENAME, EMPNO, LOC
                              FROM EMP E, DEPT D
                             WHERE E.DEPTNO = D.DEPTNO
                               AND ENAME LIKE 'M%')
                     WHERE CONNECT_BY_ISLEAF = 1
                    CONNECT BY LEVEL <= 2) K)
    MODEL
       DIMENSION BY (ENAME, ID)
       MEASURES ( EMPNO, LOC, '000' AS PAY_TYPES, '000' AS PAY_CODES )
       RULES    ( PAY_TYPES[FOR (ENAME) IN (SELECT ENAME FROM EMP WHERE ENAME LIKE 'M%' ),1] = '001' ,
                  PAY_CODES[FOR (ENAME) IN (SELECT ENAME FROM EMP WHERE ENAME LIKE 'M%' ),1] = '985' ,
                  PAY_TYPES[FOR (ENAME) IN (SELECT ENAME FROM EMP WHERE ENAME LIKE 'M%' ),2] = '003' ,
                  PAY_CODES[FOR (ENAME) IN (SELECT ENAME FROM EMP WHERE ENAME LIKE 'M%' ),2] = '745' )   Regards,
    Christian Balz

  • How to get the table name of a field in a result set

    hi!
    i have a simple sql query as
    select tbl_customerRegistration.*, tbl_customerAddress.address from tbl_customerRegistration, tbl_customerAddress where tbl_customerAddress.customer_id = tbl_customerRegistration.customer_ID
    this query executes well and gets data from the database when i get ResultsetMetaData from my result set (having result of above query) i am able to get the field name as
    ResultSetMetaData rsmd = rs.getMetaData();//rs is result set
    String columnName = rsmd.getColumnName(1);
    here i get columnName = "Customer_id"
    but when i try to get the tabel name from meta data as
    String tableName = rsmd.getTableName(1); i get empty string in table name....
    i want to get the table name of the respective field here as it is very important to my logic.....
    how can i do that.....
    please help me in that regard as it is very urgent
    thanks in advance
    sajjad ahmed paracha
    you may also see the discussion on following link
    http://forum.java.sun.com/thread.jspa?threadID=610200&tstart=0

    So far as I'm aware, you can't get metadata information about the underlying tables in a query from Oracle and/or the Oracle drivers. I suspect, in fact, that the driver would have to have its own SQL parser to get this sort of information.
    I'm curious though-- how do you have application logic that depends on the name of the source table but not know in the application what table is involved? Could you do something "cheesy" like
    SELECT 'tbl_customerRegistration' AS tbl1_name,
           tbl_customerRegistration.*
    ...Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • UNION ALL / UNION in returning result set

    I cannot find an official Oracle doc states that
    select * from table_1
    UNION ALL
    select * from table_2;
    will list the result from table_1 first, like:
    <result set from table_1>
    <result set from table_2>
    But it seems this is the way. If remove "ALL", it will not quarentee the result set of table_1 will come before the result set of table_2 because of the sorting.
    Could someone offer an answer? Thanks.
    Zac

    two comments...
    1) Without the code (and a perfect understanding of it), it may be very difficult to create a case where the result is different from what you usually find. We can expect more powerful use of union all (with Parallel Query, because the optimizer does not examine all the different permutations or whatever) may behave differently from what you guess
    2) It can (and, of course, will) change in a future release because of new algorithms. There are well known (for example aggregate=sort) things that have changed with things like HASH based algorithms. Unless you want your code to provide wrong results because a patch has changed a "supposed" behaviour, this is probably a good practice to tell what you want in your SQL Query (and order by = sort)
    I think I read Thomas Kyte saying : "Whatever you can say about Oracle Database, it is probably true. What is difficult is finding in which version it is the case ! If it is not... wait for the next release" (I'm sorry if he didn't say that... he could have)
    I know I didn't answer your question but it is just a 2 cents comment. Best Regards,
    Gregory

  • SSRS Line graphs, change the axis maximum and minimum by month, and change data series from calendar year to financial year

    I am using SSRS and I cannot access SQL server to answer my problem, so the solution needs to be done via SSRS only.
    I am currently trying to graph some data. The problem is, the months on the X axis are aligned by calendar year. I need the first month to commence with July, with the last month on the axis to be June. This also means that the year series need to be changed
    from calendar year to Australian financial year.
    Screenshots are provided in the comments.

    Hi Northern,
    Per my understanding that you want to show the month in the x axis as the order of the financial year(7,8,9,10...4,5,6) and also display the year in the series group as the financial year, right?
    I have tested on my local environment and we can modify the query in the sql to get the financial year value based on the fields of Calendar year, details information below for your reference:
    1. Modify the query as below:
    SELECT
    Calendar_Date,CASE WHEN MONTH(Calendar_Date)>=7 THEN
    YEAR(Calendar_Date)+1
    ELSE YEAR(Calendar_Date) END AS Financial_Year,
    MONTH(Calendar_Date)as Financial_Month,
    Billing_Amount
    FROM TableName
    order BY
    Calendar_Date
    2. Add the "Billing_Aomount" in the Value area, "Financial_Month" in the Category group area and "Financial_Year" in the Series group area.
    3. Right click the  "Financial_Month" under the Category group to select the "Category group properties",click the sorting and add below expression in the Sort by to specify the order for the month in the x-axis:
    =switch(Fields!Financial_Month.Value="7",1,Fields!Financial_Month.Value="8",2,
    Fields!Financial_Month.Value="9",3,Fields!Financial_Month.Value="10",4,
    Fields!Financial_Month.Value="11",5,Fields!Financial_Month.Value="12",6,
    Fields!Financial_Month.Value="1",7,Fields!Financial_Month.Value="2",8,
    Fields!Financial_Month.Value="3",9,Fields!Financial_Month.Value="4",10,
    Fields!Financial_Month.Value="5",11,Fields!Financial_Month.Value="6",12)
    4. Preview you will get the sample chart display as below according to my sample data:
    If you still have any problem, please feel free to ask.
    Regards
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • SharePoint Calc Column - How to Find and Replace ANY & ALL Values with Something Else

    Haven't found a solution on this even though it seems like it should be cut and dry.
    I have a column containing characters "-" (e.g., XXX123-123-fjhrh-sdafsdfsd). I want to find every "-" and replace it with "@". Seems easy but so far haven't found a solution. My calc column always seems to stop at the first
    occurence of "-" and only replace that one. Seems every forumula wants you to tell SharePoint where to start (position). You can't simply tell SharePoint, Find this "-" ALL OCCURENCES and replace with this "@" ALL OCCURENCES.
    I don't have the option of saying start at this position because my data is not the same in every cell/field (e.g., number of characters).
    Closest I've gotten is this:
    =REPLACE([IN THIS COLUMN],FIND("-",[IN THIS COLUMN]),LEN("-","@")
    RESULTS:
    XXX@123-XXX-123

    Hi JJSHAREP,
    The formula only works when there are only three "-" in the column value, and the formula will fail if there are more than or less than three "-" in the column value.
    I recommend to use Jquery code to replace the characters in the column called IN THIS COLUMN in the UI:
    <script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    $(function () {
    var Index=0;
    $(".ms-listviewtable tr th").each(function(i){
    if($(this).find("div").attr("name")=="IN_x0020_THIS_x0020_COLUMN"){
    Index=i;
    $(".ms-listviewtable tr").each(function(i){
    if(i>0){
    var value=$(this).find("td").eq(Index).text();
    var value1=value.replace(/\-/g, '@');
    $(this).find("td").eq(titleIndex).text(value1);
    </script>
    Best regards.
    Thanks
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Spaces get confused and slow it all down

    Has anyone else had trouble with Spaces losing the plot? I've found Microsoft Office in particular sometimes opens a document but refuses to actually show it, so somehow the space isn't switching. Also found a reluctance to move to the finder when clicking on the desktop. It all seems to get a bit stuck. So after losing patience and deleting my spaces and all the app designations, I just realised how slow and sticky the machine has been. With Spaces deactivated Leopard is a pleasure to use and as snappy as, dare I say it, OS 9! Anyone got any tips on making spaces work better? Or does it just need some development?

    Just wanted to chime in and say that I've had a similar experience with Spaces. I often have 10 - 15 applications open at a time, so I thought this would be a nice way to unclutter things a bit. Unfortunately, it seemed that different actions took much longer to complete. Specifically when working and switching between Adobe CS3 programs. I still only have the 2GB of RAM that originally came with the machine, so maybe it's simply a matter of boosting the RAM.

  • REST url to get titles and description for all the lists in HOST WEB.

    What should be the REST url to get specific prperties for all the list in host web for SharePoint Hosted Apps.

    Hi,
    We can use the REST URI below:
    http://myAppweburl/_api/web/lists?$select=Title,Description
    More information:
    How to: Complete basic operations using SharePoint 2013 REST endpoints
    http://msdn.microsoft.com/en-us/library/office/jj164022(v=office.15).aspx
    Best Regards
    Dennis Guo
    TechNet Community Support

Maybe you are looking for

  • Until it "Works With iPhone"

    While you're waiting for those "Works with iPhone" 3rd-party devices to show up on the shelves, these two suggestions may help (#2 is the big one): 1) By now you've probably figured out that you can make almost any headphone plug fit the iPhone by re

  • Cars doesn't run

    I'm a new user to the mac world, though I've been in the Windows world for years. My son has the game "Cars", based upon the Pixar movie of the same name. It is suppose to work on the Mac, but doesn't. I installed it and when I try to run it, I get a

  • Installationsproblem ny dator

    Hej Jag har nyss bytt dator till en Imac. I den har jag även installerat, Paraelles och Windows 8.1 nyckel. När jag nu försöker installera Adobe Creative Suite 5 Design Standard, så får jag meddelande att det dels inte finns tillräckligt minne för In

  • How to import mpeg files downloaded from a Google Drive?

    I recently downloaded 18 large clips of a recital which were in .mpeg format. iMovie refused to import any of them. Is there a way to do it and make a movie out of them? The combined files total almost 2 GB. Thanks.

  • Help with Rendering/Finalizing Project Please?

    Hi, I am so new to this entire Adobe and video making that I've spent the last few hours pulling hair literally.  I am hoping that some of you experts can take some time to give this novice some much needed guidance.  Okay, I'm begging! I recorded a