How to Zero Debt After Account Closure Date in MDX Calculated Measure

Thanks in advance to anyone who can help me with the below problem.
I’m building a Finance cube, it holds all customers we have billed and any cash received against their debt. I have a few calculated measures that work out Total Debt, Total Cash. From these I have a calculated measure called Total Debt Outstanding which
is (Total Debt - Total Cash)
My problem, when an account is closed the debt is not always zero. We don’t always get all the cash to cover the debt so just write off the outstanding debt. I have a requirement to zero out the debt after closure date has passed. 
If I look at the calculated measure [Total Debt Outstanding] today for all accounts it will include debt figures from closed accounts, I need the calculated measure
[Total Debt Outstanding] to ignore this and not to inflate my current debt figure.
Example
Account 12345, Debt £3142 added on 15/03/2013, Cash £1,687
received on 12/12/2013, Total Debt Outstanding £1107. The Account closed on 15/12/2013 with a balance of £1107, after the closure date I need the total Debtor outstanding figure to be £0 if you browse the cube with my date dimension. 
My date dimension Hierarchies is Year-Quarter-Month-Day
I have tried using the Scope function to Zero the Total Debt Outstanding figure after closure date but can’t get it to work. 
My scope calculation is below:
Scope([Measures].[Total Debt Outstanding]);
This = IIF([Date].[Year-Quarter-Month-Day].Currentmember > [ClaimData].[Closed].[Closed].Currentmember,0,[Measures].[Total Debt Outstanding]);
End Scope;
My Account Opening and Closing dates are in my ClaimData fact table, with Opening Date linked to the date dimension. I can’t link Closing date as we don’t always have a closing date until the account closes, so SSAS errors.
Many Thanks

Hi,
Try compare key value of members. For example,
[Date].[Year-Quarter-Month-Day].Currentmember.Properties("key") > [ClaimData].[Closed].[Closed].Currentmember.Properties.("key")
And think about UnknownMember in Date dimension. In this case you can link Closing date
Best regards,
Aleksandr Severin

Similar Messages

  • How can I switch my accounts/files/data from my Macbook to iMac

    I have a 3 year old Macbook running Leopard, and my wife has a brand new iMac running Snow. I have a user account on her comp (not admin), and I want to copy all of my files/user info from my laptop to her computer. Is this possible? How do I approach this without reinstalling the OS or changing admin rules?

    JBL514 wrote:
    I have a 3 year old Macbook running Leopard, and my wife has a brand new iMac running Snow. I have a user account on her comp (not admin), and I want to copy all of my files/user info from my laptop to her computer. Is this possible? How do I approach this without reinstalling the OS or changing admin rules?
    The +Migration Assistant+ app will help. But there's no easy way to combine accounts (the one already on her Mac and the one on your MacBook.)
    Your best bet is probably to use +Migration Assistant+ to transfer the account from your MacBook, per [Using Migration Assistant|http://web.me.com/pondini/AppleTips/Migrate.html].
    Then manually copy what you can from one account to the other. See [Transferring files from one User Account to another|http://web.me.com/pondini/AppleTips/Transfer.html] for some general guidelines.
    Transferring apps is difficult, because you can either transfer all of them or none of them; you can't "pick and choose." If you have 3rd-party apps that she doesn't, your best bet is probably to reinstall them, rather than trying to migrate them.

  • Final balance after account closure

    I've closed my account and can no longer login via the verizonwireless website. How can I get my outstanding balance? I cannot contact support via web or phone without an active phone number it seems.

    A final paper bill will be snail mailed to your address on record.

  • IHC Account closure

    Hi Guys,
    I am trying to close an IHC current account in SAP In-House cash system using transaction code F9K2-Change Current account.
    When I try to save the transaction after entering the account closure date along with the reason and a refernece account for balancing, I get the error: "Factory calendar read error" - Message no. FK883
    Could someone please help me out here and let me know what am I missing here?
    Any input will be appreciated. Thanks
    -Sarah

    Hi,
    Please check the Holiday Calendar assign to account to be closed in tab “Administration Data”(T-code F9K2)  & see in  configuration whether same holiday calendar  is linked with factory calendar or not (using T-code: SCAL or table TFACD).
    Regards
    Dharmendra

  • How to findout line  items of zero balance clearing account?

    Hi Friends,
    my zero balance clearing account shows balance.
    we have 6 business areas and document splitting activated.
    Trial balance is matching at co.code level.but its mis matching at business area level.
    Line item management is checked in the master data of zero balance clearing account.
    How to find out the line items of the zero bal.clearing account so that i ll get the relevant business area amount and ll pass journal entry accordingly and ll get the balanced trial balance at business area level.
    What is the table for zero balance clearing account line items?
    suggest.
    Regards,
    Sumeay

    Dear
    I am also facing the same problem. We are having 7 business areas. Trial balance is tallied even at busness area level. However, the zero balance clearing account is showing balance in each business area ( we can say "inter business area balncess.").
    Please help
    Regards.

  • IOS 8.1 - after update how can I get my lost calendar data back?

    Hi, after the update to iOS 8.1 is my calendar empy. All my appointements are gone and there is no way to safe new appointments in it. I tried to use the backup  of the data, but it did not work. Any clou how can I get my lost calendar data back? And or get the calendar working again???
    Thanks!

    You sign into whatever iCloud or Mail account the calendar was synced to, and enable the Calendar option for those accounts.

  • I have lost all my notes data after restore. Anyone know how to retrieve notes after restore?

    I have lost all my notes data after restore. Anyone know how to retrieve notes after restore?
    I havent' took any backup of my notes in icloud. The moment I enter the password after restore my notes will be empty. The only option to get notes back is that after restore skip entering icloud password. But any time I enter icloud password anywhere again my notes will be empty. I have huge data saved in my notes. Apple need to look into this issues very seriously. This is the 5th time I restoring my iphone today just to get my note back.

    I have the issue with losing all my notes and I don't even know why.  I can't remember changing any email account info.  What happened to them?
    Ipad 3rd io7
    Please Help!
    Thank you,
    S.

  • After purchasing verizonwireless for the ipad2,how do I set up the cellar data? Do I just turn it on?

    After purchasing a wireless account,how do I set up a cellar data connection? Do I just turn the cellar data on?

    That should be all that is required.

  • I share an Apple ID with someone but we are now on iOS8 and getting each others messages on our iphones and ipad. How can I split the account safely as well as protect icloud backed up data?

    I share an Apple ID with someone but we are now on iOS8 and getting each others messages on our iphones and ipad. How can I split the account safely as well as protect icloud backed up data?

    Use different Apple IDs for iMessage (and also FaceTime) to avoid getting each others text messages (and FaceTime calls).  One of you should go to Settings>Messages>Send & Receive (and Settings>FaceTime), tap the ID, sign out, then sign back in with a different ID.  You can continue to shared the same ID for the iTunes store and other services.

  • How is the best way to read data from an iphone if you lost your itunes data after a crash?

    How is the best way to read data from an iphone if you lost your itunes data after a crash?

    How is the best way to read data from an iphone if you lost your itunes data after a crash?

  • I cannot log in my game center using a same nickname after i updated my phone to ios 7. All my game data i was playing for months is lost. Seems when i try to put my nickname its already in used. How can i recover all my game data back?

    All my game data i was playing for months was lost. Seems when i trie to put my nickname its already in used. So i need to put a new nickname then it create a whole new acc for me. All my previous data was lost. How can i recover my all my data or use my old nickname? Pls help  

    kerryp123
    Yes, it is the same with me. I know a friend how upgraded to iso7 and lost all of his game center data. He tried singning in and re singning in but no change. Plus on to of all of this, apple is like have me and him to re-validate our itunes acount. Somthing weried is going on. So verified my itunes acount and it shows under settings that I am signed in, but when I go to  the app store on my iPhone and try downloading or even updating a app, it says "can not conect to itunes store" after singing in! AND I'M NOT SURE I AM GOING TO UPGRADE TO ISO7 YET UNTILL THEY FIX THIS BUG!!!! HELP!

  • How do i find out the tables (data)effected in a schema after a particular time stamp

    how do i find out the tables (data not structure)effected in a schema after a particular time stamp?
    pls email in [email protected]

    You can't do that. That would be a real security risc.
    /KAj

  • How to copy Company Code Account data from a client to another client

    Hi.
    In prod system, unfortunately, we have deleted all Company Code (CC) data from the system - including accounting payable data, and we need to restore data from backup. So far we have created an new 'spare' client with all restored information.
    Next step is to copy CC-related records in related tables from 'spare' client back to prod client and append them into tables were all the records referring this particular CC has been removed.
    For instance we see that the prod system is missing all CC-related records for accounting tabels such as BKPF BSEG and others.
    The questions are:
    1) How can we do this copy?
    2) If we need to do this for each single tabel manually, how can we know which tables that needs to be appended in prod system? As far as I have notised, i see this will affect table BKPF, BSEG, BSAK, BSAS, BSIK, BSIP, BSIS. Any others?
    We have allready triyed transaction EC01 for this purpose. But, unfortunately, this copy function, regarding Company Code organizational object does not seem to take into account the above-mentioned tabels which I need to restore into prod.
    I suppose this must have been an issue before for sombody...?
    So can anybody help with a strategy to solve this issue?
    Thanks.

    Just to be mentioned. This is regarding a particular CC, not all have been removed from the prod system. And I only need to restore accounting information for a spesific CC.

  • How to set up start and end dates for validity of contract account in FICAx

    Hi,
      Can anyone tell me where can I set up the validitiy period for the contract account in FICA. In contract creation, I could just see the contract validity start date. I also need to know the validity end date. Please let me know the solution asap.
    Points will be awarded for all the useful answers.
    Thanks
    Santosh

    Yes, you're right, you would then need to develop a lot of user exits to prevent the re-use of the contract account after the validity date.
    I'm think in a strange solution, it could work but you'll need to test it. if a contract account is marked for deletion (Field FKKVKP-LOEVM equal to 'X') no further action can be made over it, When you create you contract account you can schedule a change using as validity date (Field BUS000FLDS-VALDT ins the change contract account screen) to the end date of you contract account and set this deletion flag. then you run FPP2A to activate the schedule changes, before you get to the end date the flag is not set, when you get to the end date FPP2A will activate the flag and the contract account becomes not usefull.
    If you do this, you have be careful because all the postings to the contract account won't be possible, it means that if there are payment to be made, interests to be calculated, etc... nothing will be posted.
    Cheers,

  • How do I get my account back after 10.4.10 update?

    After I updated my intel mini to 10.4.10 it now starts up to a virgin account instead of mine. I can see my music, photos and desktop are still present on the HD. How can I get my account back?
    G5 imac, G3 ibook, intel mini, iphone   Mac OS X (10.4.10)  

    I have gone in to Prefs/accts and my password unlocks the lock. The only startup option is my acct, Steve. When the mini actually starts up it uses an acct with a little house next to it, miniwalker. This is the lower of the names shown on my account. If I open my HD/users I see miniwalker with the house icon and Steve with the folder icon. My music, photos, desktop and documents are all in Steve while miniwalker contains empty default files.
    G5 imac, G3 ibook, intel mini, iphone Mac OS X (10.4.10)

