Strange case here...
I have a very simple dimension, in fact I deleted everything that is not related to the issue.
I try to filter out the elements containing 'A' for the text attribute WorkCenter. Pretty easy you would imagine.
If the grandparent has children, then the 2 elements that should be returned, cannot be formed as a tuple.
If I break the links such that the grandparent has no children, then the 2 elements are returned fine.
See pictures in the Word doc please, I could only add 3 pictures I think.
The element weights are all 1.
The TM1 service has been restarted many times.
The same setup of dimension and elements and attribute works fine in a separate TM1 model.
Yet in this TM1 model, there is no dimension called 'WorkCenter' or other attribute in the model called 'WorkCenter'.
The dimension SCH_Work_Center is used only in 1 application cube and 1 element attributes cube and in its own element security cube.
Anyone has an idea ?
MDX to filter by attribute - error forming tuple expression
-
- MVP
- Posts: 3240
- 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:
MDX to filter by attribute - error forming tuple expression
- Attachments
-
- MDX tuple.docx
- (146.93 KiB) Downloaded 205 times
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
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
- gtonkin
- MVP
- Posts: 1265
- Joined: Thu May 06, 2010 3:03 pm
- OLAP Product: TM1
- Version: Latest and greatest
- Excel Version: Office 365 64-bit
- Location: JHB, South Africa
- Contact:
Re: MDX to filter by attribute - error forming tuple expression
HI Wim,
I created the dim per the doc and added a measure called A for "good measure".
Returns the two elements as you would have expected. This is on 10.2.2 FP4.
Not sure that it helps you any as no errors.
The difference, besides versions, may be that I do not have the dimension associated with any cubes, or any other dimensions with an alias containing a text attribute with values of "A" (I did add an attribute to an existing dimension to test this case too-no issues elements returned as expected).
Have you tried saving the dim with a new name to test if this happens in any dim?
I created the dim per the doc and added a measure called A for "good measure".
Code: Select all
{FILTER( {TM1SUBSETALL( [SCH_Work_Center] )}, [SCH_Work_Center].[WorkCenter] = "A")}
The difference, besides versions, may be that I do not have the dimension associated with any cubes, or any other dimensions with an alias containing a text attribute with values of "A" (I did add an attribute to an existing dimension to test this case too-no issues elements returned as expected).
Have you tried saving the dim with a new name to test if this happens in any dim?
- Attachments
-
- Dim Filtered using MDX
- SCH_WorkCenter_Filtered.PNG (23.83 KiB) Viewed 3086 times
-
- MVP
- Posts: 3240
- 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 to filter by attribute - error forming tuple expression
Thank you very much for testing George.
In a new dimension it works fine.
In a new dimension it works fine.
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
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