Planning Analytics

Planning Analytics

Get AI-infused integrated business planning

 View Only
Expand all | Collapse all

MDX with nested { EXCEPT ( functions stopped working

  • 1.  MDX with nested { EXCEPT ( functions stopped working

    Posted Wed March 09, 2022 02:14 PM
    We have had this subset in place for quite some time; on Feb 24th, we started to receive this error. 

    After comparing the MDX in architect vs what was rendering in PAW, it looks like it is reading as 3 EXCEPT statements, vs the 2 that are really in there. 




    Is there any reason this MDX should not work? MDX's with nested EXCEPT statements no longer work through PAW. 
    We implemented a workaround with this updated MDX.  
     { EXCEPT ( {TM1SORT( {TM1FILTERBYLEVEL( {TM1SUBSETALL( [Business Lines] )}, 0)} , ASC )},
     { UNION (
     { TM1FILTERBYPATTERN( {TM1SUBSETALL( [Business Lines] )}, "No *")},
     { TM1FILTERBYPATTERN( {TM1SUBSETALL( [Business Lines] )}, "Input *")} )} )} 


    ------------------------------
    Bruna Garcia
    Master Consultant
    QueBIT Consulting
    ------------------------------

    #PlanningAnalyticswithWatson


  • 2.  RE: MDX with nested { EXCEPT ( functions stopped working

    Posted Thu March 10, 2022 03:45 AM
    Hi,

    Not sure about the specific issue but you don't need the UNION as the following should work:

    {EXCEPT(
    {TM1SORT( {TM1FILTERBYLEVEL( {TM1SUBSETALL( [Business Lines] )}, 0)} , ASC )},
    { TM1FILTERBYPATTERN( {TM1SUBSETALL( [Business Lines] )}, "No *"), TM1FILTERBYPATTERN( {TM1SUBSETALL( [Business Lines] )}, "Input *")}
    )}

    I tend to use this approach, i.e. including the Excepted sets within curly braces and separated by commas, rather than nesting the EXCEPTS.

    regards,

    Mark

    ------------------------------
    Mark Wragg
    ------------------------------



  • 3.  RE: MDX with nested { EXCEPT ( functions stopped working

    Posted Thu March 10, 2022 09:36 AM
    Edited by System Admin Fri January 20, 2023 04:24 PM