Check the model of level 0 members and remove data

Hi all

I stuck everything by a script. Would appreciate any help.

Here is the cost center hierarchy:

-CC_NL

-CC_NL_1

-NL_10

-NL_11

-CC_NL_2

-NL_20

-NL_21

-CC_NL_3

-CC_NL_4

--

--

--

Now my requirement is:

I have to check if Member of level 0 of CC_NL begins with CC_NL (i.e. CC_NL *), then delete this member of level 0 data. As in the hierarchy above CC_NL_1 and CC_NL_2 are not members of level 0 so no need to do anything other than CC_NL_3 and CC_NL_4 are members of level 0, so we need to delete the data present in it.

I tried the above condition to the code below:

FIX ("CC_NL")

@MATCH ((@RELATIVE("CC_NL",0)), "CC_NL *")

ENDFiX

but it did not work as 'MATCH' fn require a member name and for that Member and its descendants, it will search the model. so above @RELATIVE("CC_NL",0) will not work because it will take members of level 0 and by definition Match fn does not work like that

Appreciate pointers to solve the problem.

Thank you

How about you match and parent?

Fix (@LEVMBRS(Market,0) AND @MATCH("Market","New*"))

Concerning

Celvin

Tags: Business Intelligence

Similar Questions

  • How one doesn't check the battery power level?

    How is - a check the battery power level, rather than just waiting for the clock to tell me that it is 10%?

    The watch face, dragging up and show your looks. Swipe to the left to the right to find the battery look.

    If you don't see it, on your iPhone, open the application of the watch and under the eyes, don't forget it's on.

    It can also be added as a Complication to a lot of faces watch so it is always visible.

  • Netflix in Media Center returns a 'there was a problem of data recovery. "Check the works of your internet connection and try again" error instead of loading Netflix data.

    context: a previous thread with an identical title never responded, the problem just disappeared.  Well its been two weeks since then and the problem came back.

    somethings which may or may not apply: internet TV seems to work better in media center.  All updates have been applied to H.P. of Vista SP2. Netflix works fine in ie8 (such as the internet, of course). Tried to delete all the Internet Options, delete browsing history section of Internet Explorer. I get the same error message with my windows 7 professional media center, but netflix seems to play anyway (no game with vista). I recently installed quicktime alternative 2.72 to see what it was and how it worked, then removed and put back in quicktime.

    Tried / symptoms:

    -Remove all the browsing history (econcepts)
    -Same message on Win7pro but works even when (econcepts)
    -Works on Win7 no problem (omegafiler)
    -Works in ie 8 (econcepts)
    -Works in crome (Martin TX)
    -Consensus is that it started around December 30, 2009 (GeoffG1, johnetX, me)
    -Remove and reinstall silverlight (omegafiler)
    -Remove and replace netflix plugin (omegafiler)<- how="" did="" you="" do="" that="">
    -Netflix says: microsoft problem (Nitestalker)
    -Microsoft is silent (this thread - on vacation?)
    -Same problem on 32-bit and 64-bit VMC (JRSMiamiFL)
    -No applied update (johnetx)<- perhaps="" date="" related="" or="" drm="" date="">
    -Disconnect from netflix, you reconnect again - ultimately the same error (chicagokiwi)
    -Tried to reduce the number of items in the queues to well below the limit of 200 (econcepts)
    -Tried the register / unregister the third wire procedure, no joy (does not break anything else however)
    -Disabled the firewall, no change (econcepts)

    related topics:
    http://social.answers.Microsoft.com/forums/en-us/vistaprograms/thread/0c154c0a-1fcb-4353-8c5e-b394e885256d

    http://social.answers.Microsoft.com/forums/en-us/vistaprograms/thread/aaab24a0-4BB9-42FA-a5ee-46a733d6560f

    http://social.answers.Microsoft.com/forums/en-us/vistamedia/thread/f05f69c7-6456-4117-B302-27c08886ea1e

    Someone else knows Netflix not being is not able to connect?  It started yesterday (30/12/2009) for me.  I looked fine the day before without problem.  The message I get says "there was a problem of data recovery.  Check the works of your internet connection and try again. Ok.  I make it work with both my VMC - one with the service pack and the other without.  My OS updates have been loaded in early December, so I don't see how this could it be.  I searched and found this problem has come up before, but I have not found a solution.  I made NO changes to my HTPC.

    Those who have and solved this problem.

    UPDATE UPDATE UPDATE UPDATE UPDATE UPDATE *.

    2009-01-05 has attempted to start Netflix this morning and you know, it works on both my VMCs.  That's the good news.  So now the real questions are:

    Only 20 people reported it as a problem and only 6 on the green button.  I believe that it affected all the world with Media Center.  So why not discussed much?

    It already happened, causes a stir and silently slips without known cause or cure.  How can we find out what caused this and how to prevent it from happening again in the future?

    *******************************************************************************************

  • Failed to load movies Netflix in Media Center message appears to indicate there was a problem of data recovery. Check the works of your internet connection and try again.

    Original title: cannot load Netflix movies in Media Center

    Netflix photo click on the message appears indicating a problem of data recovery.  Check the works of your internet connection and try again.

    Hi Barbarasimonetti,

    (1) since when are you facing this problem?

    (2) remember to make changes?

    (3) what is the complete error message you receive?

    Method 1: You can follow the steps described in the article below

    Known issues and limitations of Netflix on Windows Media Center for Windows Vista

    http://support.Microsoft.com/kb/972496

    Method 2: If a Protection of resources Windows (WRP) file is missing or is damaged, Windows may not behave as expected. Auditor of file system (CFS) scan to fix all of the corrupted system files. To do this, follow the steps mentioned in the link below:

    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7

    http://support.Microsoft.com/kb/929833

    Thank you, and in what concerns:

    Ajay K

    Microsoft Answers Support Engineer
    ***************************************************************************

  • HP 6500 A plus: How can I check the printer ink levels

    I can't find information about levels of ink on my printer.  I followed the instructions recommending I go to control panel and click on Printing Preferences, and then services but do not see services in the menu to the title of printing services.  What I am doing wrong?

    Hi Beverly,.

    Please follow the steps by which you should be able to get the ink cartridge ink level.

    1. move the arrow of the mouse to the right of the screen and you will find the search option.
    2. click on it, and then search for the printer model number (HP 6500 has more) and find you it in the list and click on the printer.

    3. There will be an assistant to HP printer pop - up that will give you the option of ink that are listed there.

    Let me know if you are able to access the wizard from the printer and check the level.

    Say 'Thank you' by clicking on the star of congratulations in the post helped you.
    -Please indicate the position that solved your problem as "acceptable Solution".

    Concerning

    Aneesh

    Although I am an employee of HP, I speak for myself and not for HP.

    -Say 'Thank you' by clicking on the star of congratulations in the post helped you.
    -Please indicate the position that solved your problem as "acceptable Solution".

  • Photosmart HP 7510 - can't find the option to check the ink cartridge levels

    I used my HP Photosmart 7510 for about 3 years on my Windows 7 computer. In the past when I clicked on the icon of the printer, it would bring a window that allowed me to select what I wanted to do with the printer.  Analyze, check the properties, buy supplies and check ink cartridge levels, etc.  I always get a window but have lost some of the options. Unfortunately I don't remember what that all of my choices was previously, but the attached image shows the choices I get now.

    There was at least two other choices that included things like ink levels scan, audit, shopping.  I don't know what happened to make me lose these options.

    Hello

    Try to start the printer FRONT of the computer. The menu now has small change, ink levels are always on top. You can update its software (Oct 2012) by using the following package:

    http://ftp.HP.com/pub/softlib/software12/COL39677/MP-108855-3/PS7510_1315.exe

    Kind regards.

  • Impossible to reformat the computer after the OEM disc error: check the model number.

    Original title: Updated Windows and now I can't reformat my Sony Vaio... why?

    I have a Sony Vaio VGN-NR110E, only thing replaced was the battery, so no problem of "tattoo", but the software, discs and OEM disks say "check model number", won' t reformat the computer and install the factory specifications... Not called Sony, they have no idea because they are Sony.  Looking for people online say it happens after a windows update.  the model number is always in the BIOS, but don't know what model number, it's the computer for some reason any.

    How can I get it to reformat or should I switch to ubuntu if I reformat?

    I think the best is to start a thread here:

    Because I don't have a Vaio, there's not much I can do to help you. I'm sorry.
  • How to check the model number of my Z3?

    Hello

    I just bought a Xperia Z3, but the frequency of the LTE does not seem to work.

    I took the phone to Sonymobile.com, but the software version changes every time I enter the site.

    For example, yesterday the asociated to my phone software version was 23.2.A.1.62, today, earlier was 23.1.A.0.726, now the version I see is 23.0.A.2.93.

    A friend told me the knowing in my IMEI asociated software version can I check if the model is the D6603 or the D6653.

    I bought the D6603 model, because it is supposed to be the model that works with LTE frecuencies on my country.

    The D6653 does not work with LTE on my country.

    Can anyone help my find if my Z3 is the D6603 model?

    Thank you!

    I see.

    Well, that is a bit complicated.

    To check the actual hardware, then you could plug your phone with your PC via a USB cable and open PC companion and see its model name it.

    Otherwise, you may download AnTuTu Benchmark even confirmation on specifications.

    Last but not least try this

    Open the Dialer App > press on * #* #* #* #7378423 > Press Info Service > Tap Model Info

    See if theres no difference in the model names these three steps.

    Just in case, is your phone have unlocked bootloader or / and have root access?

  • Check the file types flat column list and column

    Hi guys!

    Is there an "easy way" to check if the source file names flat column and column types correspond to the types and the column name for the data store target?

    Kind regards

    PsmakR

    Hello

    Is there a way that I've used some time to validate if the data are under the target.

    Conditions:

    (1) the source file should have all the columns as "String".

    (2) all the column analyzed mapping has to go to the "staging area".

    How to: (average oracle)

    (1) create a database (by the ODI procedure) function as:

    create or replace function $ F _DATATYPE (pData in varchar2, pDatatype in varchar2, pFormat in varchar2)
    return varchar2 as

    date of $vdate;
    number of vNumber;

    BEGIN

    If pDatatype = ' then / * Date * /.

    $vdate: = to_date (pData, pFormat);

    elsif pDatatype = ' only then / * number * /.

    If pFormat is null then
    vNumber: = to_number (pData);
    on the other
    vNumber: = to_number (pData, pFormat);
    end if;

    end if;

    Returns "OK";

    EXCEPTION
    While OTHERS then
    return "KO."

    end of F$ _DATATYPE;

    (3) now, you can create a constraint to each column in the source you want to validate data as:

    = 'OK' F$ _DATATYPE(my_source_column, 'D', 'ddmmyyyy hh24:mi:ss') / * for a date as an example column * /.

    (4) drag / move the source (table model) data source in the package and a table of $ E with all errors will be created.

    This help you?

  • How to check the total memory used by Oracle and user who use more memo

    Hello

    I use oracle 10.2.0.4 on Windows 2003 server SP2 version.

    1. How can I check the "total memory" used by Oracle

    2. which users use more CPU resources.

    Thanks and greetings
    Amit

    Hello

    Oracle EM is the best to identify the use of the processor and memory used by each session.

    In addition, use after query to calculate the memory used by each session of the.

    SELECT to_char (ssn.sid, '9999') | ' - ' || NVL (ssn.username, nvl (bgp.name, 'background')) |
    NVL (Lower (SSN.machine), ins.host_name) "SESSION."
    TO_CHAR (prc.spid, '999999999') ' PID/THREAD. "
    TO_CHAR ((se1.value/1024) / 1024, '999G999G990D00'). "MO" "SIZE."
    TO_CHAR ((se2.value/1024) / 1024, '999G999G990D00'). "MO" 'MAXIMUM SIZE '.
    V $ sesstat se1, v$ sesstat se2, v$ session ssn, v$ bgprocess bgp, v$ process RPC.
    v$ ins instance, v$ statname stat1, v$ statname stat2
    WHERE se1.statistic # = stat1.statistic # and stat1.name = 'pga session in memory.
    AND se2.statistic # = stat2.statistic # and stat2.name = 'pga memory max session'
    AND se1.sid = ssn.sid
    AND se2.sid = ssn.sid
    AND ssn.paddr = bgp.paddr (+)
    AND ssn.paddr = prc.addr (+);

    Kind regards
    Charrier

  • How to check the type of datamodel in case of response data from application of DataByConstraint in the plugin development web vsphere client

    Hello, I am new in plugin development web vsphere client.

    I need to send multiple DataByConstraintRequest (say A and B data model class) within a class of script simple action. But to handle events of response data, we use

    [ResponseHandler (name = "{com.vmware.data.query.events.DataByConstraintRequest.RESPONSE_ID}")]

    public void onVmListRetrieved (request: DataByConstraintRequest,)

    result: collection ArrayCollection): void {}

    The result is an ArrayCollection of MyVmData of the objects collection

    }

    Here how should I come to know this result variable is either A or class B data model. (including the result can be a collection of empty array)

    In case of DataByModel, we have events in response to the separate data for the data model class, but I couldn't find the same for DataByConstraint.

    You can define a unique ID_Demande for each DataByConstraintRequest and check in the response Manager.  'requestId' is a field of the class of basic DataRequest.

  • If I install the iCloud drive on my laptop and remove this app from my iphone due to the lack of storage, to lose all the data that I saved in there?

    If I install icloud drive in my laptop where all my important data is saved and uninstall the app from my iphone icloud drive, my data is secure?

    A couple of things...

    -If you have an Apple laptop or desktop, with a software update system, so there is no way to 'install iCloud Drive' to this topic as it is already there as a function of iCloud.

    -remove the iCloud (app) drive icon on your iPhone will do nothing.

    -If your data is already in iCloud, so rest assured, it is already safe.

  • Is it normal that my iPhone 6 sec to drain the battery overnight so that wifi and cellular data are turned off?

    My 6s iPhone drains the battery overnight

    WiFi and cellular data off

    Not normal.

  • The best location for vcenter VM and placeholder data warehouses

    Hello

    I have an SRM installation with 2 sites.  The sites are separated by metro trunk of layer 2 ethernet between the sites.

    Site has

    1 EqualLogic PS6100

    2 ESX servers configured as cluster

    There is a single data store volume over the San with all virtual machines in this cluster

    There is one instance of vCenter to this place located in the same data as the other virtual machines store

    There are also a few other volumes on the SAN used for the RDM disks in virtual machines

    I also created a small volume of 1 GB as a VMFS data store and have it mapped in SRM to use as a placeholder for a data store

    What are your thoughts on that?  Is this the best way?  I could use the local storage on the ESX servers?  Main VM can be used for fictional settings or my data store?

    SRM is installed on the same VM as vCenter

    MRS. uses SQL Express on the local vCenter VM

    vCenter also uses SQL Express

    Site B

    1 EqualLogic PS4100

    1 ESX Server, so no clustering

    There is a single data store volume over the San with all virtual machines running on ESX Server

    According to the requirements of the SRM, there is a separate instance of vCenter operating as a virtual machine, and it is not in bound mode.  Should it be? / Should it be?

    The number of volumes on the SAN and their goals is the same Site A, the only difference is the size of the volume is smaller because less machines virtual running on this site.

    Replication has been implemented and verified the bi-directional working.

    We use replication on Bay

    OK, here's the problem... When I do a recovery expected, the process stops all the virtual machines on this site that includes the server vCenter/SRM.  I guess that to happen because it's on the same database as my other virtual machines?

    If I run the recovery in emergency mode, vCenter is then moved to the other site and power.  Because the sites are layer 2 and on the same vlan, MRS. watch sites are connected by 2 instances SRM can meet eventhough they are now running on the same site.  This does not seem right to me.

    Can someone suggest a better configuration?

    Thank you

    Brian

    Hello

    There is one instance of vCenter to this place located in the same data as the other virtual machines store

    What are your thoughts on that?  Is this the best way?

    In addition to vCenter VMS residing on the store of data replicated, it's OK.

    I could use the local storage on the ESX servers?

    I think that you can, but it is not recommended, because it creates dependency on the availability of the single ESX host.

    Main VM can be used for fictional settings or my data store?

    I would not recommend this. This will create a mess on the data store. Continue to 1 GB placeholder data store you created and do not replicate.

    MRS. uses SQL Express on the local vCenter VM

    vCenter also uses SQL Express

    Consider that SQL express is adapted to the environment of very small size (don't remember the numbers now). Make sure that you do not exceed the limits.

    1 ESX Server, so no clustering

    There is a single data store volume over the San with all virtual machines running on ESX Server

    This host has sufficient capacity to run all the virtual machines together (Site A and Site B)?

    I recommend having two hosts for prallele and accelerate the recovery process (multiple virtual machines can be powered on simultaneously).

    According to the requirements of the SRM, there is a separate instance of vCenter operating as a virtual machine, and it is not in bound mode.  Should it be? / Should it be?

    You don't have to configure them in bound Mode. This is for ease of management only (license, roles and inventory)

    OK, here's the problem... When I do a recovery expected, the process stops all the virtual machines on this site that includes the server vCenter/SRM.  I guess that to happen because it's on the same database as my other virtual machines?

    Yep, do not put vCenter VM on the VMS data store and reproduce at all.

    If I run the recovery in emergency mode, vCenter is then moved to the other site and power.  Because the sites are layer 2 and on the same vlan, MRS. watch sites are connected by 2 instances SRM can meet eventhough they are now running on the same site.  This does not seem right to me.

    Do not replicate vCenter / SRM VM and that will not happen.

    Michael.

  • Have picture but no dsound during playback of dvd videos.have checked the computer volume levels in system tray - everything ok

    Help!

    Picture but no sound when playing dvd videos - have checked volume levels-all seem ok any ideas?

    Hi silverfox16,

    (1) is this problem limited to DVD videos?

    (2) you get an error message?

    (3) what is the file format of the video?

    (4) who application\player you use to play the video?

    Method 1:  Run the troubleshooter of reading, then check

    Tips for solving common audio problems
    http://Windows.Microsoft.com/en-us/Windows-Vista/tips-for-fixing-common-sound-problems

    Method 2: Download and install codecs, see the link below
    How can I find a codec?

    You can see the article below for file types that Windows Media Player supports

    Information about the media file types supported by Windows Media Player
    http://support.Microsoft.com/kb/316992

Maybe you are looking for

  • How to search for the artist in the iTunes Store app

    I am only looking for artists and never for anything else. Never for a specific song, never for no music. seems that the artist is the most obvious way searching for music. I'm I missed something? Where is "search by artist"?

  • TOuchpad down, allow me to resize the text in the browser window

    I have a HP Envy laptop 17.3 with a touchscreen tablet, which does not allow me to scroll through, or to be used with the CTRL key to change the factor zoon inside windows (for example, a browser window). I went for the touchpad settings and there is

  • Antivirus software

    I need to remove the old anti-virus software BEFORE I can download again? I have Norton (came with my computer) and I want Macaffee. And how? I'm a little computer illiterate... Thank you!

  • not enough space to copy the files

    Using a 1 GB SD card with ~ 500 Mb of free space. Try to copy a file 1.8 MB it says there is not enough free space to complete the operation. Emptied the trash, restarted-still same problem. Any file I try to copy.

  • Where can I download this driver for my Toshiba laptop?

    Network card (Details) Realtek RTL8187SE Wireless 802. 11b / g 54Mbps network adapter PCIE (Device status) This device does not work properly because Windows cannot load the drivers required for this device. (Code 31) Click on 'Search for solutions'