"Totals calculation issue" when I filter member used in an scope calculation with descendant aggregation

Hello everybody
I have a Geography dimension (Country -> State -> City) and 2 related Fact Tables: "Revenues" (with measure Revenue) and "Revenue Goal" (with measure Revenue Goal)  and  created a dummy measure into the Revenue Fact table
(in the dsv) to calculate the Revenue not planed (by city) using Scope.
The calculated measure "NotPlannedRevenue" is defined using a Dummy measure on the Revenue FacTable with null like default value, later using Scope I have calculated the values in order to get correctly Totals Values over the a Geography hierarchy
which is working properly. The MDX script for the measure is 
SCOPE([Measures].[NotPlannedRevenue]);
SCOPE ([Geography].[GeoHier].[City].Members);
THIS=iif([Measures].[Revenue Goal]=0 , [Measures].[Revenue] ,0 );
END SCOPE;
SCOPE( [Geography].City.[All]);
This =sum( Descendants([Geography].[GeoHier].CurrentMember,,LEAVES),[Measures].[NotPlannedRevenue]);
END SCOPE;
SCOPE( [Geography].State.[All]);
This =sum( Descendants([Geography].[GeoHier].CurrentMember,,LEAVES),[Measures].[NotPlannedRevenue]);
END SCOPE;
END SCOPE;
When I check the data,  I get "Totals" well calculated.
The issue is when I filter Cities from the Geography dimension, the total values are not being calculated using only the selected cities. I have problems in the totals by City, State, Country.
The total for the State "Karnatak" must by "0" and the grand total must be "10".
Please someone could help me to solve the way which I must write this MDX or maybe I have to use another strategy.
Thanks in advanced.
Gelder de la Ossa

You shouldn't need the second and third SCOPE statements (on the All members of City and Country) if the first one has been configured correctly - what happens if you remove them?
Chris
Check out my MS BI blog I also do
SSAS, PowerPivot, MDX and DAX consultancy
and run public SQL Server and BI training courses in the UK

