Hi,
I have a subnm selection box that does not update properly (not after rebuild sheet/book), only after double clicking.
I have a process that adds a new element to a dimension (insert direct). After refreshing, my dynamic report is updated, but my subnm selection list isn't. Both depart from the same mdx subset (base).
I added 2 screenshot to illustrate the discrepancy between the two (in one I have 'Q' in the other I have 'S').
Dynamic subset:
Base = TM1FILTERBYLEVEL(TM1SUBSETALL([Share category]) , 0)
A selection box:
SUBNM(ServerDimension;"Base";elementName)
A dynamic report
TM1RPTROW($B$12;ServerDimension;"Base")
Is this a known issue?
Refresh subnm mdx subset in pax
-
- Posts: 18
- Joined: Thu Sep 03, 2020 1:59 pm
- OLAP Product: TM1
- Version: 2.0
- Excel Version: office 365
Refresh subnm mdx subset in pax
- Attachments
-
- screenshot report records
- TM1RPTROW.PNG (8.46 KiB) Viewed 3874 times
-
- sceenshot subset
- subnm.PNG (3.92 KiB) Viewed 3874 times
- paulsimon
- MVP
- Posts: 808
- Joined: Sat Sep 03, 2011 11:10 pm
- OLAP Product: TM1
- Version: PA 2.0.5
- Excel Version: 2016
- Contact:
Re: Refresh subnm mdx subset in pax
Hi
You didn't show the SUBNM
Does it by any chance identify the element in something in double quotes rather than an index number? If the value for the element is given in quotes, then it will always show that value whether it is in the subset or not. It you give an index it will show the element at that position in the subset
Regards
Paul Simon
You didn't show the SUBNM
Does it by any chance identify the element in something in double quotes rather than an index number? If the value for the element is given in quotes, then it will always show that value whether it is in the subset or not. It you give an index it will show the element at that position in the subset
Regards
Paul Simon
-
- MVP
- Posts: 3229
- 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: Refresh subnm mdx subset in pax
Paul,paulsimon wrote: ↑Wed Nov 25, 2020 8:23 pm Hi
You didn't show the SUBNM
Does it by any chance identify the element in something in double quotes rather than an index number? If the value for the element is given in quotes, then it will always show that value whether it is in the subset or not. It you give an index it will show the element at that position in the subset
Regards
Paul Simon
The SUBNM was written in the post.
I guess the issue is that you seem to not be able to select the new element in what should be a dynamic subset in the SUBNM, while it works fine in te active form.
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
- paulsimon
- MVP
- Posts: 808
- Joined: Sat Sep 03, 2011 11:10 pm
- OLAP Product: TM1
- Version: PA 2.0.5
- Excel Version: 2016
- Contact:
Re: Refresh subnm mdx subset in pax
Hi
Sorry I missed the SUBNM in the post. Can you confirm it is a name not an index? You would probably still need it to be an index for it to show the revised element selection.
In the process that adds the element do you have a RefreshMDXHierarchy( vDim ) in the Epilog?
Another possibility might be a DimensionUpdateDirect, however, I would try the other items first.
Regards
Paul
Sorry I missed the SUBNM in the post. Can you confirm it is a name not an index? You would probably still need it to be an index for it to show the revised element selection.
In the process that adds the element do you have a RefreshMDXHierarchy( vDim ) in the Epilog?
Another possibility might be a DimensionUpdateDirect, however, I would try the other items first.
Regards
Paul
-
- Posts: 18
- Joined: Thu Sep 03, 2020 1:59 pm
- OLAP Product: TM1
- Version: 2.0
- Excel Version: office 365
Re: Refresh subnm mdx subset in pax
Hi,paulsimon wrote: ↑Wed Nov 25, 2020 11:38 pm Sorry I missed the SUBNM in the post. Can you confirm it is a name not an index? You would probably still need it to be an index for it to show the revised element selection.
In the process that adds the element do you have a RefreshMDXHierarchy( vDim ) in the Epilog?
Another possibility might be a DimensionUpdateDirect, however, I would try the other items first.
I can select the new element by referencing the index, after that the SUBNM is shown correctly.
However, I want to be able to select the new element after I run the process.
Both RefreshMDXHierarchy and DimensionUpdateDirect are ineffective.
Tnx,
Felix
- Steve Rowe
- Site Admin
- Posts: 2456
- Joined: Wed May 14, 2008 4:25 pm
- OLAP Product: TM1
- Version: TM1 v6,v7,v8,v9,v10,v11+PAW
- Excel Version: Nearly all of them
Re: Refresh subnm mdx subset in pax
Hi Felix,
I'd suggest you reference the MDX directly in the report row formula, rather than indirectly via the subset. This ought to resolve / workaround the issue.
One of the other arguments allows you to reference a MDX directly, you'll need to take away the reference to the subset as well.
Cheers,
I'd suggest you reference the MDX directly in the report row formula, rather than indirectly via the subset. This ought to resolve / workaround the issue.
One of the other arguments allows you to reference a MDX directly, you'll need to take away the reference to the subset as well.
Cheers,
Technical Director
www.infocat.co.uk
www.infocat.co.uk
-
- MVP
- Posts: 1828
- Joined: Mon Dec 05, 2011 11:51 am
- OLAP Product: Cognos TM1
- Version: PA2.0 and most of the old ones
- Excel Version: All of em
- Location: Manchester, United Kingdom
- Contact:
Re: Refresh subnm mdx subset in pax
Hi,
If you select the SUBNM cell and go to "Data Validation" you will see that the drop down list that you are seeing (as shown in your SUBNM.png image) is an Excel generated list rather than one generated by PAX. It will have a source called something along the lines of "Cafe_Validation_Temp".
I believe that the Excel validation list is ONLY generated when you double click in the cell and go to the proper subset editor window, so the list is just provided as a shortcut way for you to make selections but it needs a prompt for it to refresh that list... and that prompt is you double clicking into the SUBNM cell.
You will also notice that if you add a new SUBNM to a sheet, that the Excel validation list doesn't appear until AFTER the first time you double click in to the cell.
Of course none of the above helps when it comes to actually overcoming the desire you have for the list to be refreshed automatically.
I did a quick test to see if you can set your own Excel Data Validation list over the SUBNM cell but as expected it gets replaced by the auto generated one.
I would suggest perhaps asking the question over at the IBM forum as it is frequented by IBMers who often prompt ideas or take the problems away to the development team if there isn't a solution/workaround already available:
https://community.ibm.com/community/use ... updetails
Thanks,
Declan
If you select the SUBNM cell and go to "Data Validation" you will see that the drop down list that you are seeing (as shown in your SUBNM.png image) is an Excel generated list rather than one generated by PAX. It will have a source called something along the lines of "Cafe_Validation_Temp".
I believe that the Excel validation list is ONLY generated when you double click in the cell and go to the proper subset editor window, so the list is just provided as a shortcut way for you to make selections but it needs a prompt for it to refresh that list... and that prompt is you double clicking into the SUBNM cell.
You will also notice that if you add a new SUBNM to a sheet, that the Excel validation list doesn't appear until AFTER the first time you double click in to the cell.
Of course none of the above helps when it comes to actually overcoming the desire you have for the list to be refreshed automatically.
I did a quick test to see if you can set your own Excel Data Validation list over the SUBNM cell but as expected it gets replaced by the auto generated one.
I would suggest perhaps asking the question over at the IBM forum as it is frequented by IBMers who often prompt ideas or take the problems away to the development team if there isn't a solution/workaround already available:
https://community.ibm.com/community/use ... updetails
Thanks,
Declan
Declan Rodger
-
- Posts: 18
- Joined: Thu Sep 03, 2020 1:59 pm
- OLAP Product: TM1
- Version: 2.0
- Excel Version: office 365
Re: Refresh subnm mdx subset in pax
Thanks for the responses.
Denclanr gave a good explanation why SUBNM is not working as expected.
Tnx,
Felix
In the SUBNM function it is not possible to directly reference a MDX statement, (the TM1RPTROW function works perfectly.)Steve Rowe wrote: ↑Fri Nov 27, 2020 11:22 am I'd suggest you reference the MDX directly in the report row formula, rather than indirectly via the subset. This ought to resolve / workaround the issue.
One of the other arguments allows you to reference a MDX directly, you'll need to take away the reference to the subset as well.
Denclanr gave a good explanation why SUBNM is not working as expected.
Tnx,
Felix