Reporting from TM1 – Part5 : Promptmany Macro

But if you need a multi-select prompt; prompt macro command will not be enough for you. Then the command you will need is “promptmany”

 Here is an example how you can use it; suppose we again have two TM1 cubes with the Country dimension shared. If you want to create a multi-select prompt your macro will look like something like this:


set ( 


substitute (  ‘Profit and Loss’, ‘KPI’,   split(‘;’,   promptmany(‘Country’, ‘MUN’)  )

)   )# 



Main difference from the previous sample is this time promptmany command returns with more than one item. So you need split and join commands to modify the dataset.


Tags: , , ,

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: