Measure Variable doesn't sum correctly in Crosstab

I've got quite a bit of data that I would like to sum up at an individual account level.  One of the data points being tracked is number of location changes.  In the universe itself, I've created locationChange as a measure with the sum projection function.  This is nothing more than a reflection of the locationChange field in the source table which contains a 1 if there has been a location change.  Easy enough.
The complexity comes when there are only certain times that a locationChange truly qualifies as a location change based on business rules which are subject to change often, so, at the report level, I've created a variable measure called RealChange which, based on today's logic sets the value to 1 if the time between changes >15 minutes.
formula:
realChange =if(locationChange = 1 and locationtime>15;1;0)
Here's a for instance
acct
locationtime (mins)
locationChange
RealChange
111
3
1
0
111
50
1
1
111
145
1
1
If I use the sum function on the realChange column I get 2.
However, if I turn this into a crosstab, I get:
acct
locationChange
RealChange
111
3
1
RealChange should be 2.
I've tried to edit the formula of RealChange in the crosstab to =sum(RealChange) but no matter what I do, it only ever displays 1.
I've tried to create a variable that says sum([realchange] in ([acct])) but that still only yields 1
I would hate to have the users have to export all of the detail to excel to do a pivot but right now that's the only way I can think of to get the correct total per account.
Can someone help me figure out what I'm doing wrong?
Thank you in advance!

Hi Laura,
Are getting expected result while displaying the result in a vertical table?
I believe you would be using the dimensions in the table as =[Acct], =Sum([Location Change ]) and =Sum([real change]). Please correct me if I am wrong
I can see expected data both in vertical table and cross table when tested but I have not tested this on BI 4.0 SP4 as I do not have this currently available but will do test this on SP4 if required. (Tested on BI 4.1)
Also have you tried using ForEach([location time]) along with Sum([real change])?
Regards,
Manpreet

