I am glad it was useful! Thanks for letting me know.
A.G.
Original Message:
Sent: Wed December 11, 2024 03:00 AM
From: Pantelis Stavroulidakis
Subject: PAW Dynamic MDX report
Dear Ann,
Your suggestion "MDX would just live in the report (PAW Book) itself and dynamically reference" gave me a way to direct. This lead me to the article create-dynamic-asynchronous-views-with-mdx which provided me the solution because I already have a configuration cube.
Thanks for your answer.
Regards
------------------------------
Pantelis Stavroulidakis
------------------------------
Original Message:
Sent: Tue December 10, 2024 10:42 AM
From: Ann-Grete Tan
Subject: PAW Dynamic MDX report
Dear Pantelis:
Thanks for all the detail. I think I understand the problem now. I am short of time right now so I haven't had a chance to digest everything, but I just wanted to share a thought.
For this kind of problem I would probably have explored the approach of having the TI process update a report variables cube dynamically with the desired parameters, and then have the report MDX just look up the values in the cube. I would NOT use ViewCreateByMDX to rebuild the entire report MDX each time. The MDX would just live in the report (PAW Book) itself and dynamically reference whatever the report variables are.
For the report variables you can start with a simple prototype but you could get fancy and dimension it by user (use the }clients dimension perhaps), or by other things to keep different user expriences separate from each other.
I hope this helps.
Regards,
Ann-Grete
------------------------------
Ann-Grete Tan
agtan@tensorresearch.com
Original Message:
Sent: Tue December 10, 2024 03:11 AM
From: Pantelis Stavroulidakis
Subject: PAW Dynamic MDX report
Dear Ann,
Regarding your questions:
I'm trying to create a report that has the actual sales of current year against the budget sales of next year. The only possible way to achieve this (getting the intersection of year and version) is by using MDX. Although, I need my report to be dynamic and get the required years and versions based on user's preference.
So, I created a process to pass, dynamically, the user's preference and update the view. I chose to this solution because I don't know if there is any other way to change the MDX query dynamically on a report.
I'm also providing the mdx that I used to create this report as well as a sample of parametrized MDX that I use in process.
------------------------------
Pantelis Stavroulidakis
Original Message:
Sent: Mon December 09, 2024 05:39 PM
From: Ann-Grete Tan
Subject: PAW Dynamic MDX report
Hi Pantelis:
It's hard to answer your question without more information about what you are trying to do. If you are just trying to set the columns of an MDX view to either Actual or Budget you should be able to accomplish it using MDX alone (without using a TI process).
If you are new to MDX views in PAW, I strongly recommend @George Tonkin's series of blog posts (there are at least 6) on MDX views. Here's a link to Part 1: https://community.ibm.com/community/user/businessanalytics/blogs/george-tonkin/2024/02/18/learning-mdx-views-in-planning-analytics
If this does not help, please provide a little more information about what you are trying to do, perhaps with a screenshot showing the shape of your view and your widget?
Regards,
A.G.
------------------------------
Ann-Grete Tan
agtan@tensorresearch.com