on 06-10-2015 3:52 PM
Experts,
I have need to create a Variable that returns either Y or N so it can used as a Flag to turn on/off things using Input Control. The problem this is variable in NOT tied to any Objects in the Data Provider, it needs to be self stained. Also like creating your on own data values for a table.
Any suggestion,
Ajay
Ajay,
I know that's an old question, but maybe this could helps another users.
Create a WebI Variable with this formula:
=If (RowIndex()=1) Then "Y" ElseIf (RowIndex()=2) Then "N"
This formula allow users to create any custom values and use them on reports. Just replace the =? values for the array sequence and the "" for custom value.
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
May I ask you what's the purpose of it ?
Regards,
Rogerio
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Rogerio,
I want to use the variables from the Filter panel (max workspace) to turn off/on certain levels/portions of the reports. I also want to use another variable to change tables/crosstabs to charts. I have been able to get this to work fine when I create objects within the Universe but I have problems when I start using other datasources not from Universe.
This is why I need to create variables in WebI not associated to any objects from the Universe.
Regards
Ajay
Hi,
do you have access to Custom SQL ?
If so, try this.
If you have just one query, Query 1 :
1 - Drop any text object into the query results panel, edit the SQL and substitute the object name by 'Y';
2 - Execute the query ;
3 - Duplicate Query 1 into Query 2;
4 - Edit Query 2 SQL and change 'Y' by 'N';
5 - Execute both queries and merge it on all dimensions
Let me know if it helped you,
Regards,
Rogerio
Hi Ajay,
As Harshad and Vijay Muniraj said create A dummy variable, this would not be related to your data, but
based on the selection of input control you can write a logic to what you want show, even in table or
chart properties also you can use show/hide option as requested. With current features of webi I hope
you can achieve.
Please post your problem with screen shots it would be easier to understand your scenario.
Regards,
Sampath Kumar G
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ajay, Can you brief your requirement with an example ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ajay,
1) Create a variable v1 with ="Y"
2) Create a input control on v1 and Manually enter value N in list
3) Now create variables wilth if then else for example
=If [v1]="Y" Then [Your required logic] Elseif[v1]="N" Then [Your required logic]
4) Make variables like above and use them in report to see the change through input controles instead of using orignal objects.
Thanks,
Haseeb
1. Create a variable: Flag ="Y"
2. Create a radio button input control on [Flag].
3. In custom list of values, add Y from the list and manually add N.
4. Uncheck Allow selection of all values.
5. Select a default value as Y.
6. Test.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
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.