Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8581

Re: Using of variables and input controls in web intelligence rich client

$
0
0

Hi Antonio,

 

I think in one Input control you may not be able to enter all 12 months.

 

Better create 1 for every qurter

 

So You have three Input Controls.

 

Follow below steps to get your requirement

 

1. Create a 4 new variables with formulae as below

 

          a. Q1 =" "

          b. Q2 =" "

          c. Q3 =" "

          d. Q4 =" "

2. Create Input Controls on top of them. The Input Control should be of Entry Type and remove default values if any.

3. Now Type your Billing Values in Input Controls for each quarter in four input control boxes as shown below

 

Capture.JPG

4. now create a variable as below

 

BILLING = If ([Month] = "January") Then Substr([Q1];1;4) Else If ([Month] = "February") Then Substr([Q1];Pos([Q1];";")+1;4)Else  If ([[Month]] = "March") Then Right([Q1];4) else If ([Month] = "April") Then Substr([Q2];1;4) Else If ([Month] = "May") Then Substr([Q2];Pos([Q2];";")+1;4)Else  If ([[Month]] = "June") Then Right([Q2];4) else If ([Month] = "July") Then Substr([Q3];1;4) Else If ([Month] = "August") Then Substr([Q3];Pos([Q1];";")+1;4)Else  If ([[Month]] = "September") Then Right([Q3];4) else If ([Month] = "October") Then Substr([Q4];1;4) Else If ([Month] = "November") Then Substr([Q4];Pos([Q4];";")+1;4) Else  If ([[Month]] = "December") Then Right([Q4];4)

 

Add this variable in your cross table to get the result you wanted.

 

Thanks,

Tanveer.


Viewing all articles
Browse latest Browse all 8581

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>