cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Text variable replacement not working in Web-Intelligence report?

Former Member
0 Likes
1,032

Hi All,

I have created a bex query where i provide cal . yr/quarter as input and in return i get past four quarter revenue along with present quarter revenue.

Now i have created a text variable(zcalquat) which replaces cal yr./quarter with its text for 5 quarter dynamically at runtime.

Now i have created a universe and webi report on top of that query.

But my webi report shows heading for all five quarters as &zcalquat& instead of its quarter text .

I mean to say that my text variable is not getting replaced dynamically in web -intelligence report .though its working in bi.

please provide a solution that i need to do in universe designer so that i get dynamic variable replacement according to inputs entered.

Need help from you all.

Hope my issue get solved.

PRIORITY !!!!!

With Regards,

Montz

View Entire Topic
former_member793810
Active Contributor
0 Likes

Hi,

Functionalities that can be done in BW and BO WEBI in different ways, but cannot be transferred from BW to BO in current BO version (BO 3.0/3.1) like Text Variables.

There are steps to help you create one in WebI

Create a prompt variable in BO based on which you want to change column name. In this example letu2019s assume it is Calendar Month.

Select Prompt. Define text for the prompt. In this case it is u2018Calendar Monthu2019

Refresh the report. Enter the desired selected month. Define the properties of the prompt like single, range, in between, etc., as required.

Define USERRESPONSE function for column whose label has to be dynamically replaced by selected month. Define the text of the prompt inside the USERRESPONSE function.

You can use some advanced functionalities for USERRESPONSE functions. Please click InfoView Help for more details.

The column label will be replaced by Dec 2009, the selected month in this case.

Former Member
0 Likes

Can you please explain with a example in detail on how will i get previous quarter text?

With regards,

Montz

0 Likes

Hi Montz,

You need a variable (manual user entry) built on 0calquarter that will be run when the report starts. You can set the variable to mandatory input so the user always has to fill out this variable when the report is executed. Did you already create this variable??

Then you create a structure in your query. Make 5 selections and in each selection you drag the infoobject 0calquarter into the selection. Restrict the 0calquarter infoobject in your selection by choosing the variable on 0calquarter you just created. On the first selection you do not make an offset. On the second selection you make an offset on the variable that is "-1". On the third selection you make an offset that is "-2" and so on.

Now you should have the correct data in your structure. Now you will need a text variable that can be dynamically updated depending on the user input. Create a new text variable on the 0calquarter infobjects that uses "replacement path". Set the text to "label" and check the "from value" box. Now this text variable will show the correct quarter text dynamically.

If you need more details, then just ask:-)

Best regards,

Morten

former_member793810
Active Contributor
0 Likes

Since Text Variable cannot be imported into WebI from Bex yo uneed to create in WebI.

Follow following syntax pattern to achieve this task...

=If(UserResponse("Quarter"))="0calQuarter" Then "XYZ"

Regards,

Bashir Awan

0 Likes

Hi Bashir,

The userrepsonse function is also an okay solution. However, text variables do indeed work when using them in structures in BEx.

The text variables will not work when used in restricted key figures.

Best regards,

Morten

Former Member
0 Likes

Hi Bashir,

If i give cal/quat = 20101

Then what formula i should write to get text for current quarter in addition to past four quarters.

With Regards,

Montz

0 Likes

Hi Montz,

The formula to get the user input could be something like this:

=UserResponse("Calendar year / quarter")

You may have to change the "Calendar year / quarter" text. This text should be the same as the text you see in the top of the prompt window when you have to enter the quarter prompt.

You should use different formulas for the other quarters. The formulas will be long and you probably have to split the result from the UserResponse function and concatenate it with other strings to get your desired text. Be aware that the result from the UserResponse formula is a string and you may need to turn it into a date before changing the format.

If you have problems making the quarter texts, then write back and tell us the exact format you need.

Best regards,

Morten