I use the following formula to create mapping in my report
=If([MyColumn] InList ("1";"2";"3")) Then "ItemA"
ElseIf([MyColumn] InList ("4";"5";"6")) Then "ItemB"
ElseIf([MyColumn] InList ("7";"8";"9";"10")) Then "ItemC"
Else "ItemD"
It works fine until someday the items In List exceeds the limitation. The WEBI is on hold for long time and finally crash due to session timeout.
=If([MyColumn] InList ("1";"2";"3";.........;"999999")) Then "ItemA"
ElseIf([MyColumn] InList ("4";"5";"6")) Then "ItemB"
ElseIf([MyColumn] InList ("7";"8";"9";"10")) Then "ItemC"
Else "ItemD"
So I now consider to alternative solution.
I add new queries “ItemA”, “ItemB”, “ItemC” and “ItemD” in the report. Then, I need a way to check if [MyColumn] is in the List.
Is it possible to do such mapping? Thanks
Dear Mark ,
sometimes (in my case almost never) you don´t have access to universe design or database, or the solution will be cost effective. Perhaps you need just to do it for one report and creating it at universe side is not cost effective.
So we have to develop other solutions.
Regards,
Rogerio
Thanks. it works.
What I did is to create 3 queries ItemA, ItemB, and ItemC, which retrieve data with ItemCode and any column (say “ItemDescription”) in the table
Then I build detail object and linked up to merged dimension ItemCode.
After that, everything is straight forward
If (Not(IsNull([ItemDescription])) Then "Y" Else "N"
I hate to work with pre-canned universe
But not the case this time.
I build it in report level because I give my users privileges to control the mapping themselves