Similar Messages

  • Actual - Previous Year not summing correctly

    Hi,
    I've tried two different MDX expressions to return the Actual GSV for this period last year.  They both work for individual periods but they don't sum correctly.
    Ie if you review the results for several periods in Excel then as long as the periods appear across or down the page the results are correct. However if Period is the Page Grouping (the Filter) then the result is wrong.
    The first expression doesn't return a total at all:
    Create Member CurrentCube.[Measures].[Actual - Gross Sales PY]
    As 
    ([Measures].[Actual - Gross Sales], 
    ParallelPeriod(
    [Date].[Period Hierarchy].[Fin Yr],1,
    [Date].[Period Hierarchy].currentmember)),
    NON_EMPTY_BEHAVIOR = { [Actual - Gross Sales] }, 
    VISIBLE = 1 ,  ASSOCIATED_MEASURE_GROUP = 'Monthly Sales Forecast'; 
    This version sums up all periods not just the two I've selected:
    Create Member CurrentCube.[Measures].[Actual - Gross Sales PY expt]
    As 
     Sum(EXISTING [Date].[Period Hierarchy].[Yyyy Period].MEMBERS,  
     ( ParallelPeriod( [Date].[Period Hierarchy].[Fin Yr],  
                       1,  
                       [Date].[Period Hierarchy].currentmember  
     ,[Measures].[Actual - Gross Sales])),
    NON_EMPTY_BEHAVIOR = { [Actual - Gross Sales] }, 
    VISIBLE = 1 ,  ASSOCIATED_MEASURE_GROUP = 'Monthly Sales Forecast'; 
    Any help would be much appreciated!

    Hi Walt,
    The “.CurrentMember” function doesn't handle the multiple members, it means the MDX cannot handle a multi-select in Excel. 
    If we are use SSRS report tool which allow us to pass a string into MDX query, it can hanlde multi-select request to get expected data. Here are some related threads about this topic for your reference, please see:
    Sum the same period of this and previous year: http://social.technet.microsoft.com/Forums/en-US/7d9ca803-faf1-4879-a4da-919b77907af8/sum-the-same-period-of-this-and-previous-year?forum=sqlanalysisservices
    SSAS MDX Get Previous Year data for a given date range, and day to day:
    http://social.technet.microsoft.com/Forums/sqlserver/en-US/92945862-371a-45d0-a5cb-648b2a4180ab/ssas-mdx-get-previous-year-data-for-a-given-date-range-and-day-to-day?forum=sqlanalysisservices
    Furthermore, I found a article regarding multi select – friendly time calculations in Analysis Services for your reference. Please see:
    http://ditchiecubeblog.wordpress.com/2013/06/16/multi-select-friendly-time-calculations-in-analysis-services/
    Regards,
    Elvis Long
    TechNet Community Support

  • Report parameters doesn't appear correctly

    I have a report .rdl under Visual Studio2010 and sql server2008.
    the report language is arabic and all the fields appears correctly, but the parameters doesn't appear correct it shows stange characers(not question marks) and all the remaining fields show arabic characters correct.
    i run the report on internet explorer9.
    i don't know what is the problem, i searched alot and there is nothing new. what can i do??

    Hi nermo,
    You have mentioned that the report is work fine on Chrome. It may be a compatibility issue of IE9. At this time, I suggest that you first check this issue in IE9 Compatibility View mode. Please refer to the following steps:
    1. Launch the IE 9, and press Alt+T to select the Tools.
    2. Click Compatibility View settings.
    3. Check the “Display intranet sites in Compatibility View” option, and click Close.
    Reference:
    Fix site display problems with Compatibility View 
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • Game Center doesn't work correctly

    Game Center on iPod Touch 2nd Gen doesn't work correctly under iOS 4.2.1
    It shows wrong language (Englist but not my native language. My region setting is right and the system language right too.)
    Besides, the "Games" page only has a button "Find Game Center Games", while it should show my Game Center Games.
    The Friends page shows all my friends. But when I press a friend the sub page doesn't show the game my friend and I have in common.
    I've restored my device several times, but it didn't help.
    How to solve it?

    I've had exactly the same problem on my 2nd gen since early May when it just stopped working out of the blue.
    There are a few threads here on the subject. I believe that every 2nd gen is affected as I've yet to hear a 2nd gen owner say that theirs works.
    Other than waiting for Apple to fix it I don't think there is a solution.

  • AddChild doesn't work correctly in 11.9

    comparing the two releases listed below, somehow my Flash program doesn't work correctly on the latest version anymore, nothing was changed in my program but after upgrading to the latest Flash Player, it doesn't work properly anymore, specifically, the items I add through the addChild method doesn't appear properly, was there any changes in between these versions that could have affected the addChild behavior? I'm testing with Windows  7 IE debug version and I see no script errors
    Released 10/8/2013) Flash Player 11.9.900.117 (156.2 MB)
    (Released 9/24/2013) Flash Player 11.8.800.175 (Win IE only) (50 MB)

    Could you please open a new bug report on this over at bugbase.adobe.com?  When adding the bug, please include sample code, test url or a test swf so we can quickly test this out internally.  If you'd like to keep this private, feel free to email the attachment to me directly ([email protected]). 
    Once added, please post back with the bug URL and I'll investigate internally.
     

  • IPhoto doesn`t work correctly with german "umlaut" (ä,ö,ü) in keywords

    iPhoto doesn`t work correctly with german "umlaut" (ä,ö,ü) in keywords. They get to ä̈,ö̈, ü̈ when I write the keyword a second time. Can anybody tell me why. Thank you. Heinz

    It apparently does not like non-standard English characters - use A-Z and 0-9 adn you should be OK
    report to Apple - iPhoto menu ==> provide iPhoto feedback
    LN

  • After upgrade my iphone 4 to IOS6, sound doesn't work correctly

    After upgrade my iphone 4 to IOS6, sound doesn't work correctly.
    During a phone call, there is no sound. But if I turn on the speaker, there is sound. itune works fine since it's on the speaker.

    Dear All
    i have done the same activity ( buy a new iphone 4 -> upgrade to ios5 - > configure email) with success-
    than when i start to move the contacts from old mobile to iphone (using the microsim) i receive the same crash
    in disgnosis e use i saw 2 dump with this title 'latestCrash-Preferences.plist and LatestCrash.plist. in each file the date is the same and i read:
    Exception Tyle: EXC_CRASH (SIGABRT)
    Exception code: 0x00000000, 0x00000000
    Chrashed Thread: 6
    in thread 6: name: Dispatch queue:
    com.apple.addressBookUI.ContactsSettingPlugin
    and thaan a lot of data.
    Have you any idea?
    thank in advance
    Fabio

  • Translation from CS5 to Cloud doesn't  work correct, navi and linked images are broken.

    Translation from CS5 to Cloud doesn't  work correct, <navi> and linked images are broken.
    The data of CS5 was created at another PC. I installed Cloud version into two different PC. One has had the site data since dreamweaver CS5 and it works correct in Cloud version. Another PC got the site data from remote server and it doesn't work correct. <navi> and linked image are broken.

    Another PC got the site data from remote server and it doesn't work correct. <navi> and linked image are broken.
    This implies your site is not properly defined in DW.  Go to Site > Manage Sites.
    Or simply go to your other installation of DW and export the site definition file from Manage Sites.
    Save it to a flash stick or other removable drive.  Then import the STE file into your 2nd installation of  DW.
    Nancy O.

  • ITunes 10.4 full screen with Win7-64bit doesn't work correctly.

    iTunes 10.4 full screen with Win7-64 doesn't work correctly. I have the Windows taskbar on the left side of my screen. Maximized iTunes is panned to the left.

    Same issue here. When the Windows taskbar is position on the top of the screen and then the iTunes windows is maximised, it's position is as if the Windows taskbar is at the bottom of the screen so the top of the iTunes window sits under the taskbar.
    For those wanting a workaround, hold shift and right click the iTunes icon in the taskbar/quick launch bar and click restore, at least then you can adjust it to be full screen manually.
    System:
    Windows 7 Ultimate x64
    iTunes 10.4
    ATI 5750 video card

  • Measure divided by Detail in a Measure Variable

    Hey Guys,
    I have a measure variable in WEBI report. When i use variable in a table, i get a #Multivalue error in some of the cells.
    When i saw the formula for the measure variable, it was something like this.
    Variable_Name=Round(([Measure Object]/[Detail Object]);2)
    I was thinking whether this formula is right logically. I think we cannot divide a Detail object or vice versa.
    Please share your thoughts on this and the error also.
    BOXI R3.1
    SQL Server
    Thanks
    Shreyas

    A detail has an assumed 1:1 relationship with its owning dimension. If someone has ignored this rule and tried to get round a merged dimension which they logically shouldn't then you'll be stuck with it.
    Measure/Measure is the logical option
    Measure/Dimension is fine too. Such a scenario would be Total Sales/Unit Price to get Quantity (not that you'd do that, you'd bring Quantity in from the query but it can be done.
    The definition of the detail would be useful in this instance together with understanding which queries are from which query and how you get get your solution.

  • WRT54G version 6 - router setup screen via Internet Explorer 7 doesn't display correctly

    Hi,
    I've just set up my WRT54G router.  I'm able to connect to the internet and I'm able to connect directly to the router via IE but the setup screen doesn't display correctly.  I've tried resetting the computer and updating the firmware but it still doesn't display correctly.  Almost all of the text is missing except for the Linksys logo and a few drop down menus.  Any help/suggestions would be great, thanks.

    Hi gang,
    There a number of things that you can do to solve this problem but most of them involve changing the rules that you have already configured in your ZoneAlarm profile. My preferred solution is to:
    -unplug your router from the WAN (why not?)
    -turn off zone alarm
    -access your router's administration page at http://192.168.1.1
    -find the admin page where you can switch admin access from http to https
    --- **save your changes !!**
    -reboot your router
    -plug the WAN cable back into your router
    -turn ZoneAlarm back on
    -access your admin page at https://192.168.1.1 ( note the 's')
    Bob is your sister's brother! Your admin page should work as it is supposed to. Your router and ZoneAlarm should be playing nicely together. You haven't borked your finely tuned zonealarm rules. You were going to bookmark your admin page anyway, and if you want to allow remote administration, you would want to use https anyway. Nothing is broken and you fixed two things. "Its a good thing."Message Edited by ubuibi on 12-27-200609:10 AM
    There are really only 10 kinds of people in the world;
    Those who understand binary and those who don't.
    ubuibi

  • [SOLVED] urxvt doesn't display correctly some special characters

    Hello everyone,
    I have a weird issue with urxvt. For some reason it doesn't display correctly some special character.
    Here is a comparison between xfce4-terminal and rxvt-unicode  (I used theses characters as exemple):
    xfce4-terminal :
    urxvt :
    And here is my .XDefaults file (without the color and the plugin part, since it's unrelevant):
    !Font
    URxvt.font: xft:PragmataPro:pixelsize=11:antialias=false
    !General
    URxvt.scrollBar: false
    URxvt*imLocale: fr_CH.UTF-8
    URxvt.saveLines: 5000
    URxvt.geometry: 95x26+50+50
    Has someone an idea what the problem could be?
    Thank's in advance.
    Last edited by mwm (2013-11-13 13:15:48)

    This is what I think is happpening.
    PragmataPro may not contain those glyphs.  It appears to have a wide array of glyphs but it is not unicode complete.
    Xfce-terminal is a vte terminal.  When a glyph cannot be found in the desired font, it will find the glyph in the 'closest' font.  Urxvt will only use the glyphs in the font or fonts specified.  If PragmataPro does not contain the glyphs, urxvt will display boxes.
    You can give urxvt a series of fonts to search. It will search for a glyph through the listed fonts in the order you specify.  Here's an example from my urxvt configs:
    urxvt*font: xft:DejaVu Sans Mono:style=Book:antialias=false:size=8, \
    xft:WenQuanYi Bitmap Song:size=8, \
    xft:FreeSerif:style=Regular, \
    xft:unifont:style=Medium:antialias=false
    I couldn't use FreeSerif or unifont as a main font, but for an occasional glyph, it works for me.  This file, http://www.cl.cam.ac.uk/~mgk25/ucs/exam … 8-demo.txt, can be displayed in urxvt correctly, with only a few unknow glyphs showing as boxes in the Amharic section.

  • Vim doesn't display correctly utf8 characters

    Hi,
    I don't use an utf8 locale, but some files (like latex sources of my reports) are in utf8 for compatibility with other pcs. Since a while, but i cannot recall exactly when (normally, I don't use vi for latex), it doesn't display correctly such files. Emacs does, kate does, but not vim. I tried to set encoding and file-encoding in vim, but it didn't fix the issue. Any clue? Is vim broken?
    Related question. It is safe to switch to utf8 locale (I mean, in rc.conf) months after the installation?
    domanov

    lang2 wrote::set enc=utf8
    It didn't work (as i said in my previous post).
    I changed from it_IT@EURO to it_IT.UTF8 in rc.conf, restarted and now vim is fine (the corresponding line in locale.gen was already uncommented and I rerun locale-gen just to be sure). Now man pages are really ugly, even worse if I erase the option -Tlatin1 from NROF line in man.conf (as suggested in the man.conf manual). Ok, let's deal with that, now.
    Do I risk to broke anything more important? Shall i convert to utf-8 all the text files in /home, /etc and so on??

  • Youtube doesn't display correctly since I installed latest version of firefox

    youtube doesn't display correctly anymore...adobe flash has been updated and java is enabled. This is what it looks like now...
    "Loading...
    Videos
    Music
    Shows
    Trailers
    Live
    All Categories
    Categories "

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • [BUG]: af:commandButton rendered with requestScope variable doesn't work

    This took me two days to figure out, and I wonder if it is a bug:
    I have a page that can be navigated to on two occassions, let's call them "left" and "right". I want the page to know what side I came from, so I set a requestScope variable on the buttons that navigate to this page, a bit like this:
    <af:commandButton action="toPage">
      <af:setActionListener from="left" to="#{requestScope.sideFrom}"/>
    </af:commandButton>I have two buttons on the page, one is to navigate back to the left and one to navigate back to the right. Only one is rendered, depending on the requestScope.sideFrom variable.
    One says rendered="#{requestScope.sideFrom eq 'left'}" and the other says rendered="#{!requestScope.sideFrom eq 'left'}"
    Only one button works, namely the one for which the rendered property evaluates to true <b>when the button is pressed</b>!! My requestScoped variable doesn't exist anymore when I press the button to navigate back so it's behavior is changed. How weird is that?
    Should I file a bug?
    I refuse to make it a sessionScoped variable and change it back with the return buttons Imho this is what requestScope is for.
    I am on JDeveloper 11.1.1.6

    Wendy,
    To amplify what Timo rightly says: as JSF goes through its merry lifecycle, one of the steps is to rebuild the component tree in memory. When you use the rendered property, that particular component is not in the component tree - it's as if it doesn't even exist according to JSF. Then, when it comes time to deal with events, the event isn't seen or is ignored (I don't know which) because JSF doesn't think that component is present. As Timo also rightly says - this behaviour is why the "visible" attribute was created.
    John

