Grand Total with few NULL values in column.
Hi All,
In my requirement, I have few null values in the column and I have to show those null values as it is( can't use IfNull function).
Can I able to grand total in such scenerio..?
I am using OBIEE 11.1.1.3
Thanks,
Archie
HI Archie,
Are you using the "Grand Total" option that comes with the view?.I don't think there will be any issue , it will ignore the null values while calculating the total.
Rgds,
Dpka
Similar Messages
-
Problem in summation on a column with possible null values
Hi,
I want to do summation on a column.
If I use <?sum(amount)?>, if there is any null value,its giving NaN as output.
From the forum I got the below syntax
<?sum(AMOUNT[number(.)!='NaN'])?>
but it is also not giving me the expected result. Its always displays 0.
I want some thing like sum(NVL(amount,0)). Could some body please help me out?
Thanks in Advance,
ThiruIf the column has many, many null values, and you want to use the index to identify the rows with non-null values, this is a good thing, as a B*Tree index will not index the nulls at all, so, even though your table may be very large, with many millions of rows, this index will be small and efficient, cause it will only contain index entries for those rows where the column is not null.
Hope that helps,
-Mark -
Is their a difference between primary key and unique key with not null valu
What is the difference in having a column as primary key and having unique key with not null for the column.
vinodhSBH wrote:
For quick review, below is the link
http://www.dba-oracle.com/data_warehouse/clustered_index.htm
You appear to have stumbled on a site that is a mine of disinformation about Oracle.
>
It would be helpful, if you explain it too..thnx !!
The site is wrong and makes up its own terminology as it goes along.
If the value for clustering factor approaches the number of blocks in the base table, then the index is said to be clustered. http://www.oracle.com/pls/db112/search?remark=quick_search&word=clustered+index
There is no create clustered index in Oracle.
- Clustering factor affects the efficiency of an index.
- There can be clustered tables that you can create indexes on.
- An Index Organized table is a similar concept to the Microsoft SQL Server clustered index, but it isn't the same thing at all. -
Incorrect GRAND TOTAL (with COUNT DISTINCT)
Hi,
I'm getting wrong results in the GRAND TOTAL of a COUNT DISTINCT measure column.
I have 5 distinct customers in Paris and 10 distinct customers in NYC, I want the grand total to retrieve the sum of both, that's 15.
But OBIEE is calculating the distinct customers for all cities, so if there are customers in both Paris and NYC the result is wrong.
This is the result I'm getting:
City Number_Distinct_Customers
Paris 5
NYC 10
GRAND TOTAL 12
12 is the number of all the distinct customers.
The correct GRANT TOTAL should be 5+10=15
Thanks
RegardsSo just as a weird question...from a business standpoint, what does the "15" mean?
It's not a count of distinct customers, which is what this measure is supposed to be.
If I were to come up with a business description for what's being described, it's "a count of distinct customers by city....summed up so that it is no longer a count of distinct customers". What and/or how exactly would anyone use such a number?
Not trying to be a pain, just trying to figure out how this would be used.
Thanks,
Scott -
ODI - Issue with handling null value
Hi,
I have a flat file as below. When i am trying to load the data file into Essbase through ODI, i am not able to load. If i given the Null value as 0, i'm able to load the file into Essbase. If we pass 0 in place of null value, blocks will be created in Essbase and it might cause the performance issue.
Account,Product,Customer,Version,Year,BU,Data
A1,P1,C1,V1,2010,BU1,7677
A2,P2,C2,V2,2010,BU2,0908
A3,P3,C3,V1,2010,BU3,
Can any one help if there is any way to handle the null values to load the data into Essbase?
Your help is more important to us as it is one of the critical one we are facing.
Thanks
V D ReddyHi
I am not using any query.
Data column is empty (no data) for few records in my flat file. After the data load is done to Hyperion Essbase, in the excel retrieve should show me as #Missing. But ODI is defaultly loading it as 0 into Essbase.
Is there any way to load it as #Missing?
Thanks
V D Reddy -
SQL Loader: Null value in column
Have a tab delimited file, in UNIX
Some of the inbetween columns have null values
The records are failing to load with null column values.
I tried:
col10 nullif col10 ="(null)"
My control file is:
load data
infile 'abc.txt'
into table XX_data
fields terminated by X'09' optionally enclosed by '"'
TRAILING NULLCOLS
( col1,
col2 nullif col2 ="(null)",
col3)Sample data is tab delimited file. For some reason, it has problem reading the second date (+time) column in the same record when there are null values in preceding columns. It says:
ORA-01841: (full) year must be between -4713 and +9999, and not be 0
Col1 Col2 Col3 Col4 Col5 Col6 Col7 Col8 Col9 Col10 Col11 Col12
2000-01-03 10:38:05.733000000 XX AA Change 0 DOG CAT R 2000-01-03 10:38:05.733000000 GIRAFFE MONKEY COW -
How to format the Grand Total with condition?
Dear All,
I found the XML for Total as below:
<saw:edgeLayer type="column" columnID="c523314f1e2a401c3">
<saw:levels>
<saw:level>
<saw:displaySubTotal id="t1" subTotalPosition="before">
<saw:memberFormat>
<saw:displayFormat>
<saw:formatSpec wrapText="true" borderColor="#999999" borderPosition="18"/></saw:displayFormat>
<saw:caption>
<saw:text>Total</saw:text></saw:caption></saw:memberFormat>
<saw:dataBodyFormat>
<saw:displayFormat>
<saw:formatSpec borderColor="#999999" wrapText="true"/></saw:displayFormat></saw:dataBodyFormat></saw:displaySubTotal></saw:level></saw:levels>
<saw:memberFormat>
<saw:displayFormat>
<saw:formatSpec height="25" wrapText="true" hAlign="center" vAlign="middle"/></saw:displayFormat></saw:memberFormat></saw:edgeLayer>
And I tried to use some conditional format since I want the Total for Ratio can be shown as 0.0 not 0. Thus, I tried to alter the XML by adding the condition to it.
<saw:edgeLayer type="column" columnID="c523314f1e2a401c3">
<saw:levels>
<saw:level>
<saw:displaySubTotal id="t1" subTotalPosition="before">
<saw:memberFormat>
<saw:displayFormat>
<saw:formatSpec borderColor="#999999" borderPosition="18" wrapText="true"/></saw:displayFormat></saw:memberFormat>
<saw:dataBodyFormat>
<saw:displayFormat>
<saw:formatSpec borderColor="#999999" wrapText="true">
<saw:dataFormat xsi:type="saw:number" minDigits="0" maxDigits="0" commas="true" negativeType="redParen"/></saw:formatSpec>
<saw:conditionalDisplayFormats>
<saw:conditionalDisplayFormat>
<saw:formatRule>
<saw:condition>
<sawx:expr xsi:type="sawx:comparison" op="equal">
<sawx:expr xsi:type="sawx:columnRefExpr" columnID="c881e0b4d32235233"/>
<sawx:expr xsi:type="xsd:string">Ratio</sawx:expr></sawx:expr></saw:condition>
<saw:formatSpec wrapText="true">
<saw:dataFormat xsi:type="saw:number" commas="false" negativeType="redParen" minDigits="1" maxDigits="1"/></saw:formatSpec></saw:formatRule></saw:conditionalDisplayFormat></saw:conditionalDisplayFormats></saw:displayFormat></saw:dataBodyFormat></saw:displaySubTotal></saw:level></saw:levels>
<saw:memberFormat>
<saw:displayFormat>
<saw:formatSpec height="25" wrapText="true" hAlign="center" vAlign="middle"/></saw:displayFormat></saw:memberFormat></saw:edgeLayer>
It shows some Error Message as "DXE compiler error. No table 'GTGT' found in DXE. Source name: DxeAPI. XML: None". It it possible to add some condition for Grand Total? If so, how I alter my XML??
Thanks a lot!!!
Best Regards,
MartinHi Martin,
Try to change *" minDigits="1" maxDigits="1"* values from 1 to 2.
It may help you.
Thanks,
Suresh. -
SALV Class Grand Total With Text
Hi,
I am working on SALV Class. My requirement was to display ALV OUTPUT with Grand Total.
I am able to display the totals by using AGGREGATIONS, Now i want to display the Grand Total Text (i.e : Work Activity Total).
Can anyone know the valuble inputs and possibilites.
Thanks & Regards,
Srinivas Bhavanam.Hi Martin,
Try to change *" minDigits="1" maxDigits="1"* values from 1 to 2.
It may help you.
Thanks,
Suresh. -
How to replace a "notfound" output with a null value?
hi,
I'm just getting a output of "Rows Notfound" for a script..
instead of this , i just need to show the output with a record as null value or some value..
do we have any option to use this in oracle..Apart from capturing with an exception in PL/SQL code, if you're wanting something in a script as pure SQL, you'd have to generate an additional row and only select that where no data is found e.g...
SQL> ed
Wrote file afiedt.buf
1 select ename from emp where ename = 'FRED'
2 union all
3* select 'No Data' from dual where not exists (select * from emp where ename = 'FRED')
SQL> /
ENAME
No Data
SQL>Of course this does effectively double-up on the queries being executed, so if you're dealing with a heavily complex query, it may be best just just have the regular exception come out, but then this will also depend on your actual requirements and why you want to do this in the first place. -
Grand Total with Count Distinct
Hi,
I want to use grand total to count distinct my data,
I had physical map ActivityId into my fact and set count distinct to its aggregation rules.
then when i create my report the anwser is OK.(count distinct ActivityID). But in grandtotal is sum.
The aggregation Rules in BI Awnser is set it Default.
[Pic >> http://image.ohozaa.com/i/866/tablecountdisctinct.jpg ]
i don't know why , i try to set many thing but it isn't work
Thank ,Regard.
And sorry about my English Language.couple of things required here..
how did you build this measure in rpd?
Is that physical mapped or logical mapped column(derived column)?
Map it as physically and apply aggregation rule on top of it to: CountDistinct
Now, pull the column in front-end it has to give you proper sub-total/total..
Or, Try putting the formula in front-end in fx of the column and try.. -
How to display subtotal and grand total with a top 10 condistion ?
Hello,
I would like to display a Top 10 list with subtotal for Top 10 and grand total for all the lines.
I succeed to display top 10 subtotal with "calculations/total" parameter but my question is How to display also the grand total for all the lines ?
Thank you in advance.
Best regards
NicolasCalculate Results/not defined gives grand total and calculation / total gives top 10 sum. As far as I know, you can't display both at the same time.
-
Security Attributes with Multiple/NULL values
I have a couple of situations where I can't seem to get the authorization component working as I need it to work for a database source.
1) In the first case, I have two attributes set for "grant security attributes" in the data source, one of which has a single attribute value, and the other which has multiple values, e.g.
I want to set "grant security attributes" to something like "client_id role_id" where for my dataset, client_id will always be a single numeric value, but I might have multiple role_ids that can view this record. How do I specify in my data source query those multiple attribute values? I tried separating them with spaces, e.g.
SELECT ...
'A B' role_id
FROM
where "A" and "B" represent unique values (looking to match A OR B). I also tried delimiting them with commas, but neither spaces nor commas seems to work consistently.
On the authorization end, using oracle.search.plugin.security.auth.db.DBAuthManager as the authorization plug-in, I have the authorization query set as
SELECT client_id, security_lvl as role_id from test_user_id where user_id = ?
Each user may have more than one role, so in the above query, security_lvl could be something like "B C"; I'm assuming from the documentation that the delimiter for attribute values in this case should be a space.
The crawler logs make it appear that everything is getting indexed, so I suspect the issue is on the authorization front.
2) In the second case, one of my security attributes for the data source may be NULL, meaning that there's no particular authorization restriction on a particular record, so to use the same example as in #1,
role_id might be NULL for some records, in which case, I want those records returned in the search if the client_id matches, but I can't get the records with the NULL role_id to be returned at all. Again, the crawler logs indicate that everything is being indexed, and I'm not sure if there's a log where I can further troubleshooting authorization issues.
Any guidance would be appreciated.
Thanks1) The security attributes are OR'd together so if the user has any ONE of the attributes (either client ID or role ID), the document can be seen by the user. What I would try is to create a view to call rather than directly against the table. The view can then leverage a PL/SQL function and encapsulate the logic behind the security tokens to return.
So the view would look like this...
CREATE OR REPLACE VIEW USER_SECURITY_V AS
SELECT
USER_T.ID,
MY_SECURITY_FUNCTION(USER_T.ID) AS AUTH_ID
FROM
USER_T
The PL/SQL function would look something like this...
CREATE OR REPLACE FUNCTION MY_SECURITY_FUNCTION(USER_ID NUMBER) RETURN VARCHAR2 IS
-- Do whatever you need to do to build a single space-deliminted list of tokens for both Client and Role ID "CLIENTID4 ROLEID5 ROLEID9" then return
END;
The data source authorization query then would look like this...
SELECT AUTH_ID FROM USER_SECURITY_V A WHERE A.ID = ?
Using a PL/SQL Function to control the tokens gives you the flexibility of modifying security without having to touch the data source directly
2) I don't quite follow. If any ONE of the tokens match, the document is returned. If the role ID is null, you might try stamping each document a "master" security token indicating it's open to everyone such as "ALL". Then in the PL/SQL Function, return "ALL" in front of the actual values.
The crawler logs will only tell you what is indexed at crawl time, not how searching is actually working. Try checking the server logs. These should be under something like oracle/ses/seshome/search/base_domain/servers/AdminServer/logs
Hope this helps! -
How to replace null value, if column is text and not numeric in OBIEE?
Hi,
Please note that I had tried to change the null text by adding bin value for Unspecified and Unknown but this did not work for me.. not sure if I am missing out to put anything in value filter…
Thank You,
RaviCheck this function:
http://docs.oracle.com/cd/E23943_01/bi.1111/e10544/appsql.htm#CHDHJABI
Cheers
Nico
IFNULL
This function tests if an expression evaluates to a null value, and if it does, assigns the specified value to the expression.
Syntax
IFNULL(expr, value)
Where:
expr is the expression to evaluate.
value is the value to assign if the expression evaluates to a null value. -
N:1 mapping problem with incoming NULL value
Dear experts,
i have a problem mapping an incoming Idoc to XML file. Here's the situation:
1) Structure of inbound Idoc
ZTST00
ZTST01 Structure: FIELDNAME, FIELDVALUE. Values: FIELDNAME = "Z1", FIELDVALUE = "4";
ZTST01 Structure: FIELDNAME, FIELDVALUE. Values: FIELDNAME = "Z2", FIELDVALUE = null;
ZTST01 Structure: FIELDNAME, FIELDVALUE, Values: FIELDNAME = "ZABC", FIELDVALUE = "5";
ZTST01 Structure: FIELDNAME, FIELDVALUE. Values: FIELDNAME = "Z4", FIELDVALUE = "6";
ZTST02
2) Resulting XML:
LINEHEADER (1 line)
LINEDETAIL (1 line, Structure: VALUE)
LINEFOOTER (1 line)
3) I need to map ZTST01-FIELDVALUE to LINEDETAIL-VALUE, but only if the FIELDNAME equals "ZABC".
In my message mapping, i put an IF FIELDNAME = 'ZABC' THEN FIELDVALUE->VALUE, on context ZTST00. But because of the null value in line 2 of the Idoc, the value that is returned to the XML is "6", as the null value is disregarded and not in the queue of FIELDVALUE.
How can I put the correct value ("5") to LINEDETAIL-VALUE?
Regards
WilliamHi William,
Simply go back to the default context ZTST01 (for both: FIELDNAME and FIELDVALUE fields) and it should be fine.
Hope this helps,
Greg -
Line Chart Ignoring Series That Starts With a Null Value
I have a flash chart that was working fine until APEX was upgraded to 3.1
The chart is 2D Line. Each series represents a discrete year (2006, 2007, 2008 etc.) and the X-Axis is the month (Jan to Dec) and the Y-Axis is the sales amount for that month.
The year 2006 is the first series and values begin in May so the Jan to Apr values for that series are null (but displayed as Zero before the APEX upgrade), with APEX 3.1, now the 2006 series does not display at all. The other series (that have values from Jan onwards) all display fine. Nothing else has changed except the upgrade to 3.1
How can I get my 2006 series to display again other than entering zero values for the Jan to Apr months?
Thanks in anticipation......
Ollie.
Is there anyone who is an APEX chart guru who can help with this?HI
To remove the blanks at the beginnging and the end of a string use trim()
if(lineText.trim().startsWith("script_category")
Maybe you are looking for
-
Hello, I have been trying to talk to someone at the customer service for the last 3 months but no one never ever picked up my phone!!! How can this even possible? I've been using verizon for the last 4 years!!! I just moved out from the State and nee
-
I ordered a movie on iTunes back in April, the movie didn't finish downloading, I got a message that there was an error, so a few days later, I downloaded it again. This time I used my husbands bank card, which has a different number, but is connecte
-
Dynamic Text in Flash 8?
In Flash 7 I was able to link to a plain text document by simply including the variable name as the first line of the text document. (Ex. content= message here) Since upgrading to Flash 8 I can't get the text to show up. What has changed?
-
Capturing actual JDBC exception in BPM
I have a scenario wherein i am inserting data in sql server syncronously using the xml insert structure. I have a BPM in place to do error handling, so that whenver any exception occurs, exception branch is executed, however, in the exception branch
-
How enable my AMD adapter using the device manager
The message that comes up after updating my AMD driver is this: The Catalyst Control Center is not supported by the driver version of your enabled graphics adapter. Please update your AMD graphics driver, or enable your AMD adapter using the Display