I can get the year 2022 from a parameter cube that shows me the current year in a string element. The problem is that I can not use simply the 2022 but "2022". So I need somehow to escape the " character. A simple \" does not work here. What is the correct method for escaping the " character in this situation?
ascheevel wrote: ↑Tue Dec 06, 2022 3:02 pm
If you're filtering by an attribute string, you don't need to use StrToMember, the below should work assuming no typos on my part.
This can be refined and shortened even further to the above. Note the "{}" do not have to be used because FILTER returns a set, even if it only returns a single member.
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
ascheevel wrote: ↑Tue Dec 06, 2022 4:32 pm
Thanks PavoGa, for my own MDX I rarely use the ".CurrentMemember.Properties", can you advise when it should be used?
After reading the link Wim provided, I have to say it makes a good point about not using the shortcut. I have used both the cube query and the short cut although most of the time I've used the shortcut syntax. Will probably adjust that going forward as it is more clear using the cube query.
PavoGa wrote: ↑Tue Dec 06, 2022 10:12 pm
After reading the link Wim provided, I have to say it makes a good point about not using the shortcut. I have used both the cube query and the short cut although most of the time I've used the shortcut syntax. Will probably adjust that going forward as it is more clear using the cube query.
Also once we get v12 the TM1 specific shortcut syntax for attributes and subsets will no longer be valid.
Please place all requests for help in a public thread. I will not answer PMs requesting assistance.
PavoGa wrote: ↑Tue Dec 06, 2022 10:12 pm
After reading the link Wim provided, I have to say it makes a good point about not using the shortcut. I have used both the cube query and the short cut although most of the time I've used the shortcut syntax. Will probably adjust that going forward as it is more clear using the cube query.
Also once we get v12 the TM1 specific shortcut syntax for attributes and subsets will no longer be valid.