How to find average for non blank values
I need to calculate avarage for each restricted key figures. There are some blank values in this restricted key figures. Now I need to sumup and divide by non blank count. Do you know how to do it? How to count non blnak values and find avereage.
Thanks,
Phani
In the properties of Key figure used in column/row, Calculations section, you can maintain calculation type for result as well as single value. There is "Average of all values not equal 0" option is available.
Rgds,
Vikram.
Edited by: Vikram Kate on May 22, 2008 11:23 AM
Similar Messages
-
How to load init for non cumulative values?
Hi folks,
anyone here, who can tell me how to load initial amounts from DSO to non cumulative values in InfoCubes?
I found only poor documentation about this.
Thanks!hi Timo
you load initial of load as you do in the normal case only thing you have to keep in mind that before loading opening balance you have to UNCLICK NO MARKER UPDATE from the infocube and compress the request ASAP as it will greatly effect your query performance.
sanjeev -
How to find out the Non Partitioned Tables used 2Gb on oracle
Hi team
how to find out the Non Partitioned Tables used > 2Gb on oracle where not is sys & system
regardsheres 1 I made earlier
set pagesize 999
set linesize 132
col owner format a25
col segment_name format a60
select owner,segment_name,segment_type,(bytes/1024/1024)"MB size"
from dba_segments
where owner not in ('SYS','SYSTEM','XDB','MDSYS','SYSMAN') -- edit for taste
and segment_type = 'TABLE'
having (bytes/1024/1024) > 2000
group by bytes, segment_Type, segment_name, owner
order by 4 asc -
Hi,
I am trying to find out the latest delivery date(EINDT) for each purchasing document (EBELN) through graphical way.
The view contains other fields apart from the above mentioned two fields.
When only the two fields (EBELN, EINDT) are there, then in semantics, I can select 'Max' as aggregation to get the maximum value for each document.
If I do like this, then I need to join more than 3 views and also so many joins in calculation view. Taking so much time for data preview.
Hence , please help me in getting the solution while the view contains other fields also.
Thanks in advance.
Thanks,
JyothirmayiHi Sreehari/Vinoth,
Thank you for your replies.
if only two fields are then I can get the max/min values of one field corresponding to other field.
But more than two fields are there with different values, then let me know how to find out the max/min value of a particular filed corresponding to the 2nd field with other fields also should be in the output.
I hope you understood my issue.Please revert in case of questions.
Thanks & Regards,
Jyothirmayi -
Hi Experts,
We are working for BI implementation for AFS Industry,
when we are working on AFS specific inventory cube 0AFMM_C02 , we are facing stock mismatch problem
for AFS Stock initialization we are using the data source 2LIS_AF_STOCK_INITALIZATION instead of 2LIS_03_BX, this data source is specificly designed for AFS
when we are extracting the data using 2LIS_AF_STOCK_INITALIZATION for stock initialization and
2LIS_03_BF data source to load the Moments.
we compressed cube with Marker update for 2LIS_AF_STOCK_INITALIZATION data load(by deselecting the No marker update check box)
we compressed cube with No Marker update for 2LIS_03_BF historical data load(by selecting the No marker update check box)
we compressed cube with Marker update for 2LIS_03_BF Delta data load(by deselecting the No marker update check box)
Now we are facing stock mistach problem, we found reason for this
"initial non-cumulative for non-cumulative values" option is not available in DTP only Delta & Full options are available
and infopackage of 2LIS_AF_STOCK_INITALIZATION data source also has "Full update" instead of "Generate Intial Status"
Please let us know how can we get the "initial non-cumulative for non-cumulative values" option in the DTP level.
Regards,
ChandraHi Chandrakumar,
We are facing the same problem, how do you solve it?
Regards, -
Selectivity for non-pupular value in Height based Histograms.
Hi,
I wanted to check how optimizer calculates the cardinality/selectivity for a value which is not popular and histogram is height based histograms.
Following is the small test case (Version is 11.2.0.1) platform hpux
create table t1 (
skew not null,
padding
as
/* with generator as (
select --+ materialize
rownum id
from all_objects
where rownum <= 5000
select /*+ ordered use_nl(v2) */
v1.id,
rpad('x',400)
from
generator v1,
generator v2
where
v1.id <= 80
and
v2.id <= 80
and
v2.id <= v1.id
;Following is the table stats:
SQL> select count(*) from t1;
COUNT(*)
3240
SQL> exec dbms_stats.gather_table_stats('SYS','T1',cascade=>TRUE, estimate_percent => null, method_opt => 'for all columns size 75');
PL/SQL procedure successfully completed.
SQL> select column_name,num_distinct,density,num_buckets from dba_tab_columns where table_name='T1';
COLUMN_NAME NUM_DISTINCT DENSITY NUM_BUCKETS
SKEW 80 .013973812 75
PADDING 1 .000154321 1
SQL> select endpoint_number, endpoint_value from dba_tab_histograms where column_name='SKEW' and table_name='T1' order by endpoint_number;
ENDPOINT_NUMBER ENDPOINT_VALUE
0 1
1 9
2 13
3 16
4 19
5 21
6 23
7 25
8 26
9 28
10 29
ENDPOINT_NUMBER ENDPOINT_VALUE
11 31
12 32
13 33
14 35
15 36
16 37
17 38
18 39
19 40
20 41
21 42
ENDPOINT_NUMBER ENDPOINT_VALUE
22 43
23 44
24 45
25 46
26 47
27 48
28 49
29 50
30 51
32 52
33 53
ENDPOINT_NUMBER ENDPOINT_VALUE
34 54
35 55
37 56
38 57
39 58
41 59
42 60
43 61
45 62
46 63
48 64
ENDPOINT_NUMBER ENDPOINT_VALUE
49 65
51 66
52 67
54 68
56 69
57 70
59 71
60 72
62 73
64 74
66 75
ENDPOINT_NUMBER ENDPOINT_VALUE
67 76
69 77
71 78
73 79
75 80
60 rows selected.Checking the selectivity for value 75(which is the popular value as per information from dba_tab_histograms
SQL> set autotrace on
SQL> select count(*) from t1 where skew=75;
COUNT(*)
75
Execution Plan
Plan hash value: 4273422929
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 1 | 3 | 1 (0)| 00:00:01 |
| 1 | SORT AGGREGATE | | 1 | 3 | | |
|* 2 | INDEX RANGE SCAN| T1_I1 | 86 | 258 | 1 (0)| 00:00:01 |
Predicate Information (identified by operation id):
2 - access("SKEW"=75)Skipped the Statistics information for keep example short.
selectivity for 75 (popular value) = 2/75 = 0.02666
Cardinality for 75 is = selectivity * num_rows = 0.02666*3240 = 86.3784 (rounded to 86) >> Here selectivity and cardinality are correct and displayed in autotrace.
SQL> select count(*) from t1 where skew=8;
COUNT(*)
8
Execution Plan
Plan hash value: 4273422929
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 1 | 3 | 1 (0)| 00:00:01 |
| 1 | SORT AGGREGATE | | 1 | 3 | | |
|* 2 | INDEX RANGE SCAN| T1_I1 | 29 | 87 | 1 (0)| 00:00:01 |
Predicate Information (identified by operation id):
2 - access("SKEW"=8)how the cardinality is 29 calculated. I think the formula for selectivity is
select for 1(non popular value) = density * num_rows = .013973812 * num_rows (which is 45 approx) but in autotrace its 29
SQL> select count(*) from t1 where skew = 46;
COUNT(*)
46
Execution Plan
Plan hash value: 4273422929
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 1 | 3 | 1 (0)| 00:00:01 |
| 1 | SORT AGGREGATE | | 1 | 3 | | |
|* 2 | INDEX RANGE SCAN| T1_I1 | 29 | 87 | 1 (0)| 00:00:01 |
Predicate Information (identified by operation id):
2 - access("SKEW"=46)46 is also non popular value
So how the value is calculated for these values?Your example seems to be based on Jonathan Lewis's article:
http://jonathanlewis.wordpress.com/2012/01/03/newdensity/
In this article, he does walk through the calculation of selectivity for non-popular values.
The calculation is not density but NewDensity, as seen in a 10053 trace, which takes into account the number of non-popular values AND the number of non-popular buckets
The article describes exactly how 29 is derived.Hi Dom,
Yes i used the same sample script of create the data sets. I should have checked Jonathan's blog for new density calculations. So selectivity works out as two either ways
1) selectivity(non popular) = Newdensity(took from 10053 traces) * rum_rows
or
2) non-popular rows/ non_popular values (where non-popular values can be derived from 10053 traces and non popular rows are (3240 * (74-31)/74 = ) 1883
Thanks for pointing to right blog -
How to find Average & Max of a Restricted key figure
Hi Friends,
I have a restriced Key figure. How to find Average & Max for that Restriceted Key figure.
Post Asap.
Thanks = Points.Hi Friends,
Let me explain my scenerio clearly.
I need to have five columns as below with char Current Assigne.
No of open cases No of Closed cases Avg age of closed cases Avg age of open cases Max age of Closed cases
Current Assigne.
Thanks,
James -
How to find Transaction for a Known Table maintenance View
Hello Friends,
May I know how to find transaction for a known table maintenance View.
Thanks,
Best Regards,
Sudhanshu GargGoto SE16 Transaction and enter TSTCP Table
Here PARAM = /SM30 VIEWNAME=Table name*;UPDATE=X;
enter table name in bold.
Thanks
Seshu -
Application hangs for non existing value
Hi,
At the DB level I tried to query non existing value from the table, query came out with "no rows selected" . But when I try to do the same from front end, application hangs! I just checked in the statspack report it shows like query is taking more cpu time to execute. what could be the reason for this?
when I join the v$session,v$sql to get the currently running query on database, it shows the query which try to execute from the application as active.
why it is hanging in application and why not in DB?
can any one brief me on this regard? why does application hangs for non exsting value?
With Regards
BooHi,
At the DB level I tried to query non existing value from the table, query came out with "no rows selected" . But when I try to do the same from front end, application hangs! I just checked in the statspack report it shows like query is taking more cpu time to execute. what could be the reason for this?
when I join the v$session,v$sql to get the currently running query on database, it shows the query which try to execute from the application as active.
why it is hanging in application and why not in DB?
can any one brief me on this regard? why does application hangs for non exsting value?
With Regards
Boo -
Hi ,
I need help how to find driver for my old printer HP 2300d I use USB Cable for my Laptop window 8 (64 bit)
help I am stuck can't print anything.
KimHi, Welcome to hp forums and enjoy your stay, feel yourself like home here!
I am very sorry to hear this, I will try my best to help you, I am always glad to help!
Please follow the steps i provided below:
1. http://windows.microsoft.com/en-ca/windows7/automatically-get-recommended-drivers-and-updates-for-yo...
Now refer to the below link and right click your printer device
2. http://pcsupport.about.com/od/windows-8/a/update-drivers-windows-8.htm
Sorry because of different timezone I might not be able to help/reply you right away.IF that happens I deeply apologize!
**Click the White thumb if you like the answer.**
**Please mark Accept As Solution if it solves your problem and only solves your problem, if you have any more questions please ask, this also helps others to solve related issues.**
Feel yourself like home here, we are all happy to help, if you have an question reply or start a topic or pm me or an expert. -
How to find TCodes for Config Transactions
Hi All,
How do I find the TCode for a Config Activitity node?
For example.
OX09 is for "Maintain Storage Location"
OB52 is for FI Period closing/opening
I know these from google search, but how do find tcodes for other IMG activity nodes?
Thanks in advance!Go to SPRO and in Menu Additional Information Click Display key and IMG activity then Sytem will show the SPRO Transaction along with path
Else Go to Particular Node say Create Purchasing Group and Right Click on Node and Select Display Technical Info and in ID tab the Last four Charecters wud be the Trxn code.
In SPRO-IMG screen Only Few Nodes will Show / have the Transaction codes. -
How 2 find program for smartform
how 2 find program for smartform
Hi,
go to TNAPR table and find the driver program for the layout.
give the layout name, if you know the output type also give it.
OR
go to se71 and go to the layout , check the text elements syntax then it will show the possible driver programs in the window to choose.
that way you can find..
Or else...
Go to the Tcode -> NACE
OR
Go to the T-code 'SMARTFORMs'
Give your form name
go to the general attributes.
Check the Package name.
then go to T-Code-> SE80
there check the program name for a package wise
Regards,
KK
Message was edited by:
Kishore Kumar Karnati -
How to find Average transaction size and average number of transactions/sec
Would like to know
1. how to find average transaction size
2. number of transactions per sec
using SQL queries. We also have statspack installed.
Regards,
AnirbanSQL> select maxval,minval,average from SYS.V_$SYSMETRIC_SUMMARY where metric_name in ('User Transaction Per Sec');
MAXVAL MINVAL AVERAGE
.7 0 .149170735
SYS.V_$SYSMETRIC_SUMMARY have to many other metrics check the one you need. (10G and above)
Coskan Gundogar
http://coskan.wordpress.com
Edited by: coskan on Mar 31, 2009 12:42 PM -
How to check a parameter for legitimate blank value?
Hi,
I have a parameter with a drop down for a standard field from table BSEG. There are 3 possible values in the drop down, i.e. blank, 1, or, C.
If the user enters '1' or 'C' there is no problem I can use this value in my code, i.e. I can select from BSEG where this value is a '1' or a 'C'.
How can I differentiate between an initial value in the parameter and a ' ', i.e. if the user doesn't select a value in this parameter the I need to get all BSEG records, but if the user selects ' ' for this parameter I need to get all values from BSEG where this field = ' '.Hi,
Use the below code.
parameters: p_list as listbox visible length 20.
initialization.
type-pools vrm.
data: v_id type vrm_id,
i_list type vrm_values,
wa_list like line of i_list.
v_id = 'P_LIST'.
wa_list-key = '1'.
wa_list-text = '1'.
append wa_list to i_list.
wa_list-key = 'C'.
wa_list-text = 'C'.
append wa_list to i_list.
wa_list-key = ''.
wa_list-text = ''.
append wa_list to i_list.
*p_list = '3'. "this is to set the default value of the list box.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = v_id
values = i_list
EXCEPTIONS
ID_ILLEGAL_NAME = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
start-of-selection.
if not p_list is initial.
select * from BSEG into table itab where field = p_list.
else.
select * from BSEG into table itab where field is initial.
endif. -
Capturing blank and non blank values in parameter
In one of the report there is only one parameter “BU VP Name”, now the business has added one more field “Director” to the application and they want this to be as a parameter. Now all the new records will have Director name
and old records will be blank for Director. How can I create a multi parameter with blank and relevant values for my report. Please note I am using sharepoint list to create the report.
SFHHi Syedfpl,
According to your description, you want to add a parameter which include a blank value.
In Reporting Service, we are allowed to use blank value for a multivalue parameter, but we are not allowed to use null values. So in this scenario, you should insert some blank values(‘’) into column “Director” so that we don’t need convert null values into
string at query level. Besides, in order to be allowed to use blank values in a parameter, we should choose the option "Allow blank value ("")". Also “Allow multiple values” option should be checked. As we tested in our environment, the
final result looks like below:
If you have any question, please feel free to ask.
Best regards,
Qiuyun Yu
Maybe you are looking for
-
Corruption in output : Fraps - H264
Hello, I usually use VirtualDub to encode my Fraps footage to H264 using x264. I'm trying to see if I can do the same thing using Adobe PE. Source footage: AVI Fraps Codec 1280x768 25 fps Output settings chosen in Adobe PE: Microsoft AVI x264 (using
-
Different program file associations in GNOME Trash folder
So, for example, I've set up GNOME to run all *.avi files with mplayer. Now if I delete an *.avi file to a Trash folder and run it from there Banshee is used as a default associated program. In fact, mplayer is not in the "Open With..." sub-menu (onl
-
Hi Friends, In VKOA table 932 I assigned one G/L to material account assignment group( say for 08 it is 8000), now when I am creation billing document there I can see the posting to new account( what I changed ) but in material master I am not able t
-
Hi, I wanted to search a given XDP for the fragments used in it using the Search Resources API. I am stuck in writing the query for the search. Can someone help me out with this and help me building the query or post the query here
-
Hi all why we need to use webuti? sarah Edited by: SarahSarahSarah on Sep 15, 2009 5:36 AM