Webi XI
I have an object that can have multiple Risk Factor values for each customer, each visit. I need to create a variable that will show all of them in one row. Some customers will not have any values, some will have 3, some will have 7. Any ideas on how to do this? I have tried creating a variable using previous, but it seems to repeat the values if there are only 2 or 3 values - as it is designed to show up to 7. Here is my UV example that isn’t working as I’d like:
I have created a RelativeValue variable and my rpt does not like it. I am getting this error message when I try to add it to my rpt:
index: The argument is out of range: 2<0 or 2>=2. (Error: RWI 00012)
I do have all these objects in this variable on my rpt
=RelativeValue([Risk Factor];([Link ID]);-6)
Risk Factor can have zero or many values per vist
Link ID is the unique visit ID
Date - I have also used this inplace of the Link ID and get same error message.
Even if I change the offset to -1, I still get this same error message.
When I had my crude, huge variables, I was getting all (up to 7) but like I say - it’s pretty crude results.
Is it the way I have my variable setup?
Link ID does not change
Date does not change
Have you tried to apply the formula in structure view?
Sometimes, in the case of Java errors, you have to shut IE down otherwise the error will continue to re-occur.
It also worth trying the memory tweak I suggested, providing you have enough memory in your machine.
Also, maybe, you could see if it works in the Rich Client.
I will ask my administrator about the Java settings. We have a new BO setup so I would think we have the latest supported version of Java.
Also - I only have Webi - no Rich Client. My company is not implementing Rich Client. Also I don’t have option for Structure view in Webi.
As I recall, you must display all values in a table for Previous to work, maybe thats better in 3.1? The best approach is to have the DBAs provide a table/View that privides the data this way, you shouldn’t have to jump through hoops to make it work.
I think you misunderstood what the poster was asking for. Although a database function is a possible solution, it is not related to recursive tables and flattening the structure.
Consider an application where multiple comments can be made over a period of time. Each entry has a datetime stamp and each comment is tied to the same dimension like Project Number. I think what the poster was asking was similar to asking to see all comments made on this project in 1 row instead of multiple rows (one for each comment).
That is correct - that was what I was wanting to do. I did find a previous post that helped me resolve this. It was the second attachment that had the variables I needed to achieve this.
Data values in single line with commas in a field: