Xcelsius and INLIST workaround

Frustratingly when importing QAAWS into Xcelsius 2008, if the query uses INLIST and several values, I need to copy the dimension prompt in Data Manager for each possible value that could exist in the dimension object, example 100+ countries would mean copying the prompt 100 plus times and bind each to different cell locations on the Excel spreadsheet, not nice or practical.

The workaround I call reversing matches pattern
Via Universe Designer create a new object which can be used for MATCHES pattern in the query. The select is the table column containing the countries and create a WHERE clause on the dimension object as follows;
@variable(‘Enter Countries’) LIKE ‘%’ || my_table.country || ‘%’

Then when in Xcelsius CONCATENATE each resulting LOV’s that you want to pass into the query, but do not separate using semi colon, I concatenate each value and use ‘#’ as a separator.

Explanation of new object
Matches pattern normally in the form of;
COUNTRY LIKE ‘%ENGLA%’

Would return all values containing ENGLA aka ENGLAND

but this time round I am using a prompt which is populated from concatenated value within Xcelsius and could look like this ‘ENGLAND#SPAIN#FRANCE#BELGIUM’

The query is now
WHERE ‘ENGLAND#SPAIN#FRANCE#BELGIUM’ like ‘%’ || my_table.country || ‘%’

Hope that makes sense its early in the morning for me.

Macroman


Macroman :uk: (BOB member since 2002-11-13)

Have you seen this: http://forumtopics.org/busobj/viewtopic.php?p=613951&sid=ffcf05408cf4dcd598f67a24cb683adc


redleg (BOB member since 2007-02-28)

Yes I have thank you redleg and much similar responses but as mentioned it is not practical in most situations to click the ‘+’ and replicate the prompt. It would be ok if the maximum number of possible values in a dimension object is 10, but what if there are 150, and my user may wish to select anywhere between 1 value or 200 values. In an Xcelsius model this of course not practical either. My workaround resolve the issue in that you only need the one prompt.

thanks anyway for the interest you have shown.

Macroman


Macroman :uk: (BOB member since 2002-11-13)