Maybe you are looking for

  • Cannot deploy EJB from JDev 3.2

    Dear Sirs, When you try to create a deployment profile using JDeveloper 3.2 step #2 of the wizard asks for "select a type of deployment". In Jdeveloper 3.1.1.2 the option "deploy Enterprise Java Bean (EJB) to Oracle8i". But in release 3.2 that option

  • How to change the default view of published iCal's URL

    I am publishing an iCal for a nonprofit group and link to the calendar from the group's website. The default URL given (in the send publish email option) leads to the week view of the current week. I would prefer the link to take site visitors to the

  • Credit to an asset -Issue

    Hi, We entered an invoice from vendor 158 for $3400. We were later informed that the vendor voided this invoice not payable. They would now owe AZT a credit for this amount. This invoice was posted to asset 4060004. When I tried to credit the amount

  • How to create GOS view attachment list in ECC6

    Hi, I created Z transaction. I have to create View attachment List to this transaction. How to create GOS view attachment list in ECC6. can anybody send sample code on this. Thanks in advance. Zakir.

  • White screen in editor and canvas

    I am shooting a Canon 5D Mk II and can edit the H.264 material in FCP. When I transcode the H.264 to ProRes or anything else and set up for it I get a white screen although I can hear the audio and the timeline shows no rendering is needed. I have tr