on 05-12-2015 3:03 PM
hi guys, i have a scenario where i am required to convert Blank values coming in on an attribute to convert it to # to show in webi variable screen value list
E.g
i have a field could region and its attribute is group , no bex behind this, relational IDT universe, when i go to the object to see the list of values my first value is "Blank" as in Space . the user community doesnt like the space value and want it changed to be # value. i could write some SQL (beginner level) inIDT on group level. need help with the statement.
has to be done in IDT, webi is not the option.
anybody got any ideas.
thanks
Refer the column directly and try the following
Case when len(trim(yourtable.column))=0 THEN '#' Else yourtable.column End
What is your underlying database ?
Regards,
Naras
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
none of the suggestion worked sorry guys but i figured it out.
so what i did was convert the underlying attribute to a dimension and now all the values are showing up and blank shows up, when i go to webi it just says not assigned which works.
moral: underlying attribute in IDT Blank values wont show up if its used as a variable in Webi prompt Screen. need to recreate the attribute as a dimension in IDT then it will work.
guys just to clarify, this is not in side the report, it is inside the Variable selection screen from master data.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
if you want to show # in case when there is null value for any measure having number datatype then you won't be able to do it.
As measure can take only numeric values so I would suggest in that case you can show some value that never going to exists like 999999999 .
So you can do it by
NVL(measure;999999999)
I hope that will make sense.
Thanks,
Swapnil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Use replace function in IDT object.
Replace(Object,'','#')
now blank values will be replaced with #.
or if value is null then use ifnull function.
syntax is
nvl(Object,'#')
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.