Calculate Result in Rows
In a Bex Query, the function NODIM() has been applied to the Key Figure ZAMOUNT. In the rows I have 0UNIT. I want the Result of ZAMOUNT to show an *, when different 0UNIT are involved.
0UNIT AMOUNT
M2 700,000
M2 500,000
RESULT 1.200,000
M 10,000
M3 26.000.000,000
RESULT *
Please, someone could help me.
Thanks.
Mariana,
Try to check "Display scaling factors for key figures" in the Query Properties.
If you do that, the UNIT will go to the column header and you it will be possible to supress the usage of the NoDim() function.
Regards,
L. Felipe
PS: do you work in PDVSA?
Similar Messages
-
Calculate Percentage from the result of row result
Expert
I want to calculate percentage from row result
For Ex
Vendor
ID Record Percentage
1001 1002 1003 sum
A 10 10% B 20 20% C 70 70% 100 100%
X 50 25% Y 125 62.5% Z 25 12.5% 200 100%
I want to get percentage such as A percentage 10/(102070), , X percentage 50/(5012525)
not A 10/(10207050125+25) = 3.33%
Please help me to get the percentage which client want to
thanksDear Lemine.
Try using this..
Percentage Share of Result (%CT)
%CT<Operand>
Specifies how high the percentage share is in relation to the result. The result
means the result of aggregation at the next level (interim result).
%CT Incoming Orders specifies the share of incoming order values of each
individual characteristic value (for example of each customer) in relation to
the characteristic's result (for example, customer of a division).
Percentage Share of Overall Result (%GT)
%GT <Operand>
Specifies how high the percentage share is in relation to the overall result.
The overall result means the result of aggregation at the next level in the list.
In the calculation of the overall result, the dynamic filters (filters that were
not already defined in the Query Designer) are included.
Hope this helps u..
Best Regards,
VVenkat,, -
How to calculate number of rows for perticular characterstic in SAP BI Bex
Hi experts,
Please let me know how to calculate ' number of rows ' for perticular characterstic in Bex query.
Thanks & Regards,
Babu..Hello,
You can try this
Create a CKF and assign the vale 1 to it. Open the query and select Character where you want to display ' number of rows ', go to properties windows, select 'display', in the results row drop down box, select 'always display'.
Thanks.
With regards,
Anand Kumar -
Calculate result in the query output
Hi,
Consider the case below:
Order Item SalesAgent Quantity Price
555 10 SA1 10 100
SA2 10 100
SA1 20 200
In this case the correct result is (Quantity = 30 (1020) & Price = 300 (100200))
This is as one item can have multiple Sales Agent but the price for each sales agent still reflects the total price for that item (same for quantity). So just to sum up gives the wrong result (100+100 is incorrect, total should be only 100).
If I use calculate result as last value then for the total order it takes only 100.
How can I set a result row for the above case such that it show result as 300. (Price and Quantity are KFs)
Thank you,
samHi Sam,
Could you put the copied portion using the Code button while posting, so that its easy to understand.
Regards -
Suppress Overall result (both rows and columns side and its data)
Hello all,
I need to do some settings in BEx Query Designer, so that In BEx Analyzer, I don't see 'overall result' both on 'rows' and 'column' sides
This is what I have done so far
In 'rows' section, Properties of my KF (no. Products) then 'calculation' tab 'calculate result as'=Suppress result
This way in BEx Analyzer I don't see the FIGURES/DATA for 'Result' and 'overall result' BUT 'result' and 'overall result' still exist both on rows and colum side even if there are not figures in them.
Is there any property in BEx Designer so that I don't see 'overall result' at all
Best regards
Ahmadthanks for responding
selecting a characteristic, properties, Display tab, Result lines: Always Suppress
with this I don't see 'result'
but 'overall result' result exist both on 'rows' and 'column' side alongwith its data.
If I combine the above with this: selecting KF, properties, calucations, Calculate result as: Suppress result
then
I don't see the data in 'overall result' BUT 'overall result' still exist both on rows and column sides
any setting so that 'overall result' completely vanishes
Best regards
Ahsan -
The function Calculate Results as ... could not be applied everywhere.
Hi sap experts,
I am getting following message when executing report.
The function Calculate Results as ... could not be applied everywhere.
Query:
In Rows there is a hierarchy --- Org_UNIt
In columns there are two Selections with Calculate result as summation/
Does anybody know how to solve this Error?
Any OSS notes related to this will be appreciated?Hi,
None of them served purpose.
Any other OSS NOtes or ways to solve it please.
Please help me. -
Calculate result as average in the report not showing average for all
Hello,
I have a calculated key figure in the query where its result should show average. I have made a setting for this calculated key figure as:
1. Calculations tab: Calculate result as "average" and calculate single value as "nothing defined"
2. Aggreagation tab: exception aggregation: Total and reference char: []
Now coming to report, BEX it showing correct average for all cells but when i run it in portal few values it is showing correct average but for few it is showing as blank. I exported this to excel then cell shows blank but cell has some values in the custom format and display values when i change the format to general from "format cells" option.
Please help me in resolving the issue- why portal not showing value for all.
Thanks,
VijayaSAP note solved the purpose.
Thanks & Regards,
Vijaya -
Calculate no.of rows in block/blocks in schema
Hi,
Database :10.2.0.4 RAC ASM
OS: AIX 5.2/5.3
I want to calculate no. of rows exists in a block or in all blocks.
I went to google and found some calculation to get ,but not able to understand in analyzing with minextens,etc.,
Here i am giving my schema dba_segments output for analysis.
SQL>select segment_type,bytes,blocks,extents,initial_extent,min_extents,max_extents from * dba_segments * where owner='SUNAND';
segment_type bytes blocks extents initial_extent min_extents max_extents
INDEX 65536 *8* 1 *65536* 1 *2147483645*
INDEX 65536 *8* 1 *65536* 1 *2147483645*
TABLE 65536 *8* 1 *65536* 1 *2147483645*
TABLE 65536 *8* 1 *65536* 1 *2147483645*
INDEX 84934656 *10368* 82 *65536* 1 *2147483645*
I have separated the output with bold identification.
Could you tell me , * how do i have to find the no. of rows in a table or rows in blocks * ?.
Please tell me , if you need any further information for analysis.
Thanks & Regards,
SunandI've found an answer in "Ask Tom" site:
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:707430700346624722
create table t ( x int ) pctfree 0;
insert into t select null from all_objects where rownum <= 10000;
select count(*)
from t
where dbms_rowid.rowid_block_number(rowid) = (select min(dbms_rowid.rowid_block_number(rowid)) from t);
COUNT(*)
734
Hope it helps.
Roni. -
Bex Query Calculate Result as Ranked
Hi
i have a Bex Query that i am using to design crystal report....
Data output of query is
Country...$....Rank
US.......100...2
UK........200...1
CA........50....3
Rank is copy of "$" and used option "Calculate Result as " Ranked list in Property of Bex Query Designer.
so when i run the Bex Analyzer the rank shows up as 1,2,3
i am using the same bex query in Crystal report, and when i run crystal reports
the rank shows up as 50, 100,200 etc.
why does the rank 1,2,3 doesnot show up in crystal report
what is the other approach to use ranking in Crystal reportHi;
We can use the sort order function in ascending format on Rank object in the crytsal. Please try thgis option
Thanks
Afzal -
Query result Alternate row with different color
hello
can anyone help me on a query result.
i wish to have a :
query result Alternate row with different color .
ex.
first row light grey
second row darker grey.
and repeats itself up to the last record/row.
thanks<tr> <!------------------------------I replaced with
<tr bgcolor="<cfif currentrow mod
2>##D3D3D3<cfelse>##F5F5F5</cfif>">
<td>
#MYARRAY[x][2].CNO#
</td>
<td align="center">
#MYARRAY[x][2].CDCDTt#
</td>
<td>
#MYARRAY[x][2].PADESC#
</td>
<td align="center">
#MYARRAY[x][2].INc#
</td>
<td align="center">
#MYARRAY[x][2].Exp#
</td>
<cfset thirdArray = MYARRAY[x][3]>
<cfif NOT arraylen(thirdArray)>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<cfelse>
<cfloop index="z" from="1" to="3">
<cfif z GT arraylen(thirdArray)>
<td> </td>
<td> </td>
<cfelse>
<td>
#thirdArray[z][2]#
</td>
<td>
#thirdArray[z][3]#
</td>
</cfif>
</cfloop>
<cfif arrayLen(thirdArray) gt 3>
<td nowrap="nowrap">
<cfloop index="z" from="4" to="#arraylen(thirdArray)#">
#thirdArray[z][2]# - #thirdArray[z][3]#<BR />
</cfloop>
</td>
</cfif>
</cfif>
</tr>
I got this error.
Variable CURRENTROW is undefined -
Hi all,
For the key figures, the option of "Calculate Results As Average of Detailed Values That Are Not Zero, Null, or Error" works fine for characteristics drilldown without hierarchies, but with hierarchies it simply doesn't work; instead of calculate the overall result as average, the system calculates it as SUM. It works like the option "Nothing Defined" where the results provided by the analytic engine are displayed. No local calculation takes place.
How can I do to display the overall result of hierarchical drilldown of a characteristic as an average?
Many thanks in advance!
AbrahamIt is usually best to just keep it as simple as possible. What do you think the code in the OR Array Elements does? I imagine it is just a simple FOR loop with a variable to keep the latest OR. So I would do what GerdW just showed with the FOR loop.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines -
Displaying SQL Query results in rows instead of Columns
Hi,
I'm fairly new to Oracle so forgive me if this is a really stupid question.
I used Mysql for a while and if I wanted to display query results in rows instead of columns I could end the SQL command with '\G' instead of a semicolon.
This would give me output like...
Column_1: AAAA
Column_2: BBBB
Column_3: CCCC
Instead of the normal
Column_1 Column_2 Column_3
AAAAAA BBBBBBB CCCCCCC
Is there an equivalent in SQLPlus to the MySQL \G termination?
Thanks.
John> so forgive me if this is a really stupid question.
It is certainly not a stupid question, but pivoting is a very frequently asked and answered question:
[url http://forums.oracle.com/forums/search.jspa?threadID=&q=pivot&objID=f75&dateRange=all&userID=&numResults=15]http://forums.oracle.com/forums/search.jspa?threadID=&q=pivot&objID=f75&dateRange=all&userID=&numResults=15
In 11g you have special PIVOT and UNPIVOT functions.
Regards,
Rob. -
Calculate profit at row level in Discoverer Plus
HI,
I need to calculate profit at row level in Discoverer Plus as follows.
There are columns
1) Account Name- Contains Expense and revenue account names
2) Account type- Contains Identifier for account (E or R)
3) Amount --- Contains amount
4) Period Name -- Contains Numeric Amount.
Cross Tabular Report Look like as follows
Period Name Feb-2009 Mar-2009
Account Name
Total Revenue 100 90
Total Labor Cost 30 30
Total G&A Cost 20 50
Profit ??? ??
Need to show PROFIT =Total Revenue- (Total Labor Cost- Total G&A Cost)
at bottom for each period.
I am unable to use calculations because it appears column wise…
Would you please suggest solution for this?
Thanks,
Mahesh.Hi
Try dragging the data point headings off the top axis and place them to the right of the Account Name. They will all drag together so just moving one will move them all.
If your profit is already calculated and is a data point as you have commented then it too will come over to the left. For displaying it under the other items, a really cool feature about having data points on the left is that you can drag their heading and place it anywhere you want. I will be including this trick in my free March ask Michael webinar. (By the way, if anyone reading this thread you can sign up for my free webinar by clicking here: http://ascbi.com/question.htm)
You should now be able to display your calculated profit as a row underneath the other items. I tried this on my own system and it worked just fine.
Best wishes
Michael -
HI all,
I need to calculate size of row in bytes .
Is there any way to do this ?
I have heard about vsize function..
TIA
SumukhOr since vsize requires data to exist run an analyze or dbms_stats and then see the dba_tables.avg_row_len column value.
This is the average row length for the existing data including the row overhead.
HTH -- Mark D Powell -- -
Results (totals) row in spry datasets
Hi everybody.
I spent a lot of time on the problem how to get row with
result of the spry dataset.
And I found it:
Javascript code:
// This is our dataset
var dsSpecials = new Spry.Data.JSONDataSet("paysdata.cfm",
{path:"rows"});
// This is dataset for results
var dsSums = new Spry.Data.JSONDataSet();
// Loading empty array to results
dsSums.loadDataIntoDataSet("[]");
var myObserver = new Object;
// Calculate function will run each time when data will
change
myObserver.onDataChanged = function(dataSet, data) {
calcTotals(); }
dsSpecials.addObserver(myObserver);
var calcTotals = function() {
var tsums = [];
var rows = dsSpecials.data;
// ... here you calculate what you need...
dsSums.loadDataIntoDataSet(Spry.Utils.serializeObject(tsums));
And now, the final part - HTML code:
<div spry:region="dsSpecials dsSums"
class="SpryHiddenRegion">
<table>
<tr spry:repeat="dsSpecials">
</tr>
<tr spry:repeat="dsSums">
</tr>
</table>
</div>Loveanie wrote:
> There seems to have a bug in the final release of DW CS4
that wasn't there in
> the Beta version: when we create an html Spry dataset
and we check the
> "Advanced data selection" option, DW automatically adds
a row with column0,
> column1, and so on. This row doesn't do anything good
It identifies the column. In Step 2, you can select each
column and
change its name in the Column Name field at the top of the
wizard.
Without a column name, the Spry data set has no way of
identifying the
data you want to display.
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of
ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
Maybe you are looking for
-
Table not showing up in Preview PDF
Hello all, I am having an issue with a form that I am making in Adobe LiveCycle Designer ES. The project that I am working on deals with making a standarized quoteing template to make getting quotes out faster and whatnot. The particular quote templa
-
How to use PasswordDigest to pass credentials in client (Jdev)
Hi', I have a secured web service in OSB, and to call it I have created a proxy client in Jdev, I am able to call it by passing username/password using PasswordText, now I am not getting how to use PasswordDigest to pass credentials, please give me s
-
Sharing itunes on another laptop
Hi there. I am based in London UK - tried transferring my iTunes folder from one lap top to a new one, but I couldn't get the songs to play, kept coming up with "can't find the file". So I tried to share my iTunes library instead (about 10gb total).
-
Embed artwork to itunes track while transfer
Hi All, I have downloaded some iTunes album artwork by clicking on menu item Advance->Get Album Artwork, and then there were some artworks shown in itunes tracks but they were not embedded into each track they are actually being refferred from the lo
-
The way I want to edit my music video is rendering each camera angle separately. I want to line up camera angle one to the music, render, and move on to camera angle 2 and do the same thing. After that I want to bring each file back into premiere t