Two charts with different data on single report
Hi there,
I've a requirement to report on two weeks, past week and current week. The data is grouped by a type.The report should display separate charts side by side, one chart for the past week and the other for the current week, for comparision purposes. The details can display the data together for the two weeks.
Is it possible to select data on charts?
I'm using Crystal Reports for Visual Studio 2005.
Any help is highly appreciated.
Thanks,
Seshu
Insert two subreports and create the charts in them.
Similar Messages
-
How to compare two rows from two table with different data
how to compare two rows from two table with different data
e.g.
Table 1
ID DESC
1 aaa
2 bbb
3 ccc
Table 2
ID DESC
1 aaa
2 xxx
3 ccc
Result
2Create
table tab1(ID
int ,DE char(10))
Create
table tab2(ID
int ,DE char(10))
Insert
into tab1 Values
(1,'aaa')
Insert
into tab1 Values
(2,'bbb')
Insert
into tab1 Values(3,'ccc')
Insert
into tab1 Values(4,'dfe')
Insert
into tab2 Values
(1,'aaa')
Insert
into tab2 Values
(2,'xx')
Insert
into tab2 Values(3,'ccc')
Insert
into tab2 Values(6,'wdr')
SELECT
tab1.ID,tab2.ID
As T2 from tab1
FULL
join tab2 on tab1.ID
= tab2.ID
WHERE
BINARY_CHECKSUM(tab1.ID,tab1.DE)
<> BINARY_CHECKSUM(tab2.ID,tab2.DE)
OR tab1.ID
IS NULL
OR
tab2.ID IS
NULL
ID column considered as a primary Key
Apart from different record,Above query populate missing record in both tables.
Result Set
ID ID
2 2
4 NULL
NULL 6
ganeshk -
Creating a multi series line chart with different data providers
I have 3 data providers of the same structure i.e ArrayCollection of DataElement and want to use them to create a multiseries line chart. I do not have just 1 dataProvider that can be used but 3 different data providers of the same structure that i want to use each for different series.
[Bindable] private var orangeSales : ArrayCollection =
new ArrayCollection(
[ { sales: 101000, month: new Date( '01/01/2008' ) },
{ sales: 960000, month: new Date( '02/01/2008' ) },
{ sales: 475000, month: new Date( '03/01/2008' ) },
{ sales: 425000, month: new Date( '04/01/2008' ) }
[Bindable] private var appleSales : ArrayCollection =
new ArrayCollection(
[ { sales: 991000, month: new Date( '01/01/2008' ) },
{ sales: 140000, month: new Date( '02/01/2008' ) },
{ sales: 565000, month: new Date( '03/01/2008' ) },
{ sales: 255000, month: new Date( '04/01/2008' ) }
[Bindable] private var bananaSales : ArrayCollection =
new ArrayCollection(
[ { sales: 891000, month: new Date( '01/01/2008' ) },
{ sales: 147560, month: new Date( '02/01/2008' ) },
{ sales: 295000, month: new Date( '03/01/2008' ) },
{ sales: 574000, month: new Date( '04/01/2008' ) }
I want to create a line chart with orangeSales, appleSales and bananaSales as three different lines on the chart for different dates specified.
<mx:ColumnChart showDataTips="true" >
<mx:horizontalAxis>
<mx:CategoryAxis
dataProvider="{orangeSales}"
categoryField="month"
/>
</mx:horizontalAxis>
<mx:series>
<mx:LineSeries displayName="OrangeSales" yField="sales" xField="month" dataProvider="{orangeSales}"/>
<mx:LineSeries displayName="AppleSales" yField="sales" xField="month" dataProvider="{appleSales}"/>
<mx:LineSeries displayName="BananaSales" yField="sales" xField="month" dataProvider="{bananaSales}"/>
</mx:series>
</mx:ColumnChart>
Please help!Sorry for the confusion. Actually I must be doing some thing wrong like using ColumnChart to display a line chart or something like that.
I have now realized that a multi series line chart can be built by having a different data provider for each of the LineSeries object.
So the code below would create a multi series line graph :
[Bindable] private var orangeSales : ArrayCollection =
new ArrayCollection(
[ { sales: 101000, month: new Date( '01/01/2008' ) },
{ sales: 960000, month: new Date( '02/01/2008' ) },
{ sales: 475000, month: new Date( '03/01/2008' ) },
{ sales: 425000, month: new Date( '04/01/2008' ) }
[Bindable] private var appleSales : ArrayCollection =
new ArrayCollection(
[ { sales: 991000, month: new Date( '01/01/2008' ) },
{ sales: 140000, month: new Date( '02/01/2008' ) },
{ sales: 565000, month: new Date( '03/01/2008' ) },
{ sales: 255000, month: new Date( '04/01/2008' ) }
[Bindable] private var bananaSales : ArrayCollection =
new ArrayCollection(
[ { sales: 891000, month: new Date( '01/01/2008' ) },
{ sales: 147560, month: new Date( '02/01/2008' ) },
{ sales: 295000, month: new Date( '03/01/2008' ) },
{ sales: 574000, month: new Date( '04/01/2008' ) }
I want to create a line chart with orangeSales, appleSales and bananaSales as three different lines on the chart for different dates specified.
<mx:ColumnChart showDataTips="true" >
<mx:horizontalAxis>
<mx:CategoryAxis
dataProvider="{orangeSales}"
categoryField="month"
/>
</mx:horizontalAxis>
<mx:series>
<mx:LineSeries displayName="OrangeSales" yField="sales" xField="month" dataProvider="{orangeSales}"/>
<mx:LineSeries displayName="AppleSales" yField="sales" xField="month" dataProvider="{appleSales}"/>
<mx:LineSeries displayName="BananaSales" yField="sales" xField="month" dataProvider="{bananaSales}"/>
</mx:series>
</mx:ColumnChart> -
Multiple series chart with differing dates
Is there a way to display multiple series on a chart when the
data for the horizontal axis doesn't match up? For example:
if data1 (val, date) is (10, 01/05/2008) (15, 02/08/2008)
(20, 03/01/2008)
and data2 (val, date) is (8, 01/12/2008) (25, 02/10/2008)
(30, 03/14/2008)
how would I get the data to display on a multiple series
chart. Right now, I am using a CategoryAxis for the horizontal
axis. If I do something like this:
hAxis.dataProvider = data1;
hAxis.categoryField = "date";
it will show only the series for data1, but not data2.Thanks for the reply.
That link tells you how to add multiple axis to a chart which
is what I'm doing, but unless you want to have two horizontal axis
on the bottom (which looks terrible) or put one on the top and one
on the bottom (which looks awkward), this solution is not very
good.
The problem is that the data ranges for the horizontal are
the same, but the individual timestamps are slightly different,
sometimes off by only a few hundredths of a second.
To attempt to work around this, I merged the two arrays, but
that seemed to mess up the display of the data.
Is there not a way to just draw the second series on top of
the first without having to lock it to the axis? It seems like the
answer is no when using the standard packages. But is there a way
to override this and get it to draw properly? -
Receiving error when calculating two fields with different date format
I am more familiar with SQL Server than Oracle, so after searching online without success, I am asking here.
I'm using PL/SQL Developer with Oracle DB 11g Enterprise Release 11.2.0.2.0 64 Bit
MyTable:
ID_Number VarChar2
Date_Received Date
Select ID_Number,
Date_Received,
To_Date(substr(ID_Number, 1,6), 'YYMMDD') SentDate,
Date_Received - To_Date(substr(ID_Number, 1,6), 'YYMMDD') NumDays
From MyTable
Where substr(ID_Number, 7,3) in ('ABC', 'ABD')
and Length(Trim(Translate((substr(ID_Number, 1,6)), '0123456789', ' ' ))) is null
ID_Number Date_Received SentDate NumDays
131002ABC1654106 10/16/2013 10/2/2013 14
131004ABD8813899 4/12/2013 4/8/2013 4
131014ABD1844832 10/16/2013 10/14/2013 2
Sometimes the first 6 characters in the ID_Number are not numbers, and the Length(Trim(Translate removes those records
I just want records where NumDays > 2
I've tried putting the query in a subquery and using Where NumDays > 2 outside. I've also tried using the computation directly in the Where clause. Without this in the Where clause it runs fine, with it in either spot I get the following error:
ORA-01931: Date format picture ends before converting entire input string
I'm not sure how to put both dates in the same format. I've tried declaring the format to no avail. I do not understand how I can calculate within the select but not use the same calculation within the Where clause.
Thank you for your help.Hi,
SQL is a language for describing the results you want. How the system gets those results is up to it; you don't have much say regarding which conditions will be applied when.
One place where you can control the order of things is in a CASE expression. When you say
CASE
WHEN condition_1
THEN expression_1
END
you can be sure that expression_1 will only be evaluated when cond_1 is TRUE.
Try something like this:
WITH got_sent_date AS
SELECT id_number, date_received
, CASE
WHEN TRANSLATE ( SUBSTR (id_number, 1, 6)
, 'x 0123456789'
, 'x'
) IS NULL
THEN TO_DATE ( SUBSTR (id_number, 1 6)
, 'YYMMDD'
END AS sent_date
FROM MyTable
WHERE SUBSTR (id_number, 7, 3) IN ('ABC', 'ABD')
SELECT id_number
, date_received
, sent_date
, date_received - sent_date AS num_days
FROM got_sent_date
WHERE date_received > sent_date + 2
If you'd care to post some sample data (CREATE TABLE and INSERT statements) and the results you want from that data, then I could test this.
Of course, you'll still have run-time errors if id_number starts with 6 digits, but they don't happen to be valid, e.g. '131100' or '130229'. That's one of the many reasons why storing date information in VARCHAR2 columns is such a bad idea. To get around that problem, see
https://forums.oracle.com/message/4255051 -
I have my ipad notes linked to gmail and suddenly disappeared when I put the sim card into a new iphone, the funny thing is that almost all disappeared except 4 and with different dates up to two years. Why did this happen? No way to recover them?
Wow, Karan Taneja, you've just embarrassed yourself on a worldwide support forum. Not only is your post ridiculous and completely inappropriate for a technical support forum, but it also shows your ignorance as to whom you think the audience is. Apple is not here. It's users, like you.
If you would have spent half the time actually reading the Terms of Use of this forum that YOU agreed to by signing up to post, as you did composing that usesless, inappropriate post, you (and the rest of us on this forum) would have been much better off. -
Multiprovider - two infoproviders with different levels of summarization
Hi Gurus,
I need to create a report which requires data from two infoproviders, I am thinking of building a multi provider on top of the two infoprovider . I wanted to know if its possible to create a multiprovider on top of two infoprovider with different level of summary. Any suggestions with be very helpful for me.
Kindly let me know..thanks in advance...
cheers,
TuckHi
Two different level of summarization will throw inconsistency in reporting
It is not advisable
Regards
N Ganesh -
I have two iphones with different phone numbers that I use. I have one of them set up on icloud now, but do not know how to set up my second device on icloud. Both of my iphones use my same Apple ID for purchases, etc. Is there a simple way to add a device to my icloud account? Thank you in advance for any help someone may be able to give me.
To move one of the phones to a different iCloud account (if that's what you want to do), go to Settings>iCloud and turn all synced data to Off. When prompted, choose to keep the data on your iPhone. After everything is off, scroll to the bottom and tap Delete Account. This will delete the account from the phone but not from iCloud so the other phone will not be effected. Then set up a new iCloud account with a different Apple ID and turn iCloud syncing in Settings>iCloud back to On. When prompted, choose Merge. This will upload the data to the new iCloud account.
You will then have to go to icloud.com and sign into each iCloud account separately and delete any unwanted data that you don't want on the phone syncing with each account. -
Hello Apple Community,
Can I backup two devices (with different documents) to one iCloud account?
For example: iPad Air and iPhone 5, not everything is synced between the two, but I would like to backup each (seperately in the cloud). Is this possible?
This way when I change from an old ipad to a new, I can restore with the ipad backup, and when I change from an old iphone to a new, I can restore from the
iphone backup.
Thank you in advance!Terminology check here. Do you really mean a "CD"? There's a difference in Cloud behavior between content from a physical CD you ripped (which only has Cloud content if you have iTunes Match) and an "album" you bought from the iTunes Store.
Read references for Home Sharing.
iTunes: How to share music and video - http://support.apple.com/kb/HT2688 - about Music Sharing and Home Sharing
Home Sharing Support page - http://www.apple.com/support/homesharing/
iOS: Setting up Home Sharing on your device - http://support.apple.com/kb/ht4557 - "With Home Sharing in iOS 4.3 or later, you can stream your entire iTunes library over your home Wi-Fi network from your Mac or PC right to your iPhone, iPad, or iPod touch."
The above can get pretty complicated. You are probably best off by syncing both devices to a single library and/or updating the libraries on both computers to have the same content. -
Charts with Multiple Data Series in One Color
I am trying to create a pie chart to reflect the different areas of my budget in four categories. However, my budget is divided into several smaller categories across several columns and I can only get the cells in the first column to register even though the additional cells show up in the Inspector as part of the series.
Jerry,
Thanks for the info. I'll give that a read when I get home today. In a roundabout way I tried part of that. I created my chart with my data for Mammallia and the time periods. Then I selected the occurrences for Synapsids and dropped them in, but it added them to the first data set in the chart? I'm guessing I was doing something wrong, but I'm unsure of what. Numbers/Excel has never been a strong subject for me, but I'll try your advice and see what I come up with.
Reading your post again, the last way seems the most simple and I feel a little foolish for not thinking of that myself. Oh well, that's how we learn right? Thanks for your help!! You saved me a lot of hassle.
Best regards,
Mitch -
Revision: 13716
Revision: 13716
Author: [email protected]
Date: 2010-01-22 09:26:12 -0800 (Fri, 22 Jan 2010)
Log Message:
since include-read-only is a server global setting, we can't have two channels with different value. remove the test for the include-read-only false. update the service-config.xml as well.
Modified Paths:
blazeds/trunk/qa/apps/qa-regress/WEB-INF/flex/services-config.mods.xml
blazeds/trunk/qa/apps/qa-regress/testsuites/mxunit/tests/remotingService/dataTypes/ReadOn lyTest.mxmlYou can give this a try on your Ultimate machine. While these are said to be for Vista, I used it on my Win 7 machine just fine and it fixed the problems I was having. Hope it works for you.
The problem is that Vista, by default, will only use NTLMv2 for authentication, which is not supported by Mac OS X's Windows Sharing service.
The other problem is the Minimum Session Security for NTVLM SSP based Clients.
To get around this:
1. In Vista, open the Control Panel
2. Switch to "Classic" view
3. Double-click Administration Tools
4. Double-click Local Security Policy
5. Or Secpol.msc
6. Expand "Local Policies" and select "Security Options"
7. Alternate : Type secpol.msc to get editor up then
8. Locate "Network Security: LAN Manager Authentication Level" in the list and double-click it.
9. Change the setting from "Send NTMLv2 response only" to "Send LM & NTLM - use NTLMv2 session if negotiated"
10. Network Security: Minimum session security for NTLM SSP Based (including secure RPC) Clients
11. Change the setting from "require 128 bit" to unchecked (No Minimum)
12. Click OK
the real difference between vista and windows 7 procedure is 10 and 11 -
How to combine two applications with different workspaces in APEX
Hi,
Can anyone help out in merging two applications with different workspaces in APEX 3.2 ?
Thanks in advance,Hello Satya,
>> I am Satya …
Please take one more step to help us and update your forum handle to something friendlier than user123… Thanks.
>> Can anyone help out in merging two applications with different workspaces in APEX 3.2 ?
This is not a trivial task.
You didn’t mentioned if both workspaces sharing the same APEX instance, or they are on two different instances (machines). I believe the latter is a pre-condition to a success.
First you need to remember that importing an APEX component, like a single page, is possible only to the same application that it was exported from. This is still valid if you have the same workspace on two separate APEX instances – one is an import of the other (which makes it an identical copy). Still, the application ID must be the same, or you’ll get the following error: “This page was exported from a different application or from an application in different workspace. Page cannot be installed in this application.”
You can’t simply manipulating the export file, if the two workspaces are sharing the same APEX instance, as all workspaces on the same instance shares the same APEX metadata files, and you’ll receive a “unique constraint violated” error messages. That means you can’t import one application into the workspace of the other, even if you are using a different application ID.
As far as I can see, the only viable way of doing an application merge is to have two identical workspaces, on two separate APEX instances. The two applications should share the same application ID, although this parameter can be changed in the import file. You should export the page in one application – on the first instance – and import it into the other application – on the second instance.
You should also make sure that the exported page ID doesn’t exist on the target application, otherwise it will be replaced by the new imported page. Also, if the imported page include references to shared components that are not defined on the second application, it might also pose a problem.
As I said, this is not trivial. The benefits are mostly depend on the amount and complexity of the pages you want to merge. If they are not many, and simple, you should consider just re-creating them on the target application. If they are very complex, the merge might fail anyway.
Regards,
Arie.
Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all. -
Revision: 5445
Author: [email protected]
Date: 2009-03-19 17:47:57 -0700 (Thu, 19 Mar 2009)
Log Message:
Fix for - @copy tag for two methods with different arg lists not working.
Some changes for refactoring.
QE Notes: None.
Doc Notes: None.
Bugs: SDK-19975
tests: checkintests, asdoc
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-19975
Modified Paths:
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/AsDocUtil.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/TopLevelClassesGenerator.ja vaRevision: 5445
Author: [email protected]
Date: 2009-03-19 17:47:57 -0700 (Thu, 19 Mar 2009)
Log Message:
Fix for - @copy tag for two methods with different arg lists not working.
Some changes for refactoring.
QE Notes: None.
Doc Notes: None.
Bugs: SDK-19975
tests: checkintests, asdoc
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-19975
Modified Paths:
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/AsDocUtil.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/TopLevelClassesGenerator.ja va -
i have two users with different music on each itunes and i can only use one library, how do i use both for one iTouch?
Chris, I believe this link may have the information you're looking for. Welcome to discussions!
http://docs.info.apple.com/article.html?artnum=300432 -
i have multiple devices backed up to the same computer each with different data. how do i keep them from syncing all data when i back up or transfer stuff from the computer to a device? one is an iphone 6 and the others are ipad mini first gens, each ipad has 64gb and the iphone has 128, need to keep the data seperate as they are not all mine
Itunes content and pics are NOT part of the backup that itunes performs.
Backing up, updating, and restoring iPad, iPod touch, and iPhone software
You should transfer any purchases from iphone regularly: File>Transfer Purchases , if they fail to be transferred when you sync.
You buy one and only one download. It is your responsibility to move/copy/backup your purchases.
You can try contacting itunes support and asking for an exception, but they are under no obligation to allow.
http://www.apple.com/support/itunes
Maybe you are looking for
-
Bal field "Profit Center" in line item 001 not filled at the time of F-53
We are in ECC6 I have posted a vendor document. The entry is shown as under. GL CC PC Segment Dr Expense GL-1 RV01 RGV1 Hyderabad Dr Expense GL-2 RV02 RGV2 Mumbai Cr Vednor a
-
Hi All , In tcode pa30 we are creating a custom infotype and a subtype . When i do a F4 on the subtype the FM called is HR_F4_GET_SUBTYPE. This FM checks for a badi using code CALL FUNCTION 'HR_GET_BUSINESS_ADD_IN' EXPORTING exit_name
-
Don't Print 0.00 ina calculated field.
How do you make a calculated field not print the 0.00 in Adobe 7.0.9 Professional? I would like to be able to print a blank form with out the 0.00 but can not figure out how to change it without getting rid of the calculate field which I also need. A
-
Hi folks, In my report i have five selections screen feilds.for each selection i have different selection criteria.for each selection -criteria i have to write seprate code.if i select first feild i want that selection criteria only.if i select se
-
I can't believe no one has mentioned this problem here before! I have a ton of preexisting songs in my library encoded with the .mp3 wrapper, but as MPEG-2.5 files. Some of these play in iTunes, some do not. They all work fine in Winamp, which is why