Similar Messages

  • Some issues when consuming RFC2 model using WebDynpro Java CE 7.11

    Hi Experts ,
    I'm using Web Dynpro for Java to develop our project. I have issues when I use RFC 2 model to call BAPI function . I already create the RFC 2 model successfully to call one PO BAPI function --- BAPI_PO_GETDETAIL. The whole project build and deploy successfully. At run time, it will call the execute() function of the model object. It also works fine and get the return values.
    I just want to get two return objects : PO_Items and PO_Item_Schedules .
    So far, every thing works fine. But when I want to iterate the PO_Items node and get each property value of current element, the following error occurs :
    com.sap.tc.cm.base.exception.BaseModelRuntimeException: Class 'java.lang.String' of new attribute value is not assignment compatible for attribute 'Prnt_Price' of type 'boolean' in model class 'com.sap.demo.localwd.qaspomodel.Bapiekpo'
        at com.sap.tc.cm.base.model.BaseGenericModelClass.setAttributeValue(BaseGenericModelClass.java:306)
        at com.sap.tc.cm.arfc2.model.ARFC2GenericModelClass.unmarshalFromJCoRecord(ARFC2GenericModelClass.java:287)
        at com.sap.tc.cm.arfc2.model.ARFC2ModelObjectCollection.doUnMarshalAt(ARFC2ModelObjectCollection.java:97)
        at com.sap.tc.cm.arfc2.model.ARFC2ModelObjectCollection.get(ARFC2ModelObjectCollection.java:120)
        at com.sap.tc.webdynpro.progmodel.context.ModelElementList.getElement(ElementList.java:1726)
        ... 72 more
    I use the same way to iterate PO_Item_Schedules element. It also works fine. Therefore, I don't know why this error happens?

    Hi Experts,
    I continue this thread because it seems that I have the same problem as the one asked by Wester Wei.
    I'm developping an application on NWDS using CE 7.11 (I've learned RFC2 with the tutorial [here|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0b102ea-efff-2b10-b3aa-d9e84a2c6bb6?overridelayout=true] ). The problem seems to come from the RFC2 Model, but I just import it (and I can't modify it afterwards, because it is a read-only model).
    So, you advise to "declare one boolean variable and assign Prnt_Price to that variable." or to "Explicity convert boolean to string.", I think you are right, but I don't know how to do that in my app (in the component controller ?). Therefore, the attribute that occurs the problem is in the context outputs, to I don't know I will be able to affect it before calling the BAPI.
    Could you tell me how to fix this problem without modifying the model (because it's read-only) ?
    Thank you for advance,
    Louis

  • Report Title and Text Area issue when exported to pdf using Viewer

    Hi there,
    We are using OracleBI Discoverer Version 10.1.2.55.26
    We have reports that displays Report title containing the following
    - Report Title
    - Runt Date and Time
    - Page No
    And text area which displays 'Last Page'
    Following properties are set at the worksheet level using page setup
    Report Title --> 'Print on every Page'
    Text Area --> 'Print on last page'
    The report when exported to PDF using Discoverer plus works fine and displays report title and text area as defeined.
    But when we try to export the same report to pdf from Discoverer viewer, it displays
    - Report title on first page only.
    - text area on all pages
    All our users accesses report using discoverer viewer so we cannot open discoverer plus to them.
    Is there a solution which will enable us to export the report in pdf using discoverer viewer and displays the same output as discoverer plus.
    Please let me know... If you have any questions then please feel free to ask.
    Thanks in advance for your help...
    Manish

    but when opened on other os x machines some text is colored differently than it should be
    Well, if typographic objects are colour managed, the colour appearance is dependent on the source ICC profile that describes the colourants in the typographic objects and the destination ICC profile that describes the colours the display is able to form and the RBC colourant combinations that will form those colours.
    In general, typographic objects should have special treatment, since the expectation is not that typographic objects should be colour managed, but that typographic objects should simple be set to the maximum density of dark. On a display, that is R=0 G=0 B=0 and on a seperations device (a lithographic press) that is C=0 M=0 Y=0 K=100.
    If for some reason typographic objects are colour managed, and if the ICC profiles for the displays are off by half a mile or more in relation to the actual state of the display system, then the colours will not be the same. On the other hand, if those displays are calibrated and characterized, then the colourants will be converted to form the same colours on the displays.
    /hh

  • Issue when i try to use IMMCP3.

    I have changed the existing values of a WBS in CJ40 & made one of the WBS value to ZERO. But when i try to use IMCCP3 the value of ZERO WBS is not getting copied to the Budget but instead it is showing the Previuos values.
    Before Changing the values in CJ40.
    WBS A - 16000
    WBS B - 0
    WBS C - 0
    After changing Values in CJ40
    WBS A - 0
    WBS B - 8800
    WBS C - 7200
    After Executing the IMCCP3 the WBS with ZERO is not getting updated....i have seen the Budget Reports. It shows as
    WBS A - 16000
    WBS B - 8800
    WBS C - 7200
    Please help me in getting rid of this 16000 value in the WBS.... Thanks

    Hi,
    When you used 1st time IMCCP3 the plan value become your budger for WBS A as 16000.
    When you Chnaged Plan Value For  as
    WBS A - 0
    WBS B - 8800
    WBS C - 7200
    and run IMCCP3 , the sytem takes that there is no value to transfer for WBS A, there is only Value for WBS B and WBS C.
    at that time Your already budget value remain unchanged aas 16000.
    IF you dont have to budget for WBS A as 16000, then remove budget by using cj38 from WBS A.
    Thanks

  • OAM- Apache Reverse Proxy issue when Form Authenticaion is used

    Hi All,
    Customer is using Apache 2.0.65 as a reverse proxy server. OAM has been integrated with OAS. A WebGate has been installed on OHS in infra.
    When a protected resource (portal) is accessed, a login form appears. After entering the correct credentials, it does not go to the resource, instead gives displays some Header Variables on the Browser, instead of actual resource.
    This happens only when a resource is protected with Form Authentication Scheme and while using with reverse proxy. The same Form Authentication scheme works without reverse proxy. With Basic LDAP Authentication, the same resource perfectly works even when reverse proxy is used.
    Any suggestions?
    Thanks in advance.
    Regards,
    Amol

    Hi Amol,
    Check the passthrough parameter in your form scheme. If this is set to yes, what you are asking OAM to do is to pass through to the form action instead of the URL the user originally requested. I know this still does not explain why things work when the reverse proxy is not used - but it might make sense if you actually have 2 form schemes and when you access the resource via the reverse proxy, the policy domain/policy in question actually invokes the scheme which has passthrough enabled. You could ascertain this via the access tester by trying the reverse-proxied URL and direct URL.
    -Vinod

  • Can I use the Ethernet Port for a computer when it is also used as a wireless network with an Airport Extreme as the access point for the wireless network

    Can I use the Ethernet Port  of the A1264 Airport Express to connect to the Ethernet port of a computer that does not have wireless capability when the Airport Express is also used on a wireless network with an Airport Extreme 5th generation as the access point for the network?
    I have AE 5th gen
    looking to buy (from ebay) the AEX A1264
    Various computers, printers and hubs for the network
    Is this possible to do?

    Bob, Thanks for the info. I have read different articles that said yes, but I wanted to make sure before I commit to buy. I have an older A1084 which I could not use the Ethernet port. I know at one point I was able to when I was on 10.4. Now that I am on an Intel processor and 10.8 I am going to have to upgrade some of my Apple wireless hardware.
    Thanks Again.

  • Full screen issue when utilizing Ease of Use on screen keyboard and RDP in Win8.1

    Hello,
    I am exploring using touch technology with our point of sale application which is delivered to our clients using RDP.  The default touch keyboard in Win8 is basically useless for our application so we enabled the touch keyboard under Ease of Use (EoU)
    which does meet our requirements.   We enabled the KB in docked mode so it is always displayed and locked to the bottom of the display.  The issue is that when we start an RDP session in full screen mode, the RDP session is using the whole screen
    and slipping under the docked EoU KB.  Is there a means to have RDP recognize the reduced screen size with the EoU KB docked and only use the available screen real estate?  I understand that I can configure the RDP settings manually and approximate
    what I'm looking for but this drops the session into a window which is somethibg I'm looking to avoid.

    Hi Steve,
    Thank you for post in Windows Server Forum.
    As per my research, I can say that you need to set the RDP screen size manually. So after setting the size of Full screen RDP you can able to use. You can also try to switch the application in Remote Desktop connection by “Ctrl+Alt+Break”. Please check
    the shortcut to be used when using RDC.
    Keyboard shortcuts
    http://windows.microsoft.com/en-in/windows/keyboard-shortcuts#keyboard-shortcuts=windows-8
    Hope it helps!
    Thanks,
    Dharmesh

  • Subcontract PO item withdrawal issue when alternative BOM item used

    Hi,
    As title mentioned, when we issue alternative material for a subcontract PO in BOM, but it still shows the quantity from primary item.
    (For example, we have a product, let's say it as Product-A, it's combined by material-B1 and Material-C1
    And the BOM for Product-A for item material-B1 has an alternative item, material-B2
    Now the issue is when we issue material-B2 instead B1, but the PO usage/withdrawal listed in B1)
    Because we are making a list for China custom for material usage, the issue listed above makes our list not available for custom department.
    Please let us know how we could make the withdrawal in PO shows B2.
    thanks,
    Steven

    Dear Steven,
    As explained by our forum friend maintain this data.
    1.Create 2 different BOM for the same header material with the respective BOM components.
    2.Create production version for the header material using T COde MM02--->MRP4 view and click on prod.version,enter the same
    as 0001,text as prod version 1,default valid from date will be the current date and the valid to date will be 31.12.9999.
    3.Enter the lot size for which this prod version is valid and then in the alternative BOM select the BOM and save the data.
    4.Prdo.version can also be maintained through C223.
    5.Assign this prod version in the sub-contracting purchase info record in ME11,under prod version under purch org data(not sure
    check this alone).
    6.Likewise assign the prod version that is linked to the BOM to be picked for each sub-contracting vendor.
    Check the results after MRP and revert.
    Regards
    S Mangalraj

  • Anyone else having issues when streaming from veetle using safari over wifi?

    I like many others have been having issues with my wifi on my iPhone 5 (sometimes when connected to wifi it just freezes up and I need to do a reboot or reset network settings to get it back up and running). In any case, that wasn't bothering me too much but I've noticed now that the veetle web site that I use sometimes to stream shows from on my iPhone stops showing video after a few seconds when using wifi. If i switch to my LTE connection or 3G it works fine but it's only when running with wifi that it has a problem. It will begin to stream a show properly then after a few seconds the video will cut out though the sound keeps playing. My iPad doesn't exhibit the same problems and can stream from veetle perfectly over my wifi. Anyone else out there having similar issues? This will be annoying if i'm travelling out the country and depending solely on wifi for my data and not being able to stream sports and tv shows from Veetle. Just wanted to see how commonplace this problem was. Thanks

    All spring and summer Netflix/fios has been a problem. I have used a tool that goes beyond simple speed tests and gets to dividing up thE problem. It appears that the problems reside with fios, however true to form Verizon repair denies any problem (go figure) .

  • Issue when opening new windows using JSF CommandLink

    Hi,
    I'm opening this thread to follow up on a topic posted on the old Sun Developer Forum: http://forums.sun.com/thread.jspa?threadID=5435239 . That post was never answered and I am having the same problem.
    To summarize (and I'll quote from the original post):
    "I am having an issue where when I open a page in a new window from a link in my primary window any button or link clicked on the primary window after that opens a new window."
    "Any other actions on the primary page should keep navigation within the primary window. This issue does not start occurring until after the desired new window is opened the first time."
    Anyone has run into this problem and found a solution?
    Marc

    This is the command link code that, once this gets called, anything else on the page will open this window again:
    <h:commandLink immediate="true" styleClass="commandLink" target="_blank" style="text-decoration:none"
                id="pdfLink action="#{Bean.method}">
         <hx:graphicImageEx id="imageEx2" styleClass="graphicImageEx" value="../images/pdfButton.gif">
         </hx:graphicImageEx>
    </h:commandLink>

  • HT2480 Calendar Issue when a delegate is used in an Outlook environment

    A problem we are seeing:  if a delegate accepts a calendar invitation for their manager, the calendar item is not updated as "accepted" on the manager's iOS device.  This occurs on iPhones and iPads in general.
    When the delegate accepts the invitation, the Microsoft Exchange server is updated as appropriate.  But the Apple Device does not see the change.
    Interestingly enough, if the delegate declines the meeting, the event is deleted from the calendar as expected.

    You shouldn't need the second and third SCOPE statements (on the All members of City and Country) if the first one has been configured correctly - what happens if you remove them?
    Chris
    Check out my MS BI blog I also do
    SSAS, PowerPivot, MDX and DAX consultancy
    and run public SQL Server and BI training courses in the UK

  • Issue when creating WebLogic domain using the Configuration Wizard

    This is the exception i received whenever I tried to create a new domain:
    Exception:
    Traceback (innermost last):
    File "C:\Documents and Settings\user.lastname\Local Settings\Temp\WLSTOfflineIni12292.py", line 5, in ?
    ImportError: no module named java
         at org.python.core.Py.ImportError(Py.java:184)
         at org.python.core.imp.import_first(imp.java:555)
         at org.python.core.imp.import_name(imp.java:616)
         at org.python.core.imp.importName(imp.java:635)
         at org.python.core.ImportFunction.load(__builtin__.java:1020)
         at org.python.core.ImportFunction.__call__(__builtin__.java:1013)
         at org.python.core.PyObject.__call__(PyObject.java:248)
         at org.python.core.__builtin__.__import__(__builtin__.java:973)
         at org.python.core.imp.importAll(imp.java:724)
    Can someone explains what this is?
    Many thanks in advance.

    For my case, it failed with:
    sys-package-mgr: can't create package cache dir, '/tmp/cachedir/packages'.
    And the solution is as described here:
    http://ghattus.com/2009/08/how-are-python-cachedir-and-the-error-sys-package-mgr-cant-create-package-cache-dir-are-related.html

  • Authentication prompt issue when opening an office file in a document library with read permission for domain users

    An user as part of the domain users tries to open an office file from a document library but he got an authentication prompt asking him to authenticate. Domain users has only access to this library and not to the whole site. This uses to work in SharePoint
    2007 without any problem but not in SharePoint 2013, we didn't have a workflow on SP2007.
    Domain users has read access to only this document library in the site, but he shouldn't get an authentication prompt since he is part of the domain users and he is not trying to modify the document, he can open the document but gets two prompts, he can't
    also see the list using explorer view since nothings appears using the explorer view.
    Now, when opening the file, we can see..Updating Workflow Status, but we don't have any workflow working on this site or library, event any feature related to workflow.
    If we go to the event viewer in the server, we find this information,
    I also checked this thread but I couldn't find this scenario.
    https://social.technet.microsoft.com/Forums/sharepoint/en-US/91bc770b-bb70-4885-a4ad-a243edb88753/event-id-8026-workflow-soap-getworkflowdataforitem-failed-doc-library-no-workflow?forum=sharepointgeneralprevious
    I also created another list with the same permissions and using other office files but got the same behavior.
    Now, we have migrated this site from SP2007 to SP2013.
    Any ideas?

    OK, I am going to throw out a lot of ideas here so hopefully they get you closer to a diagnosis. Hang on :)
    Does it happen to work for some users but not others? If so, try logging in on the "good" computer with the "bad" username. This will tell you if the problem is related to the end-user's system. Also, once the user downloads a document
    successfully can they open and work on it in Word? Also, does the document library have any custom content types associated with it or does it just use 'Document'?
    I notice that there are other folks on the web that have run into this same problem and the similarity seems to be that they are either on SharePoint 2007 or have upgraded from 2007. Did this doc library start out as a 2007 library?
    What you might want to do is this: Make a site collection from scratch in 2013 (or find one that you know was created in 2013). Choose team site (or whatever you want) for the root web and set up the security the same way you have it on the malfunctioning
    library. Now, use windows explorer to copy and paste some of the documents to the new location. Be sure you recreate any needed content types. Now test it from the troubled user's computer.
    I'm thinking there may be something that is different about the library since it was migrated through various versions and updates since 2007. I've sometimes found that there can be problems (especially with user profiles but that's a different story) with
    things that go through this evolution.

  • There's a issue when I scrolling Firefox (4 or 5 for mac) with my Bamboo Wacom Tablet, it doesn't work fine. Why?

    When I scrolling firefox the scroll doesn't down completly. It stops. I must click the scrollbar and drag it. Even on safe mode.
    I'm using only Google Chrome for that. :(

    Same here. Firefox 5, Mac, with a bamboo tablet, as well as the trackpad on my macbook pro, scrolling is laggy, or unresponsive. PLEASE FIX ASAP. This one bug is keeping me from completely moving back to FF from Chrome!

  • When I try to use FireFox everything is opened with IE9

    When I try using FireFox, everything is opened by IE 9.

    This error can be caused by an extension that tries to install a plugin in a way that is not compatible with current Firefox versions.
    Do you see any disabled extensions in Tools > Add-ons > Extensions ?
    See:
    *[[Troubleshooting extensions and themes]]
    *[[Troubleshooting plugins]]

Maybe you are looking for

  • Unpredictable reboots on my early 2008 Macbook Pro with Mavericks

    Hello, My situation: 1) First problem I encountered was kernel panic on startup. I fixed it fixed by replacing new AppleSMC.kext by older one from 10.8.* version I suppose  (i used KextWizard). 2) Time after time MacBook restarts and then shows white

  • Is the "Invite a friend " feature in Adobe Story working?

    Hi, I recently went in invite a friend to collaborate on a script using the "Invite A Friend" feature on Adobe Story and it wasn't working? I guess the workaround is to tell my colleague to download the app., right? r

  • My ringtones don't sound off for any message on my new BB Q10

    I just bought a BB Q10 and a major disappointment so far is that the ringtones do not sound off for any type of message that I enable a ringtone for?  I have gone over the steps over and over and I cannot seem to get them to work!  Can anyone help wi

  • Handle special characters in JSP

    Hai all, i am getting a problem, when i copy some text from word file and paste it in my forms textarea. If the selected text contains characters like " or ', e.g. (Hello “Everybody”.) then after submiting it is replaced as a ? mark. How to handle th

  • How to convert Presenter PDF presentation into MP4?

    Hi could someone please tell me how to convert a Presenter PDF presentation into MP4? To clarify, Presenter was used to create PDF presentations with voice over the powerpoint slides. I would like to take the PDFs and convert them to MP4s using Prese