Essbase calc script to determine the number of occurrence

Hello

is it possible within a calc script to determine the number of occurrence of a value in the account dimension?

I have an account called ranks which can contain any value between 1 and 10.  I would like to know how many times each value is repeated for a specific cost center.  It's in a database of planning BSO.

Thanks in advance for your contributions...

CL

This isn't the typical calculation you would do in an OLAP architecture, but yes it is certainly possible.

you will need to create 10 accounts such as occurrence_of_1, occurrence_of_2 etc.

Then you increment them according to the value of the 5th year.

Don't forget to put in your calculation!

Tags: Business Intelligence

Similar Questions

  • Script to determine the number of lines of text in a paragraph?

    I'm revisiting a problem I posted here last summer, thanks to all those who have offered help, but I could not sort it out.

    http://forums.Adobe.com/thread/455526?TSTART=0

    What I'm after is a 'search' function to insert in a FindChangeByList.

    Jongware suggested the following - but when inserted in my list, I can't seem to do anything - it does not take a Javascript error.

    app.findTextPreferences = NothingEnum.nothing;
    app.findTextPreferences.appliedParagraphStyle = "Callout_3";
    foundItems = app.activeDocument.findText();
    for (var i=foundItems.length-1; i>=0; i--)
    {
      if (foundItems[i].paragraphs[0].lines == 2)
        foundItems[i].paragraphs[0].appliedParagraphStyle = "Callout_2";
      if (foundItems[i].paragraphs[0].lines == 1)
        foundItems[i].paragraphs[0].appliedParagraphStyle = "Callout_1";
    }

    I regularly get a 'word' document on which I run a "FindChangeByList" that cleans and formats the text with a number of GREP/text searches.

    One of the lines of research converts a particluar to the text string to a paragraph style "Callout_3" (the most common legends).

    This style applies to paragraph NET, above and below the line, to create a block/strip of color that says text is reveresed.

    The problem I have, is that the style (due to the rules of paragraph), works well if the paragraph has x 3 lines of text.

    I have updated styles in place for any eventuality - Callout_1 (for the single line of text), Callout_2 (for x 2 lines of text) etc.

    I'm looking for is a script that can count the number of lines in the paragraph (once the "Callout_3" style has been applied) and then change the style accordingly the number of lines in each paragraph/legend.

    Any other thoughts?

    Steve

    -your script can be incorporated into a FindChangeByList .txt file?

    No, he needs to access real paragraph finds it to count the number of line of this paragraph. FindChangeByList Find/change regular strings together, and you can not search for a certain number of lines.

    -what it takes to go to the 'findStyle ('Callout_1');"reference within a"group of paragraph style"called"legends "?

    ... Nothing. Because the style can be within a group, I wrote this little function. The findStyle performs a loop on * all * paragraph styles in the document, the root and in each group and returns the first style with the name that you provide in the function call (tested!).

    So if there is a 'Callout_1' style anywhere, it should find it... Are you sure you put the name at the top of the script? I've seen in a post later that it is actually called "Callout_1line".

  • Basic conditional script based on the number of lines in a text layer?

    Just received help here to write a conditional script by using the font size of a text layer. Thank you all for this.

    The next hurdle is a conditional script using the number of lines in a text layer in the differential. Far as I can tell it not the layer details which specify the number of lines. Just '\r' for a return in the idTxt descriptor. Nothing seems to stand for a soft return as far as I can tell. I'll probably have to be able to count the lines with soft and hard returns.

    Any thoughts?

    I was playing around with this a bit and here is a small script to determine the number of rows. This is based on the self in the head, that I calculated to environ.108 times the size of the font.

    #target photoshop
    app.preferences.rulerUnits = Units.POINTS;
    var doc = activeDocument
    var tL = doc.activeLayer
    var h = tL.bounds[3]-tL.bounds[1]
    var per = ((h/5)-(tL.textItem.size))/tL.textItem.size
    var num = h/(tL.textItem.size *1.108)
    
    alert(Math.round( num))
    
  • Forms and Essbase Calc Scripts

    I have several (not the rules of trade) calc scripts created in Essbase. When I create a form of some of these calc scripts will have the "members on data use" option grayed out while others are not. I can't see a difference in calc scripts.

    What I'm missing or where can I go to learn more, most of the documentation I find refer to the rules of the company and do not apply to calc scripts.

    Thank you.

    Note: When you try to publish the services shared through Essbase calc scripts I succeed with most and some, I get:

    com.essbase.eas.admin.defs.InteropCommands.PublishModel Failed: com.hyperion.interop.lib.OperationFailedException 9000: PUT failed for/Files/projects / [bbassiushy01] [FS] [hand]. Essbase/published/calculation Scripts/calc235.csc

    Edited by: J on July 11, 2011 09:32

    You should not be able to use members of the option form with calc scripts, it's for use with business rules where you can pass members of the form variables.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • determine the number of brushes with javascript

    I feel that he concocted before (more precisely in the context of rotating brushes), but I can't locate here or on PS - Scripts.com, so:

    How to determine the number of brushes in Photoshop?

    I intend to use this information for is to save the last brush as a set via JavaScript.

    Any help appreciated.

    Nope. It's free.

  • determine the number of pages of a pdf prior to any operation on it

    Any of you know how to determine the number of pages in the pdf file (selected with the Open for example)?

    Somehow, I can't understand how to do that any way short of actually opening/pixelation all pages without prior knowledge of the actual number.

    I would like to use this information to determine the number of items to a contact-sheet-like procedure beforehand.

    MultiPageImporter2.0.jsx, which is an Indesign Script by Scott Zanelli, obviously the fact, but so far I have failed to properly use its functions.

    Anyway, have a good weekend

    pfaffenbichler

    OK, now it works...

    Install x script changing the CSx version

    Then run this script by changing the location of pdf and the version of CS... (NB: does not work with CS2.) CS, CS3, and CS4 should be ok)

    /////////////////////////////////////////////////////////////

    var pdffile = file ("~/Desktop/56 pages.pdf") .fsName;

    ////////////////////////////////////////////////////////////

    var file = new File ("/ Applications/Adobe Photoshop CS3/Presets/Scripts/macexec.app/contents/macexec");

    var pdfcnt = File ("~/pdfcnt");

    If (pdfcnt. Exists) pdfcnt.remove ();

    {if (file. Exists)}

    leader. Open ("e");

    leader. Encoding = "BINARY";

    leader. Write ("/ usr/bin/LDM - name kMDItemNumberOfPages");

    leader. Write ("\""+pdffile+"\"|/usr/bin/grep o [0-9]------+ $ > pdfcnt \n");

    The following line closes all Windows Terminal.

    file.writeln ("/ usr/bin/osascript - e ' tell \"Terminal\ request "to quit" ");

    leader. Close();

    }

    leader. Execute();

    var test = false;

    {while (test)}

    if test (pdfcnt.exist) = true;

    $.sleep (50);

    }

    for (var t = 0; t)<>

    If (pdfcnt. Length > 0) break;

    $.sleep (50);

    }

    pdfcnt. Open ("r");

    var number = parseInt (pdfcnt.readln ());

    pdfcnt. Close();

    Alert ("number of pages in" pdffile + "=" + count);

  • How can I determine the number of contacts that I have

    How can I determine the number of contacts that I currently have on my iphone

    I don't know of a way on the iPhone, but if you have a Mac, you can go to the Contacts (platform) app and scroll to the bottom where you will find the total.

    Same for iCloud.com on your browser, go to the app, scroll down.

  • How to use NIDAQmx to determine the number of lines correlated DIO?

    How can I used NIDAQmx to determine the number of correlated DIO lines that supports a device?  For example, the NI6225 supports 8 correlated digital of/s lines while the NI6229 supports 16 correlated digital of/s lines.  How can I used NIDAQmx to determine the NI6225 supports only 8 lines while the NI6229 supports 16 lines?

    I moved this question from a previous thread.

    Thank you

    Ian

    Here is a code snippet that implements the regular expression detection:

  • Determine the number of channels selected for traditional DAQ

    The blocks 'DAQmx task' and "Traditional DAQ Channel" look pretty similar (see attachments). The DAQmx block ist an individual selection of channels and I am able to determine the number of selected channels.

    Now I am trying to determine the number of selected channels to a traditional DAQ, but the property DAQmx block does not work here. I already tried the trad to some form of blocks. Range of data acquisition, but failed.

    Any idea?

    In traditional DAQ, there are several ways of specifying the list of channels. Assuming that your picture shows how you use your channel list is just a string of delimited by commas. Wire a constant to a string array node worksheet and specify "comma" as the separator and the number of columns must tell you the number of channels.

    Ben

  • determine the number of monitors

    How can I determine the number of screens in Labview. In Labwindows you ATTR_NUM_MONITORS but I can't find the equivalent command in Labview.

    Remove a property node. It will already have the default Application class. Select the view > property all monitors, which is a table with details of all the monitors. You can watch its size for the number.

  • HP MFP426 ACF: where is the copy on the ACF HP MFP426 counter to determine the number of copies/cartridge

    Where is the copy on the ACF HP MFP426 counter to determine the number of copies / ink cartridge.

    Thank you. Beaver3

  • How to determine the number XP or XP 64-bit operating systems.

    Hello
    I need to download a driver but need to know if I have Windows XP, XP 64. I run Internet 7 SP3 if that makes a difference. Properties-General-he reads the slot system Microsoft Windows XP Home Edition Version 2002 Service Pack 3. I think this answers the question that it is not XP 64 but want to make sure and would appreciate any help.

    XP Home does not come as an x 64 version.

    How to determine whether a computer is running a 32-bit version or the 64 bit version of the Windows operating system. http://support.Microsoft.com/kb/827218

    Windows XP if you have Windows XP, there are two ways to determine if you are running 32-bit or a 64-bit version. If one does not work, try the other.

    1. Click Startand then click run.
    2. Type sysdm.cpl, and then click OK.
    3. Click the general tab. The operating system is displayed as follows:
      • For a 64-bit version operating system: Windows XP Professional x 64 edition Version < year=""> appears under System.
      • For a 32-bit version operating system: Windows XP Professional Version appears under System.

      Note is a placeholder for a year.

    1. Click Startand then click run.
    2. Type winmsd.exe, and then click OK.
    3. When System summary is selected in the navigation pane, search for processor under item in the details pane. Note the value.
      • If the value that corresponds to processor starts with x 86, the computer is running a 32-bit version of Windows.
      • If the value that corresponds to processor starts with ia64 or AMD64, the computer is running a 64-bit version of Windows.

    If you cannot determine the number of bits of the operating system with these methods, go to the "Next steps" section (of the KB article)

  • Determine the number of traditional DAQ hardware using Labview.

    Hello

    Anyone can answer the question:

    Regarding materials traditional DAQ, for example the DMM OR-4060, how

    can I programmatically determine the number of device which can be seen in MAX?

    With the help of Labview 8.5, I looked into the following function libraries:

    NOR-DMM

    VISA

    NOR-ModInst

    None of the libraries above seem to provide access the number of traditional DAQ hardware

    property, which is automatically assigned.

    Background:

    I have a 18 PXI chassis containing 2 DMM, in housing 3 and 14.

    The DMM may be a mixture of type OR-4060 or NOR-4070.

    The system is controlled by a Teststand sequence employing IVI - DMM

    steps.

    When you set the IVI logical name step, I am referring to IVI device defined Sessions

    Max - rutime determined.

    Labview VISA functions using I can determine the model, i.e. 4060 or 4070.

    Because the DMM just locate into the slots 3 or 14, then the devices NOR-4070

    are accessible using the following descriptors of resources: PXI1Slot3 or

    PXISlot14.

    (The 4070 is compatible DAQmX.)

    So for devices OR-4070, I can predefine 2 Sessions of IVI device, knowing

    It will be sufficient for all occasions, when I run my Teststand sequence, which will be

    determine what device session to use at run time.

    But I'm stuck for the NOR-4060.

    At the Session of the device, I have to give a descriptor of resource the following

    format: DAQ::x (where x is the device number)

    I could create device 18 sessions each reference to a different DAQ::x, but to select

    the good pair during execution, I would need to programmatically determine the device

    number, i.e. the value of x.

    Where my question.

    The closest I came to a solution was an entry of the Knowledge Base that said that the

    Assigned device number would be the same as the slot number, providing the

    Number of the device had not previously configured manually.

    Unfortunately, our device numbers have been changed manually and maybe in the future.

    All popular solutions.

    Gary.

    Hi Gary,.

    Good afternoon and I hope that your well today.

    Thanks for your post and I want to help you solve your problems.

    I don't think there is just a function that you can use to identify and collect information on all cards with your. For traditional DAQ devices in particular I suggest using the Information.vi of DAQ devices get.

    If you look at this link,

    SAL posted an example VI entitled, find dev trad.vi.

    You can get information such as serial number, Dev name and the Base address.

    The assistance of the respective drivers to collect information you could generate an array of strings with the information that you need all the slots.

    Please let me know if this is useful at all,

  • Dataexport to Essbase Calc script format

    Hello

    We try to write a calc script to export the data from the BSO cube to flat file. We want all the dimensions (currents and Sparse) online and the data in the column. Currently, we have tried all the different options of DataExport but we continue Dense members in columns. Is it possible to get the flat file in the following format?

    Outside dimensions:

    (Dense) account

    (Dense) period

    Company (rare)

    Year (rare)

    File format: (order of dimension is not important for us)

    Company, year, time, account, given

    K1, FY15, Oct, sales, 123

    Please suggest. Appreciate all the help.

    Thank you

    The only way I know to do would be to add a single dense dimension member (let's call it data) can make your dataexportcolumnheader if you can not change your existing cube, and then make a copy of it, add the dimension to export for the first cube in column format and use a load to load into the second cube rule. then you can do the dataexport

  • Determine the number of the motherboard Dell PowerEdge T410

    I work with a server remotely try to determine the number of points for our mother. It's a PowerEdge T410, nothing is coming through system information or serial number. In my view, that there is a certain different models available. Is there anything that can help me refine it? We have tried to add a second processor and discovered that the second take was damaged by the manufacturer.

    Antares-USA,

    Normally, when you enter your number at support.Dell.com, you can click on the System Configuration and then see the original setup the server was in when he left. If that does not produce the information, then you must simply PRIVATE MESSAGE the serial number for me and I can let you know the motherboard installed.

    Make sure of me private message with the information for your security.

    Let me know.

Maybe you are looking for

  • Why firefox does not cause a download to have an extension .part. How can I get rid of him.

    What are the causes of .part files

  • Satellite C850D-11 q Touchpad Auto locking at startup?

    I was watching the Eurovision Song Contest and had to download the so-called Octoshape Streaming Service to watch... everything was going well until it randomly froze and my mouse responds more... some four restarts later and it started to work again

  • xw8200 Workstation processor upgrade

    Hello world! I recently acquired a workstation xw8200. I know its old technology, but it works pretty well actually, even with win7. However, I expect the squeek little more life out of it as a secondary computer. The first thing I want to do is max

  • Automatically change the exposure time

    Hi all Please, here, I have a program performing two different processes. I have only one camera and I need to set the exposure time of camera for example for 200 microseconds for the first process (this process takes about 30 seconds). After that th

  • X 230 wireless Display (WiDi)

    I recently bought a X 230 but I ordered with the Thinkpad bgn and it will not work with the wireless display. Can I change the map of bgn Thinkpad Intel Centrino Wireless-N 2200 wireless card to get the WiDi for work?  If yes where can I get this car