MDX - Help with IIF syntax

I have a member in Accounts named 'Marketing' that needs a MDX formula with this logic:
If the current member in the Market dimension is an idescendant of 'Total_Markets'
Then
[Corp_Level] * ( [Sales] / ( [Sales] , [Total_Markets] ) ) , [Corp_Level] )
Else
Just return the current value in 'Marketing'.
I'm trying:
IIF ( [Market].CurrentMember IS [Total_Markets].Descendants,
[Corp_Level] * ( [Sales] / ( [Sales] , [Total_Markets] ) ) , [Corp_Level] ) , [Marketing] )
Getting this error... I'm probably way off.....
Error(1260052) - Syntax error in input MDX query on line 1 at token 'Descendants' Marketing

Glenn,
I tried that yesterday. There is absolutely no help anywhere on how to properly format my query. I must include 'basis' in my MaxL somehow and I couldn't find a single example of how to construct the MaxL properly. I'm so frustrated as I understand MaxL and CrossJoin but the link you sent is just not resonating for whatever reason. Here's my atttempt at that.
login 'admin' 'epmtestdrive' on localhost;
execute allocation process on database ASOAlloc.ASOAlloc with
pov "Crossjoin(Descendants([Year],[Year].levels(0)),
Crossjoin(Descendants([Product],[Product].levels(0)),
Descendants([Scenario],[Scenario].levels(0))))"
amount "([Corp_Level])"
/* amount "([Sales],[Total_Markets])" */
target ""
range "([Marketing] )"/* ,[Payroll],[Miscellaneous])" */
/* range "CrossJoin({[Marketing],[Payroll],[Miscellaneous]},
Descendants([Total_Markets],[Market].levels(0)))" */
basis           "([Sales], [Total_Markets])"
share;
logout;

Similar Messages

  • Help with PHP syntax

    Hope someone can help out again with a bit of syntax.
    I have a bit of code that acts a little loop displaying records from a table :
    PHP Code:
    <?php 
         $groups = array(); 
    while ($row = mysql_fetch_assoc($rs2011nominees)) { 
        $groups[$row['Alphabet']][] = $row; 
    foreach ($groups as $alphabet_letter => $rows) { 
        echo "<tr><td><br><h2>$alphabet_letter</h2><br></td></tr>"; 
        foreach ($rows as $row) { 
            echo "<tr><td><a href=\"http://www.goodsafariguide.com/hit_counter2.php?LodgeID=" . $row['LodgeID'] . " \" >" . $row['Lodge'] . " </a></td></tr>";
    ?>
    I'd like to add in another field next to the Lodge field, complicated by the fact that its to display an image. (The field is winner10, and just contains the string winner10.gif which references the gif.)
    So that would normally look like :
    <img src="../images/<?php echo $row['winner10']; ?>"  alt="Image Name" border="0"/>
    But I'm not sure how to add that in to the existing code, so if anyone could for whom its second nature could help out, I'd be very grateful. 
    Thanks.

    Thank you - got there in the end.
    [php]<?php
         $groups = array();
    while ($row = mysql_fetch_assoc($rs2011nominees)) {
        $groups[$row['Alphabet']][] = $row;
    foreach ($groups as $alphabet_letter => $rows) {
        echo "<tr><td><br><h2>$alphabet_letter</h2><br></td></tr>";
        foreach ($rows as $row) {
    echo "<tr><td><a href=\"http://www.goodsafariguide.com/hit_counter2.php?LodgeID=" . $row['LodgeID'] . " \" >" . $row['Lodge'] . " </a>
    <img src=\"../images/lodgeawardicons/". $row['winner10']. "\"  alt=\"Image Name\" border=\"0\"/>
    <img src=\"../images/lodgeawardicons/". $row['runnerup10']. "\"  alt=\"Image Name\" border=\"0\"/>
    <img src=\"../images/lodgeawardicons/". $row['finalist10']. "\"  alt=\"Image Name\" border=\"0\"/>
    </td></tr>";
    ?>[/php]
    Although now I've noticed that the results within each group are not ordered alphabetically...

  • Need help with e4x syntax for children in ADG TreeView column

    I would like to display Hierarchical XML data as a treeView
    in a ADG control. I can bind the first (parent) level of my XML to
    the ADG using a HierarchicalData Dataprovider, but I can't figure
    out the syntax to get the children.
    The attached code shows the function where the XML is
    received, and evaluated one level deep. The var "eventdefs" is the
    ..Group nodes of the XML, and the declaration of the ADG. The ADG
    binds the eventdefs as hierarchical data, and specifies one column
    with the datafield as @eventgroup. This works fine and shows the
    top level nodes.
    I have specified Event as the childrenfield, but I don't see
    anything in the data grid - nor do I understand how to specify a
    different value of datafield for the second level of nodes.
    I want to show the value of the attribute "eventgroup" on
    parent nodes, and show the value of the attribute "description"
    next to the child nodes. Can this be specified in the mxml? Or do I
    need a label function, or something else?
    TIA!
    Here is my XML document:
    <list>
    <Group eventgroup="">
    <Event uniqueid="63" description="Error:enter valid Email
    Address " displayorderingroup="60" displayorder="86" />
    <Event uniqueid="64" description="Error:unable to find
    account for email address " displayorderingroup="61"
    displayorder="87" />
    </Group>
    <Group eventgroup="CEP Events">
    <Event uniqueid="244" description="CEP:EveryHit; "
    displayorderingroup="242" displayorder="253" />
    </Group>
    </list>
    <mx:Script>
    <![CDATA[
    [Bindable("eventDefsChanged")]
    private var _eventDefs:Object;
    public function set eventDefs(m:Object):void
    // We expect m to be a XML document, with "Group" as the
    name of the highest level (parent) nodes
    _eventDefs = m..Group;
    adg_es.dataProvider = eventDefs;
    adg_es.validateNow();
    dispatchEvent( new Event( "eventDefsChanged" ) );
    public function get eventDefs():Object
    return _eventDefs;
    ]]>
    </mx:Script>
    <mx:AdvancedDataGrid id = "adg_es"
    displayItemsExpanded="true">
    <mx:dataProvider>
    <mx:HierarchicalData id ="hd" source = "{new
    HierarchicalData(eventDefs)}" childrenField="Event"/>
    </mx:dataProvider>
    <mx:columns>
    <mx:AdvancedDataGridColumn dataField="@eventgroup"/>
    </mx:columns>
    </mx:AdvancedDataGrid>

    Use TAKE function 
    int numberOfrecords=10; // read from user
    listOfItems.OrderByDescending(x => x.CreatedDate).Take(numberOfrecords)

  • Need help with incorrect syntax error during a record update

    I'm getting the error below but I cannot figure out what I'm doing wrong.
    Error Executing Database Query.
    [Macromedia][SQLServer JDBC Driver][SQLServer]Incorrect syntax near the keyword 'WHERE'.
    The error occurred in C:\ColdFusion9\wwwroot\Intranet\DM\Admin\Maintenance-BulbBaseType.cfm: line 23
    21 :             UPDATE [Bulb Base Type Table]
    22 :             SET [BulbBaseTypeDesc] = '#TxtBulbBaseTypeDesc#',
    23 :             WHERE ([BulbBaseTypeID] = #TxtID#)
    24 :         </cfquery>
    25 :         <cfset TxtID = 0>
    I have set my cfparam as:
    <cfparam name="Submit" default="">
    <cfparam name="TxtID" default=0>
    <cfparam name="TxtBulbBaseTypeDesc" default="">

    A good rule of thumb when encountering this sort of error message is to examine the preceding line of code.
    If you do that with your query, you should spot the trailing comma at the end of the line.
    Also: read up on CFQUERYPARAM.  Don't hard-code dynamic values in your SQL string.
    Adam

  • Need help with Xquery Syntax.

    Hi there,
    I am using a Berkeley XML DB and I have a xquery which I need to execute in a particular format. I have the following xquery:
    for $a in collection("test.dbxml")/Bookstore/Book where $a/book_ID/text() eq "6" return $a/book_ID/text()
    This xquery runs fine and I have the end result to be 6.
    I need the same result to be specified in a XML TAG like <order_ID> 6 </order_ID> for which I have the following xquery:
    for $a in collection"test.dbxml")/Bookstore/Book where $a/book_ID/text() eq "6" return <order_ID>$a/book_ID/text()</order_ID>
    This xquery runs but return me back with the string "<order_ID>$a/book_ID/text()</order_ID>".
    Can you please help me to correct the above output to result in "<order_ID> 6 </order_ID>"
    Thanks.

    Try
    for $a in collection("test.dbxml")/Bookstore/Book
    where $a/book_ID/text() eq "6"
    return <order_ID>{$a/book_ID/text()}</order_ID>Lauren Foutz
    Edited by: LaurenFoutz on Apr 17, 2009 9:41 AM

  • Need help with sql syntax....

    The table  "tblL" has columns a1 and a2. When the "where" clause is commented the query out runs fine. When "where" is uncommented I get a syntax error. Any help appreciated.
    select a1, a2 from
    select top 5 * from tblL
    ) as T
    -- wbere (T.a1 = T.a2)                  -- when uncommented get syntax error
    -- wbere (a1 = a2)                       -- when uncommented get syntax error too
    Error:
    "Incorrect syntax near 'wbere'...."
    TIA,
    edm2

    "Incorrect syntax near 'wbere'...."
    The keyword is wHere, not wBere, you typed a B instead of H
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Error in my build.xml file (help with spotting syntax error requested)

    Hi
    I have written an XML file called build.xml for one of my applications. My XML editor complains that there is an error at the last line of the XML file, but I simply find it unable to correct the errror.
    It says:
    Fatal error:Build.xml[76:3-9]: End-Tag without start-tag
    The XML file itself:
    <project basedir="." default="deploy" name="concepts">
    <property name="src.dir" value="src"></property>
    <property name="build.dir" value="${basedir}/build"></property>
    <property name="build.lib" value="${build.dir}/lib"></property>
    <property name="dist.dir" value="dist"></property>
    <property name="classes.dir" value="${build.dir}/classes"></property>
    <property name="build.etc" value="${src.dir}/etc"></property>
    <property name="build.resources" value="${src.dir}/resources"></property>
    <property name="lib.dir" value="lib"></property>
    <property name="web-inf.dir" value="WEB-INF"></property>
    <property name="war.name" value="concepts"></property>
    <property file="../common.properties"></property>
    <target name="init">
    <mkdir dir="${build.dir}"></mkdir>
    <mkdir dir="${classes.dir}"></mkdir>
    <mkdir dir="${dist.dir}"></mkdir>
    </target>
    <target name="deploy" depends="clover-yes, clover-no">
    <javac srcdir="${src.dir}" destdir="${classes.dir}" classpath="${libs}" debug="off" optimize="on" deprecation="on" compiler="${compiler}">
    <include name="org/apache/commons/fileupload/**/*.java" />
    <include name="com/portalbook/portlets/**/*.java" />
    <include name="com/portalbook/portlets/content/**/*.java" />
    </javac>
    <target depends="init" name="compile">
    <javac debug="true" deprecation="true" destdir="${classes.dir}" optimize="false">
    <src>
    <pathelement location="${src.dir}"></pathelement>
    </src>
    <classpath>
    <fileset dir="${lib.dir}">
    <include name="*.jar">
    </include>
    </fileset>
    </classpath>
    </javac>
    </target>
    <target depends="compile" name="war">
    <war destfile="${dist.dir}/${war.name}.war" webxml="WEB-INF/web.xml">
    <classes dir="${classes.dir}"></classes>
    <lib dir="${lib.dir}"></lib>
    <webinf dir="${web-inf.dir}"></webinf>
    </war>
    </target>
    <!-- create the portal-concepts-lib.jar -->
    <jar jarfile="${build.lib}/concepts-lib.jar">
    <fileset dir="${classes.dir}"></fileset>
    </jar>
    <jar jarfile="${build.lib}/concepts.war" manifest="${build.etc}/concepts-war.mf">
    <fileset dir="${build.resources}/concepts-war"></fileset>
    </jar>
    <!-- concepts.ear -->
    <copy todir="${build.resources}/concepts-ear">
    <fileset dir="${build.lib}" includes="concepts.war,concepts-lib.jar"></fileset>
    </copy>
    <jar jarfile="${build.lib}/concepts.ear">
    <fileset dir="${build.resources}/concepts-ear" includes="concepts.war,concepts-lib.jar">
    </fileset>
    </jar>
    <target depends="deploy" name="explode">
    <taskdef classname="org.jboss.nukes.common.ant.Explode" classpath="${libs}" name="explode"></taskdef>
    <explode file="${build.lib}/concepts.ear" name="concepts.ear" todir="${build.lib}/exploded"></explode>
    </target>
    <target depends="war" name="all"></target>
    <target name="clean">
    <delete dir="${build.dir}">
    </delete>
    <delete dir="${dist.dir}">
    </delete>
    </target>
    </project>
    I am a little inexperienced in XML files. So I am unable to spot the error.
    I would greatly appreciate it, if some kind soul were to help me out.
    thanks a lot

    The tag
    <target name="deploy" depends="clover-yes, clover-no">...is never closed.
    close that tag:
    <target name="deploy" depends="clover-yes, clover-no">
         <javac srcdir="${src.dir}" destdir="${classes.dir}" classpath="${libs}" debug="off" optimize="on" deprecation="on" compiler="${compiler}">
              <include name="org/apache/commons/fileupload/**/*.java" />
              <include name="com/portalbook/portlets/**/*.java" />
              <include name="com/portalbook/portlets/content/**/*.java" />
         </javac>
    </target>Second error is that the depends in there (clover-yes, clover-no) are not existing as targets in your xml.

  • Need help with Return syntax

    I though that the two pieces of code below would perform the same function but apparently i am missing something. The code is supposed to multiply two integers. Both use the add method.
    //Method that adds two integers this method works great
    public static int add(int a, int b)
             if(a <= 0)
                return (a < 0) ? add(MCH.succ(a), MCH.pred(b)) : b;
             else
                return (a > 0) ? add(MCH.pred(a), MCH.succ(b)) : b;
          }//The variable total is defined earlier as what ever a originally was and is not modified.
      //This method for multiplying also works great for positive numbers but i wanted to shorten it.
      public static int multiply(int a, int b)
              if(b==1)
                    return a;
              return multiply(add(total,a),--b) ;
        //This code i though was the same as above just in one line but apparently not
        //10*10 will return 10
        // 5*5 will return 5
        public static int multiply(int a, int b)
              return (b==1) ? multiply(add(total,a),--b) : a;
          }Why are the two sections of code returning different values. Any help is much appreciated

    I tried 5*6 which produced 5 as an answer using the second version of multiply so it looks like no matter what i put in the output is always the first int.

  • Help with SQL Syntax

    Hello,
    I've got a form that returns results from a MySQL table
    [tasks] based on three parameters:
    task_resource
    begin_date
    end_date
    Here is my code in the record set dialog box:
    SELECT *
    FROM tasks
    WHERE (task_resource = varName) AND (begin_date BETWEEN
    varBeginDate AND varEndDate OR end_date BETWEEN varBeginDate AND
    varEndDate)
    ORDER BY tasks.begin_date
    I thought it was working fine until I ran into a problem. The
    SQL statement doesn't work if I want to see only those tasks begun
    and completed on the same day. For example, I entered begin_date
    02/22/08 to end_date 02/22/08 because I only want to see tasks
    started AND completed on that date. But my SQL is set up (with the
    "OR") so that it's returning tasks with a begin_date of 02/21/08
    and end_date of 02/22/08.
    How can I correct my SQL? Not sure how to do this if I take
    out the OR condition.
    Thank you.

    >> SELECT *
    > FROM tasks
    > WHERE (task_resource = varName) AND (begin_date BETWEEN
    varBeginDate AND
    > varEndDate OR end_date BETWEEN varBeginDate AND
    varEndDate)
    > ORDER BY tasks.begin_date
    SELECT *
    FROM tasks
    WHERE (task_resource = varName) AND ((begin_date BETWEEN
    varBeginDate AND
    varEndDate) OR (end_date BETWEEN varBeginDate AND
    varEndDate))
    ORDER BY tasks.begin_date

  • Need help with the syntax of VHDTool.exe

    I'm about to extend the size of a VHD to 40GB. I'm using the following syntax and it's not working.
    vhdtool.exe /expand servername.vhd 42949672960 [/quiet]
    I can't find anywhere where it states how to enter the numerical value. Can someone please verify this syntax ?? The value that's there is in bytes

    Resolved:
    Apparently it needs quotes around the pathname:  vhdtool.exe /expand "C:\hyperv\servername.vhd" 42949672960

  • Beginner needs help with gotoAndPlay syntax

    Hello out there.
    I am modifying a Flash template which I downloaded recently
    The following code has been placed on a symbol which is defined as a button.
    on (release) {
    _root.link = 3;
    _root.gates.gotoAndPlay ("s1");
    I interpret this code to mean that _root.gates is the instance name which is located in the root timeline and it will move the play head to the frame labeled s1 in the gates instance which I assume is a movie clip.
    How do I locate the gates instance in the flash file. I have looked at every symbol in the entire flash file and none of them have instance names.
    Please help if you can. Thanks

    You've probably narrowed it down to being an object from the library.  Now you need to see if it is either on the stage or is loaded dynamically.
    If you right click on the object in the library and select Linkage..., you'll be able to see if it might be loaded dynamically.  In order to load it dynamically, in the Liinkage panel it will need to have the Export for Actionscript option checked (and one other) and will have an Identifier defined for it.  This identifier is what will be used to pull it from the library via actionscript (using the attachMovie method).
    If it doesn't have things in the Linkage established as I've described, then it likely lives on the stage.  If you are unable to find it, then it may be on a masked layer, or it may be set invisible on the timeline, or it may have a blank first frame which would make it appear as a mere dot on the stage if selected.
    Now, regardless of whether you find how it's added to the stage, if your intention is to edit this object in some way, You don't necessarily have to figure out the details of how its added to the stage.  To check if the object in the library is the one you want to edit, edit it in some simple way so that you can tell if the item you edit is the item you want edited.  If it is, then do the editing you intend.

  • ADO Database Connection: Need help with correct syntax for 'Execute' Method

    My server Windows 2008R2 taking more than 30 hours to complete backup
    so next backup getting fail
    is there any option to set start backup after 24 hours if previous backup complete

    I have a script that I am trying to cobble together, but I am stuck at attempting to execute an SQL query against and ADO connection. My code is as follows:Powershell $FQDNUpper = $Computer.ToUpper() + ".domain.dn1.dn2" $FQDNLower = $Computer.ToLower() + ".domain.dn1.dn2" $shell = New-Object -ComObject "Wscript.Shell" # for use later in script $cnn = New-Object -ComObject "ADODB.Connection" $cnn.ConnectionString = "Connection_String" $cnn.Open() $query = "SELECT CAST(ID AS nvarchar(50)) ID FROM Machine WHERE Name=$FQDNUpper AND Role = 0" $rs = $cnn.Execute($query,' ',1) #If statement that will qualify if $FQDNUpper returned anything else try $FQDNLowerWhen executing the code I receive an error:
    PowershellArgument: '2' should be a System.Management.Automation.PSReference. Use [ref].At line:9 char:5+ $rs = $cnn.Execute($query,' ',1)+ ...

  • Help with MM_editCmd.CreateParameter insert syntax please

    In the past (I guess older ASP version maybe?), the
    automatically generated code that DW created using the "insert
    record" wizard allowed for easy editing and debugging within the
    SQL. I just installed CS3 and created a similar page and the code
    used to build the insert statement is quite different.
    Unfortunately, I'm not versed well enough in it yet!
    I can see how the SQL insert is being built:
    Set MM_editCmd = Server.CreateObject ("ADODB.Command")
    MM_editCmd.ActiveConnection = MM_wp_STRING
    MM_editCmd.CommandText = "INSERT INTO test (FName, LName,
    Company, Email, BPhone, BFax, MPhone, Props, regDate, Password,
    MBroker, MBID, Status, ARID) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
    MM_editCmd.Prepared = true
    ...and then it appears to uses some scripting functions to
    build the values and replace the ?'s in the CommandText line:
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param1", 202, 1, 255,
    Request.Form("FName")) ' adVarWChar
    What I'm struggling with is the values inside each Append
    line (202, 1, 255) and what the relate to AND more importantly, how
    I can insert my own variable here instead of the form field data.
    ex:
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param1", 202, 1, 255, StrMyStringValue)
    ' adVarWChar
    I need help with the syntax. Would it be different if the
    variable holds a number value vs. text (assuming the field it's
    being inserted into hold numbers)
    Also, i USED to be able to add a handly little Response.Write
    before the execute insert line that would write the SQL insert
    statement to the screen and stop so that I could SEE where the
    issues were. I've tried:
    Response.Write(MM_editCmd.Parameters)
    Response.Write(MM_editCmd.CommandText)
    Just can't get the SQL text to display. Is the SQL insert
    statement not stored as a variable that i can call?
    Thanks VERY much for any help!

    You can use the concatenate() function to build up your string, as you no doubt know.
    As far as the wildcard goes ... your intention must be to try to SET the call variable and later on test the call variable with an IF node. Is that right?
    You would be able to test parts of the string using the substr() function - which is based on character position. If that is a fixed value that you know, it's easy. If it's not, you can first use the find() function to locate something (like the "_9"), returning the position, and then use the substr() function to pull it off.
    Can you write some pseudo-code here to define exactly your intention? You can set up a dummy script and send a dummy call through using Call Tracer and watch the output to see how your code is working.
    Regards,
    Geoff

  • AdvancedDataGrid with XMLListCollection Syntax

    Hello All,
    I'm more of an XSLT/XPath guy, and need help with the syntax
    for Flex(if that's the only thing I'm doing wrong!). I have an
    XMLListCollection named "mapData" with records from a web service.
    Each record looks like this:
    <java:Results xmlns:java="java:com.example.com">
    <java:AssociatedFileID>9999</java:AssociatedFileID>
    <java:AssociatedFileName>example.csv</java:AssociatedFileName>
    <java:DataBucketID>123</java:DataBucketID>
    <java:DataBucketName>EDashboard</java:DataBucketName>
    <java:Fields>
    <java:DataBucketFieldName>Business</java:DataBucketFieldName>
    <java:DataBucketFieldValue>Loans</java:DataBucketFieldValue>
    <java:DataBucketFieldID>4281</java:DataBucketFieldID>
    </java:Fields>
    <java:Fields>
    <java:DataBucketFieldName>Section</java:DataBucketFieldName>
    <java:DataBucketFieldValue>Europe</java:DataBucketFieldValue>
    <java:DataBucketFieldID>4394</java:DataBucketFieldID>
    </java:Fields>
    <java:LoadedDateTime>2008-03-19T10:57:21-04:00</java:LoadedDateTime>
    <java:Suppressed>No</java:Suppressed>
    <java:DataBucketContentID>170</java:DataBucketContentID>
    <java:Status>Active</java:Status>
    </java:Results>
    My AdvancedDataGrid is:
    <mx:AdvancedDataGrid x="10" y="10" id="MapDG"
    designViewDataType="flat" width="100%" height="100%"
    dataProvider="{mapData}" click="{editBtn.enabled=true;}"
    selectionMode="singleRow" change="{editBtn.enabled=true;}">
    <mx:columns>
    <mx:AdvancedDataGridColumn headerText="ID"
    dataField=""/>
    <mx:AdvancedDataGridColumn headerText="Business"
    dataField=""/>
    <mx:AdvancedDataGridColumn headerText="Section"
    dataField=""/>
    </mx:columns>
    </mx:AdvancedDataGrid>
    Here's what I'm trying to do for each column:
    1 - *::Results.*::DataBucketContentID.text()
    //this is the record ID
    2. -
    *Results.*::Fields.(*::DataBucketFieldName.text()='Business').*DataBucketFieldValue.text( )
    //Gets the 'DataBucketFieldValue' for each 'Fields' that has
    a 'DataBucketFieldName' = Business
    3. -
    *Results.*::Fields.(*::DataBucketFieldName.text()='Section').*DataBucketFieldValue.text()
    //Gets the 'DataBucketFieldValue' for each 'Fields' that has
    a 'DataBucketFieldName' = Section
    What do I need to put in the columns' dataField for this to
    work?
    Thanks,
    Trav

    Thanks to Tracy and a little research, I have my data grid
    populating - I wanted to post an example that worked for me:
    If below is a variable with your web service result...
    private var personXML:XML=<persons>
    <person>
    <FirstName>Santa</FirstName>
    <Surname>Claus</Surname>
    <Age>1000</Age>
    </person>
    <person>
    <FirstName>Tooth</FirstName>
    <Surname>Fairy</Surname>
    <Age>250</Age>
    </person>
    <person>
    <FirstName>Travis</FirstName>
    <Surname>Allen</Surname>
    <Age>27</Age>
    </person>
    </persons>
    You can use a function, which you'll need to assign to a
    column. Here it is concating text in 2 elements but you can also
    use it for namespaced elements (e.g.
    item.*::NodeName1.*::NodeName2.text()).
    private function showFullName(item:Object,
    Column:DataGridColumn):String{
    var fullName:String = item.FirstName + " " + item.Surname;
    return fullName;
    The first column uses the function to populate the data in
    the column. It has to use labelFunction (vs. dataField). The 2nd
    uses the node name directly.
    <mx:DataGrid id="personDG"
    dataprovider="{personXML.person}">
    <mx:columns>
    <mx:DataGridColumn width="150" headerText="Full Name"
    labelFunction="showFullName"/>
    <mx:DataGridColumn width="150" dataField="Age"
    width="50"/>
    <!--the column without header text wil take the value of
    the element-->
    </mx:columns>
    </mx:DataGrid>
    Hope this helps anyone else!
    Trav

  • Non Empty function in MDX with IIF command

    Hi All ,
    I have a MDX query like:
    IIF(isgeneration([YEAR].CurrentMember, 2),
    iif(isgeneration([TIME].CurrentMember, 4),
    parallelperiod(YEAR.generations(2), 1, [YEAR].currentmember),
    missing
    missing
    Now if I'm trying to write NON EMPTY function like:
    IIF(isgeneration([YEAR].CurrentMember, 2),
    iif(isgeneration([TIME].CurrentMember, 4),
    +NON EMPTY(parallelperiod(YEAR.generations(2), 1, [YEAR].currentmember))+,
    missing
    missing
    then it gives me syntax error.
    Can you please help me how to write NON EMPTY function with IIF statement
    Thanks in advance

    Hi All,
    Any help Please. I'm getting error not only within IIF statement but also in simple MDX query. As a example :
    NonEmptySubset(
    ([Total Rev Measure], time.currentmember)
    This also thrown syntax error. I have tried Non Empty also.

Maybe you are looking for

  • Satus Of Sales Order

    Hi , Is any condition is there in sales order which will give us present status of the Sales Order? Regards Akash

  • ::MacBook 2,1 OVERHEATS when idle::

    Hi everyone. My arising concern led me to write this up regarding heat issues with my MacBook. Since my 2nd day of owning it, in January 2007, I installed BootCamp Beta that corrupted approximately 20GB. THinking it'd be no concern to me, I've lived

  • No Users after migration

    I used the migration assistant to transfer data from my iBook G4 to my MBP. The transfer went OK but when I started my iBook again it would not boot - it would stall at the grey? (I'm colour blind) apple screen. I tried to repair permissions and got

  • Can't get rid of ended call icon in recent convers...

    I recently noticed that since updating my Skype on Windows 7 that whenever a call is ended, the call finished icon stays even if I've turned off my computer for 12 hours, come back on and signed into Skype. It's really frustrating because it's starti

  • Other methods to load CSS file

    Hi I am trying to load a CSS file from a mySql DB  table (each row represent a customer that use the application, and each one can set  his own CSS file) How can I convert the Stream / String that I loaded from the Clob column to something that I can