Maybe you are looking for

  • Battery recall serial number differ on two Apple pages.

    I went to Apple's site and there is different serial numbers listed for iBooks. I have three with listed ZZ serial # and won't accept my numbers. Anyone else have problems with the ZZ Page one lists ZZ** numbers [support.apple.com] And page two does

  • Co-ordinates of active page in active doc

    I want to get the co-ordinates on the page, for the center of the active document screen. Also which page it is. Thanks in advance for any help on my first acrobat tryout (though I have done quite a bit of InDesign Scripting)

  • Front Row shuts down when i'm marking a 1 gb movie

    I have just converted Kill Bill vol. 1 (1 gb), and it's working fine in Quicktime, when i'm opening the movie from finder. But when i mark the movie in Front Row, Front Row shuts down. What is the problem?

  • Adding PCI : USB2 / FW400 / FW 800 Cards

    Hello I need some more kind advice and expertise please ! I have now found the need to expand and add a couple more USB2 / FW400 / FW 800 ports to my Mac which has PCI slots ! Are certain generic brands of PCI card of higher quality than others ? ie

  • Satellite L450-171 - Dual boot with Windows 7 and Windows XP

    Hello all, I bought a Satellite L450-171 with Windows 7 pre-install. For reasons of compatibility, I installed Windows xp on on another partitition of the computer. But in the starting up, I do not see both operating systems. I see only Windows xp. P