MDX editor PAW - very strict

Post Reply
MarenC
Regular Participant
Posts: 432
Joined: Sat Jun 08, 2019 9:55 am
OLAP Product: Planning Analytics
Version: Planning Analytics 2.0
Excel Version: Excel 2016

MDX editor PAW - very strict

Post by MarenC »

Hi,

I am using PAW version 81 and if I go to edit some MDX in a cube view it appears to be very picky about the spacing, to the point where editing becomes almost impossible, at least for me.

Has anyone experienced this problem? I can't remember previous PAW versions being so picky.

An example of Full MDX is below, and the MDX window seems to add in tabs, for example see the tab between

[Year])}, left([Year].c

this is just after the select statement.

Full MDX example:

Code: Select all

WITH MEMBER [Employee].[Employee].[Grand Total] AS SUM({DISTINCT({StripCalculatedMembers({EXCEPT({TM1SubsetToSet([Employee].[Employee],"N_Level_Employee","public")}, {GENERATE({EXCEPT({TM1SubsetToSet([Employee].[Employee],"N_Level_Employee","public")}, {[Employee].[Employee].Levels(0).MEMBERS}, ALL)}, {[Employee].[Employee].CURRENTMEMBER.ANCESTORS})}, ALL)})})}), SOLVE_ORDER = 2, FORMAT_STRING = '#,##0.00;(#,##0.00)' SELECT {{{{{{{TM1FILTERBYLEVEL({FILTER( {TM1SUBSETALL([Year])},  left([Year].currentmember.name,4)>= Left([}ElementAttributes_Version].([Version].currentmember, [}ElementAttributes_Version].[Start Year]),4) and left([Year].currentmember.name,4) <= Left([}ElementAttributes_Version].([Version].currentmember, [}ElementAttributes_Version].[End Year]),4))},0)}}}}}}}*{DRILLUPMEMBER({TM1SubsetToSet([Period].[Period],"All Periods incl Leafs","public")}, {[Period].[Period].[All Periods]})} ON 0, NON EMPTY {{TM1SubsetToSet([Employee].[Employee],"N_Level_Employee","public")}, {[Employee].[Employee].[Grand Total]}}*{[Measures Payroll].[Measures Payroll].[Total Salary]} ON 1 FROM [Payroll Costs] WHERE ([Version].[Version].[Active Versions^Forecast Test 2022/2023], [Level].[Level].[Final], [Company].[Company].[Total Company^Central], [Dept].[Dept].[Total Dept^Engineering], [Position].[Position].[Total Positions], [Section].[Section].[Total Section^Software], [Type].[Type].[Total Type], [Grade].[Grade].[All Grades], [Scale].[Scale].[All Scales])
I tried removing spaces, caused syntax error, I tried adding a space, syntax error, I tried changing Grand Total calculated member to Grand T, syntax error.


Maren
Wim Gielis
MVP
Posts: 3223
Joined: Mon Dec 29, 2008 6:26 pm
OLAP Product: TM1, Jedox
Version: PAL 2.1.5
Excel Version: Microsoft 365
Location: Brussels, Belgium
Contact:

Re: MDX editor PAW - very strict

Post by Wim Gielis »

Hello Maren,

Unrelated to your topic but, is PAW adding all those curly braces like:

{{{{{{{TM1FILTERBYLEVEL({FILTER

or did you add them ?

Seems rather useless to me except when you really want to convert into a set.
Best regards,

Wim Gielis

IBM Champion 2024-2025
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
MarenC
Regular Participant
Posts: 432
Joined: Sat Jun 08, 2019 9:55 am
OLAP Product: Planning Analytics
Version: Planning Analytics 2.0
Excel Version: Excel 2016

Re: MDX editor PAW - very strict

Post by MarenC »

Hi Wim,

PAW added the braces.

Maren
Post Reply