TI Process build for dynamic Scenario, Time etc.. Kindly help!

Post Reply
Nirvan
Posts: 2
Joined: Sun Jun 26, 2022 7:00 am
OLAP Product: TM1
Version: Planning Analytics
Excel Version: Latest

TI Process build for dynamic Scenario, Time etc.. Kindly help!

Post by Nirvan »

Hello Experts,

I am back to TM1/ IBM PA after a long long time, after having worked in it very briefly. Suffice to say, I am a beginner. Currently a very demanding project fell into my lap with extremely tight deadlines. (They brought me in because I was the only scapegoat)

Thus, I am requesting for some kind help with it. One part of this project involves modifying two existing TI processes that currently take in SCENARIO, MONTH, etc. as parameters and essentially build a large SQL query to perform delete/insert operations on data. This takes hours+ time. To reduce the time, the business wants to generate the cube view in TI process to include specific scenarios:

1. Static scenarios: Actual, Current Budget, Current Forecast
2. Dynamic scenarios: depending on the current month
Forecast 01-2025|Budget 01-2025|Forecast 02-2025|Budget 02-2025|Forecast 03-2025|Budget 03-2025|Forecast 04-2025|Budget 04-2025|Forecast 05-2025|Budget 05-2025|Forecast 06-2025|Budget 06-2025|Forecast 07-2025|Budget 07-2025"

Example:

Code: Select all

""Current Month: Jul"
"Current Year: 2025" 
"Next Year: 2026" 
"Current Month Number: 8" 
"Previous Month: ","Aug" 
"Generated Scenarios: Forecast 01-2025|Budget 01-2025|Forecast 02-2025|Budget 02-2025|Forecast 03-2025|Budget 03-2025|Forecast 04-2025|Budget 04-2025|Forecast 05-2025|Budget 05-2025|Forecast 06-2025|Budget 06-2025|Forecast 07-2025|Budget 07-2025"
Current code segment:

Code: Select all

[/b]#--- Scenario subset Creation segment----------------- 
vDimName='Scenario'; ExecuteProcess('Bedrock.Dim.Sub.Create.Leaf', 'pDimension', vDimName, 'pSubset', cSubsetName, 'pExclusions', '' ); ViewSubsetAssign (cCubeName, cViewName, vDimName, cSubsetName ); 
#---------------------------------------------------
What can be done to the above to generate the dynamic scenarios as mentioned above? Kindly help!!

Sincerely,
Nirvan
a certified beginner
Wim Gielis
MVP
Posts: 3238
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: TI Process build for dynamic Scenario, Time etc.. Kindly help!

Post by Wim Gielis »

Nirvan wrote: Sun Aug 24, 2025 5:09 am I am back to TM1/ IBM PA after a long long time, after having worked in it very briefly. Suffice to say, I am a beginner. Currently a very demanding project fell into my lap with extremely tight deadlines. (They brought me in because I was the only scapegoat)
Not personally to you, but, ..., no one understands that this is a bad idea (if the changes are non-trivial) ?

This is Bedrock V3 ? Then you need Bedrock V4 processes too as V3 processes can call V4 processes.


Anyway, you will need the process 'Bedrock.Dim.Sub.Create.ByElement' in Bedrock V3 if you want to stick around with V3.

The parameter 'pElements' can be populated with your concatenated string of elements. I take it that you already have the code to populate such a variable with the correct element names (or aliases)? You will check that the string is not empty and there are elements to process?

There might also the Bedrock V4 processes that are probably a better fit to what you want to do, if it's just creating and populating a view on a cube. That's not for now if you have deadlines to meet.

Best regards,

Wim
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
Post Reply