Dividing multiple counts
Hello everyone,
I am trying to divide one count by another. I have pasted the part of the query I am struggling with below (sorry about the confusing aliases).
count(distinct p.processno)/(select COUNT(distinct oa.noteid) as "Count"
from W2PROCESSdch Pab, upmfolder fab, w2objectnote oa, w2processtype ptab, w2stage sab
where fab.folderid = pab.keynumb
and trunc(Pab.STAGESTARTDATE) >= '07-SEP-11'
and trunc(Pab.STAGESTARTDATE) <= '07-SEP-11'
and pab.processname = ptab.proctypeid
and sab.stageid = pab.stageid
and oa.keynumb = pab.processno
and oa.notetype = 'RN'
and trunc(oa.ndate) = TRUNC(Pab.STAGESTARTDATE)
and UPPER(sab.caption) like UPPER('View Rejection%')
and p.userid = pab.userid)* 100 Unfortunately I get the error "01476. 00000 - "divisor is equal to zero"".
I have tried using CASE but that isn't working either.
I have tried searching for the solution but I have had no luck. If anyone could suggest how I should structure this part of the query I would be extremely grateful.
Kim Berg Hansen wrote:
What result of the division do you wish if your divisor actually is zero?
Often I find that a result of null is preferable to show that the result of dividing by zero is undefined.
For that purpose NULLIF is an easy way:
...snippet...
count(distinct p.processno)/(select NULLIF(COUNT(distinct oa.noteid),0) as "Count"
from W2PROCESSdch Pab, upmfolder fab, w2objectnote oa, w2processtype ptab, w2stage sab
where fab.folderid = pab.keynumb
and trunc(Pab.STAGESTARTDATE) >= '07-SEP-11'
and trunc(Pab.STAGESTARTDATE) <= '07-SEP-11'
and pab.processname = ptab.proctypeid
and sab.stageid = pab.stageid
and oa.keynumb = pab.processno
and oa.notetype = 'RN'
and trunc(oa.ndate) = TRUNC(Pab.STAGESTARTDATE)
and UPPER(sab.caption) like UPPER('View Rejection%')
and p.userid = pab.userid)* 100
...snippet...The NULLIF states, that if the first parameter is equal to the second parameter, NULL is returned.
So NULLIF(COUNT(...),0) returns NULL if the count is equal to zero.
If you divide something by NULL, then the result is also NULL.
That way you avoid the division by zero error - and the end result of the division becomes NULL signifying it is unknown .
Maybe you cannot use NULL - maybe you have to simulate that a division by zero always returns 1 or something.
But if you can use NULL, then NULLIF is an easy trick to avoid division by zero ;-) .I tried doing it this way and it worked! Thank you all so much for your help.
What would be the best way to change the nulls to 0? If I can't I can just import it into Excel and change them.
Similar Messages
-
Problem with multiple counter plan containing running hrs and no of months
Hey gurus,
In my project the preventive maintenance of compressor is such that it is performed after 500 hrs or 6 months whichever comes first. Now i ve created a cycle set cosisting of 500 hrs and 6 months. In the multiple counter plan i ve assigned a counter to the plan for calculating 500 hrs and chosen the link as OR. I scheduled the plan and given the start date as 01.05.09. Now I am facing the following problem:
Suppose my counter value reaches the 500 mark on 01.08.09. Now a maintenance order is generated. My client now wants that the next order should be generated after the counter reading reaches 1000 or the date reaches 01.02.10, ie, the order should be generated for next 500hrs or NEXT 6 MONTHS from
the date of completion of first cycle, whichever comes first.
Pls help....
Regards,
AbhishekHi
If u have scheduled ur plan according to cycle set. It will take the Point of contact as 6 months.
OK
Ex : Cycle set : 500 hrs and 6 months, maintained OR functions
i have entered the measurement reading as 500.. thats why, it gives the call for todays date...
see the next date will be after 6 months... If u update the measuring point only, it will open a order... otherwise.. once u have scheduled it for 6 months.. once in 6 months it will give a order...
1 11.05.2009 0 New start Save to call
2 07.11.2009 07.11.2009 0 Scheduled Hold
3 06.05.2010 06.05.2010 0 Scheduled Hold
4 02.11.2010 02.11.2010 0 Scheduled Hold
5 01.05.2011 01.05.2011 0 Scheduled Hold
6 28.10.2011 28.10.2011 0 Scheduled Hold
7 25.04.2012 25.04.2012 0 Scheduled Hold
Schedule for a long period.. u will be able to understand the scenario...
- Pithan -
Getting run time error for multiple counter plan
Hi Friends,
Its very critical issue,wherein i am getting run time error for multiple counter plan.
Explanation:While try to change the Call horizon or scheduling period of the counter based plan through IP42 or IP15,systam allowing me to change the data but while saving also i am getting "Maintenance plan has changed" message and once come to the back of the transaction instantly i am getting pop up window saying that "Express document get terminated".However we have been maintaining copy of this data in another client wherein we are not getting any Run time error.
Please find the screen shots for your reference and please let me know how to fix the issue.
Regards,
SrinikaHi,
Please check reason for update termination in Transaction code SM13. -
First time scheduling using IP30 for Multiple Counter plan
Hi,
I created a multiple counter plan with Cycle set as 6months/ 300 Operations.
I intend to start the job early and updated the Planned Counter date as 1st Sep 2014.I maintained Lead Float as 10 days.
When I run IP10, call is generated successfully. But when I execute IP30, no call is generated.
We have not activated enhanced functionality of Multiple Counter plans.
I checked all the parameters and everything seemd to be fine. In IP30, I checked the check boxes - Rescheduling & Immediate start of all.
In the field, Interval for Call Objects, I ran with blank value, 30 days value. But in both the cases, call is not generated.
I want to generate calls using IP30 only as there are lot of multiple counter plans. Can anybody suggest a solution to this issue?Hello
As you intended to use cycle set functionality please activate enhanced functionality of Multiple Counter plans
Br
Rakesh -
Query to display multiple counts in the result
Hi,
I need to be able to display multiple counts for different items in the single result set:
Here is the simplified schema:
I have 2 tables:
STATEMENT table:
===============
statement_pk number,
department varchar2(20)
STATEMENT_INFO table:
===================
statement_info_pk number,
statement_fk number
is_statement_done varchar2(1)
is_statement_locked varchar2(1)
I need to display counts of how many records where done and how records where locked in the
single output:
Statement_PK Department NumberOfStatementsDone# NumberofStatementsLocked#
1 ABC_dept 3 5
2 DEF_dept 4 8
3 XYZ_dept 7 2
The following does not work:
SELECT
s.statement_pk,
s.department,
COUNT(r.statement_info_pk ) NumberOfStatementsDone# ,
COUNT(rr.statement_info_pk ) NumberOfStatementsLocked#
FROM STATEMENT s ,
STATEMENT_INFO r,
STATEMENT_INFO rr
WHERE
s.statement_pk = r.statement_fk
AND s.statement_pk = rr.statement_fk
AND is_statement_done = 'Y' AND rr.is_statement_locked = 'Y'
GROUP BY statement_pk, s.department
I was trying to work with analytic function but could not figured it out either.
Please help
Thanks,
Ia.this would be something like:
SQL> r
1 select statement_pk,
2 department,
3 sum(decode(is_statement_done, 'Y', 1, 0)) statement_done,
4 sum(decode(is_statement_locked, 'Y', 1, 0)) statement_locked
5 from statement_info,
6 statement
7 where statement_fk = statement_pk
8* group by statement_pk, department
STATEMENT_PK DEPARTMENT STATEMENT_DONE STATEMENT_LOCKED
1 ABC_dept 4 1
2 DEF_dept 6 2
3 XYZ_dept 1 2
SQL> Message was edited by:
Leo Mannhart
Craig you were faster -
Counter base maintenance and multiple counter maintenance
Hi
With refering to the counter base order generated in the system, i have confused.
We have the plans 100, 200, 300 to max 2000 Hours. The task lists are assigned. The maintenance plan annual estimate is 4000 Hours (i dont know why its required if the measurment documents are in use) ..
The system is regularely generating the orders eventhough we have measurement docuements upto 300 Hours. Last week we have no measurement updates.
Can you give me the logic, functionality of the performance maintennace. I have read SAP help which is not explaining in practical manner.
Also how to work for multiple counter maintenance. We have to do for DAY (30 Days, 60 days. 180, 360 Days) Wise or Hour wise (300, 900, 1500, 3500, 7000 Hours maintenance. Can you tell me how to work for this on single maintennace plan..since our equipment also only one.Hi,
This appears to be a typical multiple counter plan situation consisting of performance based and time based elements. The performance cycles are based on operating hours and time is the elapsed days.
The relevant section of SAP Help is - [here|http://help.sap.com/saphelp_erp60_sp/helpdata/en/d8/e06a1f7e9c144fbb3a3ed0c38bc38a/frameset.htm]
See point 3-Scheduled date calculation. In particular:
The annual performance recorded for the counters and the most up-to-date counter reading are used to calculate the corresponding planned date.
Annual Estimate is used to calculated planned date meaning that calls can occur before the actual counter readings are reached.
-Paul -
I'm trying to write a function to compare two different counts.
I have patient on multiple drugs...some drugs are allergy drugs and at least one allergy drug must be marked as primary.
select count(drug_role) as vAllergyCount, count(primary_flag) as PF, ap.patient_id
from ae_all_drugs aed, ae_patient ap
where drug_role = 'Allergy'
and aed.patient_id = ap.patient_id
and ap.patient_id like '2012%'
group by ap.patient_id,primary_flag
order by ap.patient_id
when grouped by patient id and primary flag I would receive a record like this:
VAlllergyCount | PF | patient_id
1 | 0 | 2012AB1
3 | 1 | 2012AB1
If i only group by patient_id I get this (which is what I want):
VAlllergyCount | PF| patient_id
4 | 1 | 2012AB1
But if I try to compare the two:
IF vAllergyCount > 1 and PF = 1 THEN 'SUCCESS' ELSIF 'FAIL'
I receive the error message "exact fetch returns more than requested number of rows" becuase the results are really my first query.
Can anyone help me re-write my query to compare the values?
P.S. I'm very new to this and this forum and I apologize for not inserting code tags. I don't know how.Hi,
979105 wrote:
Thank you for your hlep.
I need to write a function because the SQL query is going to be used as an edit check for another program. So yes, it will have to worth my time.
You are correct. I have a patient on multiple drugs. I want to know if there is at least one allergy drug (drug_role) > 1 if there is at least ONE primary allergy drug.
I did initially write my function with the patient_id as an input value. Why would I not need the vAllergyCount or the pf if that is an argument?If all you want to know is 'SUCCESS' or 'FAIL', then write a query that produces 'SUCCESS' or 'FAIL'. Inside the query, it may be handy to have something like vAllergyCount or pf, but that doesn't mean that they will be returned by the query, or that you need PL/SQL variables for them.
Here's my original function:That's a PROCEDURE, not a function. Sometimes, people use the word "procedure" lossely, to mean any kind of stored code, including functions, but never the other way around.
\Don't forget to put another \ tag at the end of the formatted section.
\ tags are supposed to occur in pairs. If you have an odd number of \ tags, the last one has no effect, and is displayed as regular text.
PROCEDURE COUNT_ALLERGY_MED (
ivPatient_ID IN VARCHAR2,
ovErrorText OUT VARCHAR2 )
IS
vCase_ID VARCHAR2 (25);
vSusCount NUMBER (3);
vSuspectMed VARCHAR2 (1);
--vPrimaryFlag VARCHAR2(1);
cursor c1 is
select count(*) as vSusCount
from ae_suspect_drugs aed
where drug_role = 'S'
and aed.case_id = ivCase_ID
--group by ivcase_id;
BEGIN
open c1;
fetch c1 into vSusCount;
close c1;
IF vSusCount < 1 /*AND vPrimaryFlag IS NULL*/ THEN
ovErrorText := 'Suspect Drug Count is less than 1' || 'SusCount: ' || vSusCount;
ELSIF vSusCount = 1 /*AND vPrimaryFlag IS NULL*/ THEN
ovErrorText := 'Suspect Drug count is equal to 1' || 'SusCount: ' || vSusCount;
ELSIF vSusCount > 1 /*AND vPrimaryFlag IS NULL*/ THEN
ovErrorText := 'Suspect Drug count is greater than 1 ' || 'SusCount: ' || vSusCount;
ELSE
ovErrorText := 'All criteria met';
END IF;
END COUNT_SUSPECT_MED;It seems like it would be more convenient to have a FUNCTION, rather than a PROCEDURE; that way you could call the function directly in a SQL statement (e.g., in the WHERE clause of a query or DML statement) as well as in PL/SQL.
The procedure you posted seems to be quite a bit differetn from the problem you asked eariler.
Here's one way you might write a fucntion for the earlier problem:CREATE OR REPLACE FUNCTION count_allergy_med
( ivPatient_ID IN VARCHAR2
RETURN VARCHAR2
IS
return_str VARCHAR2 (50); -- To be returned
BEGIN
SELECT CASE
WHEN COUNT (drug_role) > 1
AND COUNT (primary_flag) = 1
THEN 'SUCCESS'
ELSE 'FAIL'
END
INTO return_str
FROM ae_all_drugs aed
, ae_patient ap
WHERE drug_role = 'Allergy'
AND aed.patient_id = ap.patient_id
AND ap.patient_id = ivPatient_ID;
RETURN return_str;
END count_allergy_med;
Notice that there are no columns in the result set, nor variables in the function, that correspond to vAllergyCount or pf.
The function above returns 1 of 2 possible values. You couold just as well write a function that had 4 possible outcomes, or 4 basic results, each containing a variable number, such asSuspect Drug Count is less than 1. SusCount: 0
I'm not sure why you would want such as result, since 0 is the only possible count that is less than 1, but it's easy enough to produce results like that if you really want them.
Once again, if you'd like help, post a clear example of what you want. Include CREATE TABLE and INSERT statements for some sample data. Post some code where you might use the function that you're thinking of. Give a couple of different arguments for that functuion, and the results you would want for each argument given the same sample data. -
Hi
I would like to output a counter signal on all eight of my outputs on the PCI6602. These outputs have to be able to be stopped individually. How do I do this in labview 8.Hi Chris,
There is a great shipping example that comes with DAQmx named "Gen Dig Pulse Train-Continuous.vi" which will do what you are looking for on a single counter. To get to this, go to the NI Example Finder and browse to Hardware Input and Output>>DAQmx>>Generating Digital Pulses.
To expand this to all 8 counters on your 6602 there are 2 options:
The easiest way is to copy the code 7 times, to have a total of 8 seperate counter tasks, with 8 parallel while loops that all poll for a stop condition. Although not the prettiest, this should be very easy to create starting from the example mentioned above.
A sleeker way to accomplish this is to reuse the same DAQmx code inside of auto-indexed for loops. Attached is a modified version of the original example that should work for all 8 counters, and give you individual control of all of them.
Hopefully this helps you get up and running!
Have a great day!
Travis W
Attachments:
Gen Dig Pulse Train-Continuous - Multiple Counters - Individual Control.vi 44 KB -
Multiple counter input using NI 6602
I am using NI-DAQmx to write a VI that will read 10 pwm measurements using 10 counters on 2 NI 6602 PCI interfaces. It is my understanding that I must create a task for each respective counter. I have attempted to implement a for loop to accomplish this, as shown in attached VI draft. As it stands the VI will not write any data to file. I suspect there are multiple errors in the VI. I would ask if anyone could take a look at the attached VI and perhaps provide some insight?
Saul LaCoursiere
Attachments:
MelexisMODdraft2.vi 41 KBHi Saul,
It looks like you had a subVI "Create Header" which needs to be included to run, so I deleted all of the report related code. The Counter portion ran fine. If you can't get the report generation portion to work, you may want to simplify your code (for example start with a single counter task) and build up from there.
Please repost if you have further questions.
Thanks,
Luke
Applications Engineer
National Instruments -
Divide two counts giving an error
I've a query in the following structure where im trying to divide in the select statement like this:
SELECT cnt1/ cnt2
FROM (SELECT count(*) cnt1, col1, col2
FROM emp),
(SELECT COUNT(*) cnt2, col1, col2
FROM all_tables);
How can i bring in additional fields from emp or all_tables (i.e col1 and col2)? I can get the divide calculation done but not able to get the other two fields in the main select statement as it gives me following error. These two columns col1 and col2 are there in both the tables.
00904. 00000 - "%s: invalid identifier"
Edited by: 1010059 on Jun 5, 2013 12:53 PMHi,
Welcome to the forum!
1010059 wrote:
I've a query in the following structure where im trying to divide in the select statement like this:
SELECT cnt1/ cnt2
FROM (SELECT count(*) cnt1, col1, col2
FROM emp),
(SELECT COUNT(*) cnt2, col1, col2
FROM all_tables);
How can i bring in additional fields from emp or all_tables (i.e col1 and col2)? I can get the divide calculation done but not able to get the other two fields in the main select statement as it gives me an error.How do you want to bring those columns in? I can't picture what the results would look like, or what you might want to achieve.
Whenever you have a problem, please post CREATE TABLE and INSERT statements for a little sample data, and the exact results you want from that data.
When you use an aggregate function, such as COUNT, the output of the query will contain 1 row for every group as defined by the GROUP BY clause. If there is no GROUP BY clause, the output will have 1 row.
You probably have hundreds of rows in all_tables, but even if you had only 2 or 3 rows, what would you want to display in the last 2 columns on the 1 row that the sub-query produces? The same goes for the sub-query on emp.
Take a few minutes to read the forum FAQ {message:id=9360002} It shows lots of ways to get better replies faster on this forum. -
To retrieve the Multiple Count of Records for Multiple types
Hi Can some one help me in this:
I have a talbe (MyTable) in which a column(Column 1) will have values as (Value1, Value2 , Value3, Value4 and Value5) for Multiple Records .
I need to write a query which can give me the count of All the existing Records with the values(Value1, Value2 , Value3, Value4 and Value5) by a Single Query.The Resulting Table should have the Columns as :(Value1, Value2 , Value3, Value4 and Value5) with the Corresponding Counts in the Table.
Thanks in Advance,
vijay kumar k.
Plz help me asap as it is very much linked with my Work..Hello
Well, it always helps if you can post a create table statement, some test data, and the result you are expecting....it doesn't take long and you'll be much more likely to get a quick response from someone who has some time in between things that very much related to their work...
create table dt_test_values(col1 varchar2(10))
insert into dt_test_values values('value1')
insert into dt_test_values values('value1')
insert into dt_test_values values('value2')
insert into dt_test_values values('value2')
insert into dt_test_values values('value2')
insert into dt_test_values values('value3')
insert into dt_test_values values('value3')
insert into dt_test_values values('value4')
insert into dt_test_values values('value4')
insert into dt_test_values values('value4')
insert into dt_test_values values('value4')
insert into dt_test_values values('value5')
insert into dt_test_values values('value5')
insert into dt_test_values values('value6')
insert into dt_test_values values('value7')
insert into dt_test_values values('value7')
SQL> SELECT
2 SUM(DECODE(col1,'value1', 1, 0)) value1,
3 SUM(DECODE(col1,'value2', 1, 0)) value2,
4 SUM(DECODE(col1,'value3', 1, 0)) value3,
5 SUM(DECODE(col1,'value4', 1, 0)) value4,
6 SUM(DECODE(col1,'value5', 1, 0)) value5,
7 SUM(DECODE(col1,'value6', 1, 0)) value6,
8 SUM(DECODE(col1,'value7', 1, 0)) value7,
9 SUM(DECODE(col1,'value8', 1, 0)) value8
10 FROM
11 dt_test_values
12 /
VALUE1 VALUE2 VALUE3 VALUE4 VALUE5 VALUE6 VALUE7 VALUE8
2 3 2 4 2 1 2 0HTH
David -
Hello,
I searched over forum but either no one asked similar question or it is well hidden.
The Problem:
I'm use counter output to generate pulse for stepper motor let say about 500Hz in cont. mode.
Every 10th pulse I have to measure something so I have to sunc. the sample clock od AI with counter, but the clocks are not the same.
I found an example how to divide external clock but there is no how to use divide internal clock for AI sample clock.
The atatched example does not work properly since when I reduce the samples for AI, it also reduce pulse for stepper.
I use LV8, NI USB 6211 daqmx
Thanks for attention.
Any help is welcome.
Attachments:
Multi-Function-Ctr Pulse Train Generation for AI Sample Clock.vi 51 KBThis is duplicate post:
divide internal counter -
Multiple counts in a single statement
Hi,
I am trying to get a total count of the number of employees in departments as well as the total numbers in specific salary ranges and display it all in one set of results.
Here is the code I have so far:
select distinct e.department_id,
ct1.subct+ct2.subct+ct3.subct+ct4.subct total_num,
ct1.subct,
ct2.subct,
ct3.subct,
ct4.subct
from employee e,
(select department_id, count(department_id) subct from employee where salary < 1500 group by department_id) ct1,
(select department_id, count(department_id) subct from employee where salary >= 1500 and salary <=2499 group by department_id) ct2,
(select department_id, count(department_id) subct from employee where salary >= 2500 and salary <=3499 group by department_id) ct3,
(select department_id, count(department_id) subct from employee where salary >= 3500 group by department_id) ct4
where e.department_id=ct1.department_id
and e.department_id=ct2.department_id
and e.department_id=ct3.department_id
and e.department_id=ct4.department_id
The problem with this code is that it only displays departments which have at least one employee in each of the salary ranges in the results. This is because of the join statements, I know, but is there any way around it?
I know there are some alternative approaches altogether to this problem, using the likes of ROLLUP and so on, but I would like to do it using essentially a similar method to my code above, if that is in fact possible.
Any assistance would be appreciated!Can yu use ROLLUP..?
SQL> select d.deptno,case when sal < 1500 then 'Low'
2 when sal between 1500 and 3000 then 'Medium'
3 when sal is null then 'No emp'
4 else 'High'
5 end sal_range,count(empno)
6 from dept d,emp e
7 where d.deptno = e.deptno(+)
8 group by rollup(d.deptno,case when sal < 1500 then 'Low'
9 when sal between 1500 and 3000 then 'Medium'
10 when sal is null then 'No emp'
11 else 'High'
12 end);
DEPTNO SAL_RA COUNT(EMPNO)
10 Low 1
10 High 1
10 Medium 2
10 4
20 Low 2
20 Medium 3
20 5
30 Low 3
30 Medium 3
30 6
40 No emp 0
DEPTNO SAL_RA COUNT(EMPNO)
40 0
45 No emp 0
45 0
15
15 rows selected. -
Report with multiple COUNT columns with counts from same table
I am new to discoverer so I am a bit lost.
I am working to create a report to show usage data from the eBusiness Knowledge Base. I have the query written in SQL using subqueries that is in the format:
Solution Number | Soultion Title | Solution Views | Positive Feedback | Negative Feedback
12345 ___________ Title ________ 345 ____________ 98 _______________ 34
The 'Views', 'Positive' and 'Negative' entries are stored in the same table so i am doing a count where setid=setid and usedtype=VS, then counting where usedtype=PF and usedtype=NF
In discoverer I can get the solution number, title and ONE of the totals but I can't seem to figure out how to get a COUNT for three different things from the same table in columns on the same row.
When I go to edit sheet -> select items once I select the COUNT option for the UsedType column in the table CS_KB_SET_USED_HISTS I can't select it again. I also have found now way to add a column based on an entered query.
If anyone could help it would be much appreciated.
Thanks
Edited by: Toolman21 on Dec 2, 2010 2:17 PM
added ______ to correct spacing.Hi,
You can separate the column by using a case or decode.
for example create 2 calculations:
case
when usedtype='PF'
then <you original column> --- the one contain them both
else 0
end
case
when usedtype='NF'
then <you original column> --- the one contain them both
else 0
end
after that you can create the count aggregation over those.
Tamir -
How to store multiple counts based on creation date
Hi,
I want to retrieve the count of number of risk for each date and render it on line graph. I am retrieving data from sharepoint list where the number of risk counts increase with its creation and decreases after it is closure which maintained in another
column. Like if a risk is created on 02/02/2015 and closes on 03/03/2015 and an another risk is created on 17/02/2015 and closes on 14/03/2015. Then the count of the risk from 02/02/2015 to 16/02/2015 is 1 and from 17/02/2015 to 03/03/2015 is 2 and
then again till 14/03/2015 is 1. I want to retrieve the count based on the dates rendered dynamically on X-axis that is from current date back to past 24 days. I tried to create two datasets with one storing the risks after being queried based on creation
date and closure date and retrieving the count from Graph Y values but it is returning me count 0.
Please help.
Thanks in advance.Hi,
I want to retrieve the count of number of risk for each date and render it on line graph. I am retrieving data from sharepoint list where the number of risk counts increase with its creation and decreases after it is closure which maintained in another
column. Like if a risk is created on 02/02/2015 and closes on 03/03/2015 and an another risk is created on 17/02/2015 and closes on 14/03/2015. Then the count of the risk from 02/02/2015 to 16/02/2015 is 1 and from 17/02/2015 to 03/03/2015 is 2 and
then again till 14/03/2015 is 1. I want to retrieve the count based on the dates rendered dynamically on X-axis that is from current date back to past 24 days. I tried to create two datasets with one storing the risks after being queried based on creation
date and closure date and retrieving the count from Graph Y values but it is returning me count 0.
Please help.
Thanks in advance.
Maybe you are looking for
-
How to transport variants of queries
Hi all, I'd like to know the way to transport report variants of queries. Trying to execute queries, you can find a "Available Variants" field on the top of Variable Entry pages of report (query). With this feature, you can save the settings of varia
-
I have a table with origin and destination ids. There can be a dynamic number of connections ( not expecting more than 5) and the relation is always one to one: A -->B-->C-->D A or B or C or D can only apear in a relation, This mean A-->C cannot happ
-
Weblogic 11g Fail over Cluster
Hi, I'm Using WebLogic Server 11g (10.3.6). I have installed ATG and Commerce reference store in same machine with weblogic.(Endeca Has Separate server). In addition to i have oracle DB server and apache server. I did following things. *I have config
-
How is licensed the Oracle Service Bus? wasnt it part of the SOA Suite?
Why it is not clear for us how the oracle service bus is licensed, in terms that we thought it was included on the Oracle SOA Suite , we are referring to newer releases is it licensed a part from the soa suite? Thanks!
-
How do I print wirelessly via a cannon mp210 printer/scanner. I have followed guidance re-routing the USB from PC to livebox and printer, reset the livebox and installed printer drivers on the imac to no avail.