MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now Learn More
[querysubject] in (#promptmany('customdata', 'string')#)
**Custom SQL - hard coded**
select *
from (
values
('', '')
, ('', '')
) q ([customcolumn1], [customcolumn2])
**Custom SQL - with parameter**
select *
from (
values
#substitute(
'$',
''')',
substitute(
'^',
'(''',
join(
'''), (''',
split(
':::',
join(
''',''',
split(
' ',
join(
':::',
split(
', ',
substr(
substr(
promptmany('customdata', 'token'),
index(
promptmany('customdata', 'token'),
', '
)
),
2
)
)
)
)
)
)
)
)
)#
) q (#join(
', ',
substitute(
'$',
']',
substitute(
'^',
'[',
split(
' ',
substr(
promptmany('customdata', 'token'),
0,
index(
promptmany('customdata', 'token'),
', '
)
)
)
)
)
)#)
Quote from: dougp on 23 Apr 2025 12:56:40 PMAre you saying you want the user to tell the report to use arbitrary data for one of the queries?That is exactly what I'm saying! :)
fieldname LIKE ANY (#csv(substitute('$', '%', substitute('^', '%', split(',', toupper(prompt('SEARCH_CRITERIA', 'token'))))))#)
Dim | Value |
A | 10 |
B | 25 |
C | 42 |
User | Weight |
Jane | 0.5 |
Jim | 0.3 |
John | 0.2 |
Dim | User | Value * Weight |
A | Jane | 5 |
A | Jim | 3 |
A | John | 2 |
B | Jane | 12.5 |
B | Jim | 7.5 |
B | John | 5 |
C | Jane | 21 |
C | Jim | 12.6 |
C | John | 8.4 |
BSP Software Documentation |
MetaManager Documentation and Knowledgebase |
Version Control Documentation and Knowledgebase |
BSP Software | Resources | About Us | ||
MetaManager | BSP Software Training | BSP Software | ||
Integrated Control Suite | YouTube Channel | Micro Strategies Inc | ||
Security Migration | IBM Cognos | |||
Integrated Management Suite | ||||