SSAS 2012 end Excel functions - mode.sngl doesn't work

Since I've used SSAS 2005 with Excel 2007 my Excel.Mode function worked fine.
Now we have migrated to SQL 2012 and we have installed Excel 2010 --> Excel.Mode is deprecated in the new version and the cube calculations that use this function won't work. The new Excel way to calculate mode is [mode.sngl] but I can't call it from cube
calculations.
I tried to replace the Excel approach with the MDX approach (link below) but the time to calculate is too slow.
http://social.msdn.microsoft.com/forums/en-us/sqlanalysisservices/thread/C70DE994-5815-4B30-A10A-81518F784BD2
Can anyone suggest me how to procede?
Thank you in advance

Hi Mihai,
as I mentioned before I've tried different approaches (see the link) but I didn't find a good MDX solution to work around this issue.
Fortunately (for me) I have a certainty. The numbers involved in my calculation can only be between 0 and 9. Impossible to have more than 9 (cautionary) delivery (measure.[Num. Consegne]) a day for a product in a shop.
So I can work around in this (unconventional and maybe optimizable) way:
CREATE Hidden [Count_01] = COUNT(Filter(({descendants([C3 Date].[TIME - Calendario Solare].currentmember,[C3 Date].[TIME - Calendario Solare].[Data Solare],SELF)}, [C3 Clienti Gestionali].[Cli - Cliente Principale].&[1]), [Measures].[Num. Consegne] = 1));
CREATE Hidden [Count_02] = COUNT(Filter(({descendants([C3 Date].[TIME - Calendario Solare].currentmember,[C3 Date].[TIME - Calendario Solare].[Data Solare],SELF)}, [C3 Clienti Gestionali].[Cli - Cliente Principale].&[1]), [Measures].[Num. Consegne] = 2));
CREATE Hidden [Count_03] = COUNT(Filter(({descendants([C3 Date].[TIME - Calendario Solare].currentmember,[C3 Date].[TIME - Calendario Solare].[Data Solare],SELF)}, [C3 Clienti Gestionali].[Cli - Cliente Principale].&[1]), [Measures].[Num. Consegne] = 3));
CREATE Hidden [Count_04] = COUNT(Filter(({descendants([C3 Date].[TIME - Calendario Solare].currentmember,[C3 Date].[TIME - Calendario Solare].[Data Solare],SELF)}, [C3 Clienti Gestionali].[Cli - Cliente Principale].&[1]), [Measures].[Num. Consegne] = 4));
CREATE Hidden [Count_05] = COUNT(Filter(({descendants([C3 Date].[TIME - Calendario Solare].currentmember,[C3 Date].[TIME - Calendario Solare].[Data Solare],SELF)}, [C3 Clienti Gestionali].[Cli - Cliente Principale].&[1]), [Measures].[Num. Consegne] = 5));
CREATE Hidden [Count_06] = COUNT(Filter(({descendants([C3 Date].[TIME - Calendario Solare].currentmember,[C3 Date].[TIME - Calendario Solare].[Data Solare],SELF)}, [C3 Clienti Gestionali].[Cli - Cliente Principale].&[1]), [Measures].[Num. Consegne] = 6));
CREATE Hidden [Count_07] = COUNT(Filter(({descendants([C3 Date].[TIME - Calendario Solare].currentmember,[C3 Date].[TIME - Calendario Solare].[Data Solare],SELF)}, [C3 Clienti Gestionali].[Cli - Cliente Principale].&[1]), [Measures].[Num. Consegne] = 7));
CREATE Hidden [Count_08] = COUNT(Filter(({descendants([C3 Date].[TIME - Calendario Solare].currentmember,[C3 Date].[TIME - Calendario Solare].[Data Solare],SELF)}, [C3 Clienti Gestionali].[Cli - Cliente Principale].&[1]), [Measures].[Num. Consegne] = 8));
CREATE Hidden [Count_09] = COUNT(Filter(({descendants([C3 Date].[TIME - Calendario Solare].currentmember,[C3 Date].[TIME - Calendario Solare].[Data Solare],SELF)}, [C3 Clienti Gestionali].[Cli - Cliente Principale].&[1]), [Measures].[Num. Consegne] = 9));
CREATE Hidden [MaxCount] =
max({MEASURES.[Count_01],MEASURES.[Count_02],MEASURES.[Count_03],MEASURES.[Count_04]
,MEASURES.[Count_05],MEASURES.[Count_06],MEASURES.[Count_07],MEASURES.[Count_08]
,MEASURES.[Count_09]});
CREATE MEMBER CURRENTCUBE.[MEASURES].[Moda Consegne __TEST__3]
as measures.MaxCount,
NON_EMPTY_BEHAVIOR = { [Num Consegne] };
CREATE MEMBER CURRENTCUBE.[MEASURES].[Moda Consegne]
as
CASE measures.MaxCount
WHEN MEASURES.[Count_01] THEN 1
WHEN MEASURES.[Count_02] THEN 2
WHEN MEASURES.[Count_03] THEN 3
WHEN MEASURES.[Count_04] THEN 4
WHEN MEASURES.[Count_05] THEN 5
WHEN MEASURES.[Count_06] THEN 6
WHEN MEASURES.[Count_07] THEN 7
WHEN MEASURES.[Count_08] THEN 8
WHEN MEASURES.[Count_09] THEN 9
ELSE NULL END
NON_EMPTY_BEHAVIOR = { [Num Consegne] };
Hope to be helpful.
Regards,
Davide

Similar Messages

  • Upgraded to os7 and done my updates on the apps as they appear.. Any function to do with the iBook store is not working or visible.  The purchase at the end of a sample book doesn't work either.

    Upgraded to os7 and done my updates on the apps as they appear.. Any function to do with the iBook store is not working or visible.  The purchase at the end of a sample book doesn't work either. Anyone have a solution?

    Upgraded to os7 and done my updates on the apps as they appear.. Any function to do with the iBook store is not working or visible.  The purchase at the end of a sample book doesn't work either. Anyone have a solution?

  • Find function cntrl-f doesn't work for long pages. frustrating

    find function cntrl-f doesn't work for long pages. Works find on your competitions IE, though I strongly prefer FF.
    == This happened ==
    Every time Firefox opened
    == Several versions of FF

    Hi Cb,
    I did try that and it didn't work. the site in question (though I could pick any) is midwestmafia.com and I typed in capone (which is near the end of the page)
    Works well on IE, though I'd like to stick with FF.

  • Hello, I just got an iPhone 4S and it seems that the bluetooth function in it doesn't work. I tried few times to pair it to other non Apple phones and it never worked. Does anyone has an idea how to solve the problem? Tks.

    Hello, I just got an iPhone 4S and it seems that the bluetooth function in it doesn't work. I tried few times to pair it to other non Apple phones but it never worked. Does anyone has an idea how to solve the problem? Tks.

    This is not a feature of iPhone, iPad or iOS.
    Bluetooth is supported for stereo headsets/speakers, handsfree telephone
    devices/headsets, some keyboards, some peer-to-peer apps from the
    app store and internet tethering where provided by the carrier.
    Other than this it will not connect to a phone/computer/device.  (thanks to ckuan for the wording)

  • Function app.mailmsg doesn't work in Acrobat 9.4.2.220

    Hello all:
    Today I update Acrobat 9 from 9.3 to 9.4.
    I find the function app.mailMsg() doesn't work any more.
    when I use app.mailMsg() in Javascript, the Acrobat will be aborted and send Error Report.
    Is anyone able to help me with this?
    Many thanks!

    I have tried your suggestion (for example cPdfAVDoc->FindTextA(WideString("R1").c_bstr(), 0, 0, 1);
    but the result is the same.
    Searching directly in the find window of the Acrobat in my application obviously all works correctly. But my target is to search from an external button.
    Thanks

  • Silent mode switcher doesn't work!

    Hi, I have an iPhone 3Gs covered by warranty and I would like to know if Apple changes my iPhone if my Silent mode swithcer doesn't work?? (if my English isn't very good is because I'm Italian xD)

    Most likely yes, as long as it's not due to user damage.

  • SSAS 2012 Tabular. Analysis Services Query Log not working

    Hello.
    It is possible to configure Analysis Services Query Log on SSAS 2012 Tabular (11.0.3321) server? Or this feature works only with Multidimensional server mode?
    It is not a problem for me to configure Query Log on Multidimensional server. But when I'm trying to do this in Tabular server result is always the same: table S_OlapQueryLog created but no data there.
    This problem exist in our production server. And is fully reproduced in test environment. This problem was reproduced with SQL 2012 RTM, CU4, SP1 and SP1 CU1.
    I tryed to configure Analysis Services Query Log by using SQL account. Later by using windows authentification. Accounts was db owners. Later I have used accounts with sysadmin rights. Results was the same.
    In msmdsrv.log i can find only related events like this:
    (12/7/2012 9:22:59 PM) Message: The query log was started. (Source:
    \\?\P:\Olap\Log\msmdsrv.log, Type: 1, Category: 289, Event ID: 0x41210003)
    (12/7/2012 9:25:03 PM) Message: The query log was stopped. (Source:
    \\?\P:\Olap\Log\msmdsrv.log, Type: 1, Category: 289, Event ID: 0x41210004)
    I'm stuck completely with this functionality. So if someone was much luckier than I please write to me.
    Regards
    Audrius

    I agree with Gerhard's comments, but there are a couple of additional points
    - I am not 100 percent sure if queries that are answered by the SE cache are recorded in the query log
    Queries answered by the SE cache are not definitely not recorded in the QueryLog. So depending on the types of queries and the design of your cube you could possible miss a large proportion of the actual end user queries.
    The QueryLog records the QuerySubcube events and there are zero to many of these generated for a given end user query (zero if the query can be answered from cache). The optimizer may also choose to pre-fetch a wider range of data or to break a single range
    into a few smaller requests so it is not a true indication of the actual query that the end user generated.
    Doing a trace is the only way to catch the actual queries submitted by end users.
    http://darren.gosbell.com - please mark correct answers

  • The location function in Reminders doesn't work at iphone 3gs and ipad?

    Hello, how can I use the Location feature in the new Reminder app? If I add a new reminder there is no function to put in the location, just the day and the clocktime? Icloud is already installt and worked! It doesn't work at Iphone 3GS and also not at Ipad2? Who can held me?

    Im not of much help, i can just say, i have the same problem!

  • SOCO function "Complete Item" doesn't work

    Helo.
    Please help to solve a problem.
    We have SRM 5.5
    We want to remove positions from SOCO through function "Complete Item".
    But at logon under the Ukrainian language function doesn't work. At logon under English language function in SOCO works.
    How can it be? And why?

    Hi,
    either you need to install the Ukrainian language completely (including supplementation) or if you plan to use the translation workbench for mass translation, you need to translate the texts included in the application you use.
    Please note: If you plan to use Translation Workbench (SE63) for mass translation, supplementation in that system should be avoided (see e.g. SAP Note 353852) !
    Best regards,
    Nils Buerckel

  • QT player export function for iPod doesn't work!

    hello
    i just bought QuickTime Pro.
    unfortunately, the export function for iPod (.m4v) doesn't work...
    it stops after a short while and dont't go any further.
    thanx for your help!
    greetings, iMats
    iMac 800MHz PowerPC G4   Mac OS X (10.4.3)  

    While I haven't used it, QT 7 and the iPod preset (H264 encoding) seem to be quite slow compared to other compressors. Many people have mentioned the seeming freeze, while other state that if you let it run long enough it will eventually finish the project. If you don't have the patience to wait, you might want to try exporting to mpeg-4 and see if that works a bit faster.

  • Windows 8.1 safe mode password doesn't work

    Using HP Pavilion 23 all in one model 23-b037c, 2012 windows 8.1.
    During testing for internet connectivity was instructed to initiate msconfig and reboot in Safe Mode.
    After rebooting the sign in security screen asked for my password.  I entered my password that has worked for long time., but system said password incorrect reenter.  tried numerous other passwords non accepted.  changed MS account PW no good. Worked with HP support several hours for 2 days, trying all advanced trouble shooting solutions they recommended. Ran restore, backup and recovery  etc. all failed.  After one backup attempt error message said must get out of SAFE Mode.
    How do you do this without correct password?
    Ran Hard disk test  passed OK. Now having to clean and remove all programs and personal files per HP Tech.. Will take several hours per HP sTech.  Then  will try again to run System recovery to original manufactures settings.  Huge mess.
    Big problem. Hope this works. 
    Q. Anyone ever have this problem?
     How do you bypass password security screen to access Windows 8.1 without going through this extensive process? tried several password recovery options non worked.
      Tried all Advanced troubleshooting options offered by HP Tech.
    Preplexed and need help. Thanks

    Hello @ea2,
    Welcome to the HP Forums, I hope you enjoy your experience! To help you get the most out of the HP Forums I would like to direct your attention to the HP Forums Guide First Time Here? Learn How to Post and More.
    I have read your post on how the Windows 8.1 safe mode password does not work on your desktop computer, and I would be happy to assist you in this matter!
    To disable the built-in administrator account for Windows 8.1, I recommend following the steps in this document on How to Enable or Disable Built-in Elevated "Administrator" Account Windows 8 and 8.1. This should help to enter your password when booting into Safe Mode.
    Please re-post with the results of your troubleshooting, and I look forward to your reply!
    Regards
    MechPilot
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the right to say “Thanks” for helping!

  • What do I do if my phone is ALWAYS "No Service" and restart, reboot, airplane mode trick doesn't work?

    My phone is always "No Service" even if I'm somewhere I used to ALWAYS have signal. I reported it to my carrier and they said that maybe it's because of the walls of our house that the signal can't get through but when I go to school which is far from our house, my signal is still "No Service" all throughout my trip to school. I kept on restarting my phone and I also did the airplane mode trick a lot of times already and it still doesn't work. So since this happened after I updated my OS, I thought of posting it here. My phone is iPhone 5s. I hope someone can help me fix this problem because phone signal is super important to me.

    Hey WonderAlyy,
    I would continue your troubleshooting with the article below. I would start at step 3 because you have already done the first two. Make sure to back up because you may need to restore your iPhone to get it to work. 
    If you see No Service in the status bar of your iPhone or iPad
    http://support.apple.com/en-us/TS4429
    Take it easy,
    -Norm G.  

  • Satellite L850 - 13N - Function keys ("FN") doesn't work

    Hello,
    I have Toshiba Satellite L850-13N with Windows 7 x64. The problem is that my function keys doesn't work. Could someone write me which drivers i need to install ?
    PS. sorry for my english :)
    Thanks for the help.

    What you need is Flash card utility and this utility is part of Toshiba VAP. As as*** already wrote reinstall VAP.
    Remove preinstalled version from the system, restart your notebook and install latest version that you can find on Toshiba download page - http://eu.computers.toshiba-europe.com/innovation/download_drivers_bios.jsp
    I hope this will help you.
    Post some feedback.

  • Offer ends today: indesign CC purchase doesn't work!

    just wanted to buy indesign cc as an existing customer (offer which ends today), they ask me to type in a serial number of an already purchased produkt which i did (cs6). But it doesn't work - says i cannot purchase at lower price. What to do. Offer ends today ...

    i tried but there seems to be no chat on saturday. or is there one? would like to at least tell them that i tried to purchase indesign cc before august31, and then chat with someone from adobe on monday. but where to leave this message? cannot even find an e-mail address..

  • Fn+F5 function and touchpad doesn't work correctly on Satellite A series

    Hi
    I just setup a windows Vista & I install the driver after download it from the net but i found that;
    1- the switch between the screen & s-video (fn + f5) doesn't work but the other function (fn) work
    2- when i put my finger in the right of the mouse pad it must scroll the screen & in the bottom of the pad it must scroll left & right the screen but it didn't work
    So plz tell me the solution if it is a program or driver issue.
    Plz give me the direct link
    thinku

    Hi
    What notebook do you have?
    I presume your notebook was delivered with XP and now you want to use it with Vista OS.
    Please note that you need to install the Toshiba Vista Value Added Package to use all the notebook features.
    Very important is the Components Common Driver and the TOSHIBA Flash Cards.
    The Flashcards provides the Hotkey function and the launcher function that starts the Hotkey function.
    Please reinstall it!
    The additional touchpad functionality must be configured firstly!
    This can be done in control panel -> mouse
    There you should look for the touchpad settings and could configure the touchpad scroll areas again.
    Bye

Maybe you are looking for

  • Photoshop CS2 unexpectedly quits

    I just purchased Adobe Creative Suite2 (education) and all the programs run just fine, except Photoshop. Once it gets to the "building TWAIN menu items" step of starting up it "unexpectedly quits". Every single time I try to open it. I've tried most

  • Java Desktop System Release 3 - Login problems

    Hi all, This is my first post here so apologies if I'm in the wrong area. I've recently installed Solaris 10 (5.10 Generic_118833-36) onto a V245. I wanted to see if I could get the gui desktop to work so I downloaded/installed Hummingbird Exceed on

  • Appearance Panel blank in CC 2014 latest update

    When I open the appearance panel, with an object selected which has fills, strokes and a drop shadow, the appearance panel is blank. The panel appears, the fly-out menu is functional, but nothing else is there, just gray. Screenshot below: Is this a

  • Invalid catalog

    I have a catalog that Lightroom is unable to open, saying it is an "invalid" catalog.  I used it recently now I'm unable to access.  Is there a way around this?

  • Safari keeps moving on dock??!

    Safari wont remain in my dock even though its set as keep in dock, and when its open it moves to the very right end side every time i try to move it. Ive tried trashing dock preference list in user>library>preferences>com.apple.dock.plist but even af