Hi to all
How to add 3 dummy values to a variable in webi report or 3 dummy values in a object in universe and bring into the report. When I drag this object into report it should display as row wise 3 values but not as one straight row. I tried to bring them as optional prompt but I am able to bring only one dummy value but not 3. Any help is appreciated.
Thanks Mohan[/list]
I do not fully understand your requirement. Can you provide an example of what you are trying to achieve along with the results you currently get. Also explain what you have done to get your current results.
Sorry for the late reply. I wanted to put drill filter in the report so that user can select what ever block/ table he wanted to see. I have 3 different blocks and one summarized table I wanted to give user option to select which table/block he wanted to see or all blocks. I have achieved this by adding a prompt and user response but Now I want to do this in the report it self by not adding prompt. So if Is there any way to create a dummy variable which holds 3 values example block1, block2, All. So that I can use this variable in report filter and drill filter and achieve my results.
Currently when I run the report it prompts user to select which block he wants to see and based on the selection he will be able to see that block/ table and summarized table. Now I want to achieve the same results without using prompt. Any help is greatly appreciated.
THanks Mohan
Hi JPetlev,
Thanks for responding. But the question is creating a dummy variable at the report level without using Any data provider.
Like we do in sql using union statements as you listed above, can we do the same at webi report level. We can create a variable with a single constant value. but what if we need multiple values?
I’m not quite sure if we’re talking the same thing… when you say REPORT level, are you refering to the REPORT side only, and not the QUERY of the document? Usually when people say report level, they typically mean ‘document’ level (ie: not-universe-stuff), so I incorrectly assumed that was the case here as well.
The short answer is you can only use custom-sql in the Query itself (Query tab within the Document).
Within a “variable” on the report side of the document, think of it as a basic formula only, it’s just a way to convert, calculate, aggregate and perform logic operations on a SINGLE record value (though it is set based). Thus one value goes in (or a set) and one value comes out per record.
There is no way to use a variable to return a record set that I can think of. Only Queries can return record sets… but you can use custom sql union statements to do what you want. (But if your documents have the edit SQL permission locked down for webi, as I now suspect, then you’re out of luck).
The answer is you cannot.
WEBI does not allow you to create data out of thin air, it can only calculate on the data you’re given.
If you can convince someone to open up the permissions on your WEBI settings to allow you to create a custom data provider (aka query tab) with Custom SQL, then you can do what you want to accomplish.
Otherwise your only option is to export the data into Excel or Access, or some other reporting software and manipulate it there where you have FULL control.
You cannot create a dummy variable with array of values. One way to achieve it is certainly using a new data provider with custom SQL in it as mentioned by JP.
Another way to achieve this is by creating a derived table in universe with the Union SQL to create dummy data.Create an object in the universe from the column of the derived table and later use it in a new data provider.
Now, the solution for friend’s scenario is again creating a derived table in the universe and creating an object from this table. When you pull this new object with dummy data within the same data provider of your report, it will create a cartesian product since there are no joins between derived table and other tables in the query. This will achieve the result you want to see in your report.
jpetlev is correct, however, your response here seems to indicate that a cyclic calculation could be acceptable.
if you start with a variable containing:
to get a cell that cycles through the set {1,2,3} you could then use it as an index to extract a letter from the string “ABC” to get something that cycles throuhg the set {A,B,C}.
By changing the index number from 3 to whatever you want and using a string of equivalent length, you can have whatever size set desired. However, for single character Alpha only strings you are limited to a max of 26 items.