How to use the "Overall Result" KF value in a formula in BW query ver 3.5
My query produces this output:
Characteristic.......................................................... Key Fig
X ............................................................................ 408,679.57
Y....................................................................... 1,548,085.14
Z ..................................................................... 300,000
Overall Result...................................................................... 2,256,764.72
I need my query to perform this calculation
Characteristic.......................Key Fig...........................Key Figure
X....................................408,679.57......................408,679.57/2,256,764.72
Y.................................1,548,085.14....................1,548,085.14/2,256,764.72
Z....................................300,000............................300,000.00/2,256,764.72
Overall Result...................................................................2,256,764.72
How can I used an overall result value in my query calculations?
Edited by: Carolyn Yankovitz on May 7, 2009 8:44 PM
Hi,
Try using SUMCT, SUMGT,SUMRT which are there in data functions in query designer.
You need to first create formula and then use SUMCT,SUMGT, SUMRT.
Hope it helps.
Praveen Tati
Similar Messages
-
How to get the Overall result and Avg in Query
Hi
I am facing a problem to find Overall result and Avg for the keyfigure.
Here is the scenario.
I have a fiscalperiod ,qty in query column and material in row, when user enters the fiscalperiod(004.2006 to 006.2006)
the output should come as
0406 0506 0606 Avg
M1 10 20 40 35
M2 20 40 30 45
res 30 60 70
i can able to get the overall result not avg,
if i change the properities of keyfigure 'Calicuate Result as 'Average of all values'',then i am loosing the overall result.
eitherway i can able to get one result,not both.
anybody can help.
Thanks
MadhuYou have 2 key figures and you have put Material in the ROWS.
Remove Material from ROWS and instead use 0FISCYEAR in the row selection.
You can create 12 Key figures for each month and use either Filer or Free Characteristic using 0CALMONTH to restrict the month for the selection Variable.
For the Key Figures use "Calculate Single Value as" Average.
Create another formula as KF1KF2....+KF12 to get the sum of average.
Regs
Gopi
Assign points if it helps... -
Hiding lines in a query while using the overall results
Hi all,
We got a hierarchy with 4 levels. Each element of the first level after the root "L1" (2nd level in real) receive amounts called "INITIAL". The next step is to send and dispatch these amounts to the 3rd level "L2". At this point, the L2s can send to each other amounts which are then typed as "TRANSFER" and no more "INITIAL" or send and dispatch to the 4th level elements.
We isolated these movements to emphasize on the L2s which is part of the query goal. The lines as then restricted to the L2s. The next column must compare as a percentage the amounts typed "TRANSFER" to the amounts a the their L1s (father node).
<u>Our need is to know how to receive an overall result ("INITIAL" amounts on L1s) at the level 2 strictly.</u>
Type of hierarchy :
1. ROOT
2. L1A : INITIAL (1000)
3. L21-1A : INITIAL (700) -> TRANSFER type for 200
4...
3. L22-1A : INITIAL (300) -> TRANSFER type for 100
4...
2. L2A : INITIAL
3. L21-2A : INITIAL & TRANSFER
4...
3. L22-2A : INITIAL & TRANSFER
4...
<b>The result of the query is :
L21-1A : 20% (is 200/1000)
L22-1A : 10%</b>
Thanks in advance for your help.
GeoHI,
I would suggest you to create a new KF with a formula to check if any of the KF value is zero for example..
New KF =(( col1 == 0) OR (col2 == 0) OR (col3 == 0) )
You then hide this new KF always in the query and create a condition to display rows where the New KF is not equal to 1.
This will hide all the rows which have any of the 3 KF's as 0.
Regards,
Shilpa -
How to use the 'Username' filed's value in form level scripting?
Hi,
I have applied the Rights Management for a form. I wanted to use the 'Username' field's value, which is present in below image for the form side scripting. How can we get this value? Any script is there to extract this value in the form?
Thanks in advance,
ArjunHi Jo,
Thanks for the reply. The settings (MobileEngine.Security.SyncPasswordFieldAtLogon=true) in my Mobile client is such that when i open it i am asked the User, Logon Password and the Synchronization password(which is not mandatory). So if I dont even enter it during logon i am asked to enter it when i hit the sync button on the client.
But if i have entered it during logon and then hit the sync button on the client, that time i am not asked to re-enter my sync passwd and the client syncs with the b/e. Which means that the sync passwd i had entered during logon is definitely stored somewhere.
What i mean by using the sync passwd in applications is this :-
-> In a generic sync appln before synchronising with the b/e we need to give the sync passwd to the SyncManager. How do we get this sync password from the user of the appln?
-> We can either ask him to enter it as in input to a jsp OR else since he has already entered it during logon we need not ask him to enter it again and retrieve it via some API.
Is this possible.
Thanks & Regards,
Saurabh.
Message was edited by:
Saurabh Agarwal -
How to display the Overall result value at the top of work book
Hi,
How can i display the value of Overall result(Sum of the Total) column at the top of the work book in Text field.
Thanks
SreadharGo to Query Global properties in Query designer and you can find a setting to show result rows on top. This setting will show overall result as first row in the report. But I don't think you can show it in Text field in WB.
-
How to use the first row function value for the rest of records
Hi all,
I am having a select statement like this. We are calling function enabled for each row. So it is taking
time. As per our bussiness logic, we can use what the function 'enabled' will give for the first row to
other rows also. so that we can avoid calling the function 'enabled' next row onwars.
Before
SELECT
decode(enabled(col1, col2, col3),'TRUE','xxx', col4),
decode(enabled(col1, col2, col3),'TRUE','xxx', col5),
decode(enabled(col1, col2, col3),'TRUE','xxx', col6),
decode(enabled(col1, col2, col3),'TRUE','xxx', col7),
decode(enabled(col1, col2, col3),'TRUE','xxx', col8),
from
table1 t1, table2 t2 where t1.col1 = t2.col1
After
SELECT
decode(enabled(col1, col2, col3),'TRUE','xxx', col4),
decode('true/false','TRUE','xxx', col5), --Here 'true/false' is the first row value after calling the function 'enabled'
decode('true/false','TRUE','xxx', col6),
decode('true/false','TRUE','xxx', col7),
decode('true/false','TRUE','xxx', col8),
from
table1 t1, table2 t2 where t1.col1 = t2.col1
Any thoughts on this, how to implement this logic
Thanks,
PalIt's not clear where col1, col2, col3... etc. come from, so I've assumed they're in table1.
with table1_X as (select enabled(col1, col2, col3) as enbl
,col1, col2, col3, col4, col5, col6, col7, col8
from table1)
SELECT decode(t1.enbl,'TRUE','xxx', col4)
,decode(t1.enbl,'TRUE','xxx', col5)
,decode(t1.enbl,'TRUE','xxx', col6),
,decode(t1.enbl,'TRUE','xxx', col7),
,decode(t1.enbl,'TRUE','xxx', col8),
from table1_x t1 join table2 t2 on (t1.col1 = t2.col1)p.s. you'd be better leaving out the enabled function altogether and incorporating the logic of the function directly in the SQL, and then you would be avoiding any context switching which will clearly impact performance on any large amount of data.
Edited by: BluShadow on 14-May-2013 08:26 -
How to use the output result after executing SUBMIT
Hi,
We want to use a field value which should come from the result of running a standard Report in our own customer program.
And if using SUBMIT command to run that report and then using 'LIST_FROM_MEMORY' to call the result, but it seems the result is in Unicode mode, we can't directly use that result in the called program. What do we need to do? Is there other FM to convert the result? Thanks in advance for your valuable input.
Regardsuse of LIST_TO_ASCI?
-
How to generate the overall result on the Characteristics
Hi,
I was suppose to display the over all total on the Characterictics.
I tried all the procedures... but unable to resolve the problem.
Pls kindly help me and provide me the steps.
Thank youYes Gupta,
KF has there own results at the bottom.
Take an example.
i got 2 char : Name and N0 and
I got 2 kf : T1 and T2.
Now Name, No, T1 and T2 got the values in this fashion :
Name No T1 T2
Ravi 10 200 400
Ramu 20 300 500
Total 30 500 900
500 and 900 will automatically calculate bcz they are Key figures
but i need the total of <b>NO</b> : 30 .
How to display 30 as a total why bcz <b>NO</b> is charcteristics.
How to calculate it.
Thank you -
How to use the prompted value in the filter expression
Hi
Is it possible to use the prompted value in the filter expression?
My requirement is that user will be prompted for a date field and I need to filter the records such that the records are displayed for the last 5 weeks from the date entered by the user.
If somehow I know how to use the prompted value in the filter expression then this requirement is easy to be done. If this is possible, please guide me?
If there are other ways to acheive the desired results then please suggest.
Thanks
-JazEdit: example added
SQL> create table tb_test
2 ( id number(5)
3 , tot number(5)
4 , mon_tot number generated always as (tot*15) virtual
5 );
Table created.
SQL> insert into tb_test (id, tot) values (1, 5);
1 row created.
SQL> select * from tb_test;
ID TOT MON_TOT
1 5 75
1 row selected.
SQL> update tb_test
2 set tot = 15
3 where id = 1;
1 row updated.
SQL> select * from tb_test;
ID TOT MON_TOT
1 15 225
1 row selected. -
Using javascript to change the "Overall Result" cell in WAD
Hi experts,
I am trying to use javascript to change the text of the "Overall Result" cell in my web template using BI 7.0. I am not familiar with javascript, but I this is what I have done so far.
I dragged the web item "Script" into my web template and I inserted the following code:
function change_overall_result_to_average() {
var cell = document.getElementsByTagName("TD");
var cellText;
for (i = 0; i < cell.length; i++)
cellText = cell<i>.innerText;
if (cellText == "Overall Result")
cell<i>.innerText = "Average";
In the XHTML view I am using added the onload function to start the javascript every time the web template is loaded. The code works fine when the web template is first loaded and the cell text is changed to "Average". However, if I navigate in my web template, the javascript function is not triggered, and the cell is therefore changed back to "Overall Result". For example, this happens when I pick another selection from one of my dropdown boxes, such as changing the selection from year 2008 to year 2007.
I don't really know how to solve this problem in an easy way, and the current solution is not good enough. I hope one of you guys can suggest an easy way of fixing this:-)
Best Regards,
MortenWoodstock apparently renders some Javascript/DOM with some homegrown widget framework which on its turn renders the HTML DOM tree instead of plain vanilla HTML. Correct me if I'm wrong, to confirm this, just view the generated HTML source of the page.
After some Googling I found out that you need getProps() and setProps() to get and set element attributes respectively.
[http://google.com/search?q=webuijsf+domnode+site:sun.com].
If you stucks with this, I recommend you to post this question at a forum or mailinglist devoted to Woodstock, e.g at their own homepage at dev.java.net or the Netbeans forum at nabble.com. You're here at a Sun JSF forum, not at a Woodstock forum. -
Problem in positioning of the Overall Result Row when using a hierarchy
Hello All,
i've built a query on a hierarchy and i want the 'Overall Result' to be displayed at the bottom.
I've made the following setting in the Query Designer
<b>Query Properties -> Display -> Results Position -> Bottom/Right</b>
but still, the 'Overall Result' is displayed at the top of the result rows.
Could some one please tell me if this is how the functionality is expected to work when a hierarchy is used for display ?
We are on BW3.1 SP 9
Best Regards,
Sanjay<b></b>Hi Roberto,
could you please let me know if the following analysis of mine is correct.
The Overall Result will be dispalyed at the top if the 'Position of Lower-Level Nodes' is set to 'Down'(default setting) in the Hierarchy Properties of
the characteristic. If the 'Overall Result' is required to be at the bottom then 'Position of Lower-Level Nodes' has to be set to 'Up'. It is not possible to display the Overall Result at the bottom with the 'Position of Lower-Level Nodes' set to 'Down'
Will greatly appreciate your help !
Best Regards,
Sanjay -
The overall result shows * instead of the value
Dear Experts,
In my report i've qty in columns and item in rows. The qty is in all Ea. (Each). So when i run the report i thought all the noumber would be added for qty and displayed in the overall result.
But in the overall result it shows a * . However in the formula bar in excel it displays a number like 44000.
I tried using nodim() and it worked, but my question is since the qty is in all Ea.'s shouldnt it add up the value to be displayed in the overall result.
Can someone shed some light.
Thank you...No Jr., i dont any record with a blank value.
Wond, i agree with you. I thought i should see the total since all the items are in Ea.
Is there anything else i can check. -
How to use the updated value in the same update statement
Hello,
I just wonder how to use the updated new value of other column in the same udpate statement. I am using Oracle 11.2, and want to update the two columns with one update statement as following:
create table tb_test (id number(5), tot number(5), mon_tot number(5));
update tb_test set (tot = 15, mon_tot = tot *15) where id = 1;
...I would like to update both tot and mon_tot column, the value of mon_tot shall be determinted by the new value of tot.
Thanks,
Edited by: 939569 on 1-Feb-2013 7:00 AMEdit: example added
SQL> create table tb_test
2 ( id number(5)
3 , tot number(5)
4 , mon_tot number generated always as (tot*15) virtual
5 );
Table created.
SQL> insert into tb_test (id, tot) values (1, 5);
1 row created.
SQL> select * from tb_test;
ID TOT MON_TOT
1 5 75
1 row selected.
SQL> update tb_test
2 set tot = 15
3 where id = 1;
1 row updated.
SQL> select * from tb_test;
ID TOT MON_TOT
1 15 225
1 row selected. -
How to get the best results using the refine edge tool?
how to use the sliders in the refine edge tool? how do you get the best results using the fine edge tool?
You should ask in the forum for the (un-named) program you are using
The Cloud forum is not about using individual programs
The Cloud forum is about the Cloud as a delivery & install process
If you will start at the Forums Index https://forums.adobe.com/welcome
You will be able to select a forum for the specific Adobe product(s) you use
Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll -
how to get the Benefits Rate multiplier value in HCM extract ? used Extract rule type Fastfomula, but returns null.
Formula:
DEFAULT FOR BEN_ABR_NAME IS 'NA'
DEFAULT FOR l_rate_multiplier IS 'X'
L_BG_ID = GET_CONTEXT(BUSINESS_GROUP_ID, 1)
L_EFF_DATE = GET_CONTEXT(EFFECTIVE_DATE, to_date('1951/01/01 00:00:00'))
L_ABRT_ID = GET_CONTEXT(ACTY_BASE_RT_ID, 9999)
CHANGE_CONTEXTS(EFFECTIVE_DATE = L_EFF_DATE, BUSINESS_GROUP_ID = L_BG_ID, ACTY_BASE_RT_ID = L_ABRT_ID )
l_rate_multiplier = BEN_ABR_NAME
RETURN l_rate_multiplierI used DBI - BEN_ABR_NAME.
What is back end query ? can we use query to extract the value in Extracts ?
Maybe you are looking for
-
Hi I am thinking of using a Mac Pro for share trading. I am proposing to start small but want to be able to expand up to 30+ monitors. It must be super quick. Any help with hardware would be appreciated. Software is secondary at this point , but open
-
Hi everyone, Lastnight I setup Eclipse to work with Tomcat, which works very good, but there are something I don't understand. 1. My files are put in my workspace in (C:\Documents and Settings\...etc) How does Tomcat (which is installed in C:\Tomcat)
-
Camera with no zoom.....
Ok so i bought the iphone 3gs and i was wondering why hasn't apple added a zoom feature i mean this is the new iphone and it has a video camera and all this new stuff but no zoom i mean i've seen phones years old that have a zoom feature i know the c
-
Report header to display dimensions
All, I am trying to make the text box in my report header display member names of our C2 dimension, which is departments. This dimension is in a column which has a prompt for values. When the report is ran, I would like users to be able to select dep
-
Is there anyway to restore my i-tunes acct to my laptop? both my laptop
is there anyway to restore my songs to my i-tune acct? my laptop & i-pod broke and my songs are gone? thanks