Differences between MDX strtomember and strtoset

Source: Internet
Author: User

Strtomember: string to memeber, returns the specified member in the string expression,

Strtoset: string to set returns the set specified in the string expression.

Below are some examples of writing

1.1. {strtomember ('[organizational structure dimension]. [superior organizational unit]. & [2]')}

1.2, {strtoset ('{[organizational structure dimension]. [superior organizational unit]. & [2]}')}

1.1 and 1.2 are added to the complete MDX, And the execution results are the same. 1.1 and 1.2 are also the original usage of these two functions.

-------------------------------------- Split ----------------------------------

2.1. strtoset ('{[organizational structure dimension]. [superior organizational unit]. & [2]. Children }')

2.2, {strtomember ('[organizational structure dimension]. [upper-level organization]. & [2]'). Children}

Based on the subset obtained above, the results of the above two operations are consistent in the complete MDX.

-------------------------------------------------------------------------

1.1 and 1.2

2.2.1. strtoset ('{[organizational structure dimension]. [superior organizational unit]. & [2], [organizational structure dimension]. [superior organizational unit]. & [4]}')

2.2.2. strtoset ('{[organizational structure dimension]. [superior organization]. & [2]. children, [organizational structure dimension]. [superior organization]. & [4]. children }')

2.2.1 and 2.2.2 strtomember do not support the above statement,

-----------------------------------------------------------

Operation on parameters:

Strtomember can directly act on @ strparas, @ strpara is a string, and @ paras is a set that contains at least one {0, 1, 2, strtoset cannot directly operate on the @ paras sub-member parameter, similar to strtoset (@ paras ). the children statement is incorrect.

3.1. strtomember (@ strpara)

3.2. strtomember (@ strpara). Children

3.3. strtoset (@ paras)

 

There is not much research on the performance of these two functions. There is not much information about these functions. You can write out all the questions you may have in your study.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.