We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi is there a way to create A set of tuples for example using mdxpy:
SELECT {([Customer].[Country].[Australia], [Product].[Product Line].[Mountain]), ([Customer].[Country].[USA], [[Product].[Product Line].[Road])} ON 0 FROM [Adventure Works] WHERE Measures.[Internet Sales Amount]
regards,
Ansir
The text was updated successfully, but these errors were encountered:
Here are two ways to do it:
from mdxpy import MdxBuilder, MdxTuple query = MdxBuilder.from_cube("Adventure works") query.add_member_tuple_to_columns(MdxTuple.of( "[Australia].[Country].[Australia]", "[Product].[Product Line].[Mountain]")) query.add_member_tuple_to_columns(MdxTuple.of( "[Australia].[Country].[USA]", "[Product].[Product Line].[Road]")) mdx = query.to_mdx() print(mdx)
from mdxpy import MdxBuilder, MdxTuple, Member query = MdxBuilder.from_cube("Adventure works") query.add_member_tuple_to_columns(MdxTuple.of( Member.of("Australia", "Country", "Australia]"), Member.of("Product", "Product Line", "Mountain"))) query.add_member_tuple_to_columns(MdxTuple.of( Member.of("Australia", "Country", "USA"), Member.of("Product", "Product Line", "Road]"))) mdx = query.to_mdx() print(mdx)
Sorry, something went wrong.
thanks
your help is greatly appreciated.
No branches or pull requests
Hi is there a way to create A set of tuples for example using mdxpy:
regards,
Ansir
The text was updated successfully, but these errors were encountered: