on 03-20-2018 10:04 AM
Dear Experts ,
I have a prompt that takes multiple patterns from the user in one filter and would create a table in the webi report with three columns as shown in the image below:
Now I am trying to create a variable in which I can take the user response from the prompt and parse it on the basis of Pipe operator( | ). Such that the string values can convert into rows such as
And then use that variable to create a new table to get the sum of column C based on pattern.
Tools Using:
SAP Web Intelligence 4.2 SP03, Information Design Tool 4.2 SP03, Oracle 11g
Thanking you in advance
Regards,
Bassam
Hi,
Basically you want to display prompt values entered by the user, right?,
==>Try UserResponse() to display prompt values on the report and drag and drop dimension to a table column which prompt is based on.
Say, if you have prompt on State :
=Userresponse("Select States");
and drag and drop State dimension into the table.
==> Pipe sign to separate multiple entries: =Replace(UserResponse("Select State");";";"|");
If you want to show them in rows then =Replace(UserResponse("Select State");";";Char(13)+Char(10))
Thanks,
Jothi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Jyothirmayee A,
Thank you for your response.
I altered the formula behind my the variable that would previously get UserResponse() without splitting the string based on Pipe operator. As per your comment I altered the Formula to this
=Replace(UserResponse([Query 1];"Fare Basis (* for all)");"|";Char(13)+Char(10))
Is this what you meant? With this I am able to split the user response based on pipe operator in a single cell with multiple rows.
But what I am looking for is to create multiple row cells so that I can calculate sum of other columns for that particular pattern/string. In the above case I want it to create four row cells for each of the column.
Hi,
Yes, this would show as multiple rows in single cell.I'm afraid you would be able to achieve this.
We cannot put each value in an individual row of a table.
Instead use a dimension that prompt is based on within the table as column. Like below, I have a prompt (promptval) on Group Acc Number .
Thanks,
Jothi
.
Hello Jyothirmayee A,
Since I am using a pattern match in my prompt I get multiple values for the same pattern so the above is not possible.
My current scenario is this:
I need to generate the required table(shown in the image above) based on the number of patterns entered by the user. Currently I am getting the values as in the current table(shown in the image above).
Thanks,
Bassam
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.