[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Converting Dates to time format for duration and applying a rate structure

Posted on 2011-03-06
14
Medium Priority
?
450 Views
Last Modified: 2012-05-11
What I am working on next is to change the extracted value (string,date) to time format - change the last transaction record to time format, subtract from each other and convert to minutes.

This will be Duration and then apply a rate structure (1day=$14,00 : 30 mins intervals =$1 with a max of $14/day) to the duration for the Theoretical Revenue.

Please see the attatched .rpt file for further details.  report imageGalthousePARC.rpt
0
Comment
Question by:John-S Pretorius
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 5
  • 3
14 Comments
 
LVL 101

Expert Comment

by:mlmcc
ID: 35053334
What dates/times are being compared?

Is it the creation to last transaction?

mlmcc
0
 

Author Comment

by:John-S Pretorius
ID: 35053398
Yes that is correct, creation pulled with our previous picture statement and last transaction from the grouped data.
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 35053436
The dates in the sample seem a long way apart.  Is this just test data?

mlmcc
0
[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

 
LVL 101

Accepted Solution

by:
mlmcc earned 500 total points
ID: 35053554
My system is interpreting the dates as May rather than March

Take a look at the  report

mlmcc
GalthousePARC-1-.rpt
0
 
LVL 77

Expert Comment

by:peter57r
ID: 35054699
'My system is interpreting the dates as May rather than March'  (mlmcc)

Me too and I'm in a different region.  It looks like the raw data may be different to what you are expecting..

0
 

Author Comment

by:John-S Pretorius
ID: 35055148
Louisville, how do we take care of region?
0
 
LVL 77

Assisted Solution

by:peter57r
peter57r earned 500 total points
ID: 35055955
A date is a date is a date..
A datetime field which is correctly input in one region is correct for every region.
Problems arise if at some stage someone has used a formatting expression in some code or sql  to present the date in a particular way.  That converts the value from a date/datetime  datatype to a string it may no longer be interepreted correctly out of its own region.

Your report regards the Last Transaction as a genuine datetime field - which means in the database it is a datetime field and holds the values you are seeing in the report- which are MAY values not March.

If you think that these dates should be March then I would say that you need to know why they have been stored incorrectly in the database.  If you don't know why, and in particular you don't know whether the 'error' will persist for all data then any corrective action you take for this sample might not apply to the next one.

The month and day values can be swapped using a Dateserial() function to produce March dates, but as I say this process might not be applicable to all your data unless you can somehow verify that the problem  occurs with every date.
0
 

Author Comment

by:John-S Pretorius
ID: 35056133
Sorry guys, the raw data just needs to be adjusted and MM DD needs to be swapped around when pulling it.

The original data was exported DD mm .
0
 
LVL 77

Assisted Solution

by:peter57r
peter57r earned 500 total points
ID: 35056396
You cannot modify the raw data using  CR.

You can create a formula to get a converted date within CR..

Dateserial(Year({table.datefield}), Day({table.datefield}), Month({table.datefield}) + Timevalue({table.datefield})
0
 
LVL 101

Assisted Solution

by:mlmcc
mlmcc earned 500 total points
ID: 35056754
Did you look at the formulas for calculating the duration and revenue.  They will remain the same once you get the data pull so it reflects the dates correctly.

mlmcc
0
 

Author Comment

by:John-S Pretorius
ID: 35056947
I did see that, thank you very much - all seems as I was anticipating.

Final Question, anyone familiar with crystalexperts.com - Is it worth paying another yearly fee or do you thing expertsexchange on it's own will suffice as a resource while I'm learning and getting familiar with the fine angles of Crystal reporting ?.....
Thoughts....
0
 

Author Closing Comment

by:John-S Pretorius
ID: 35056980
Thank you Guys, much appreciated
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 35058964
crystalexperts.com is actually an offshoot of EE.  It is specifically for Crystal questions.  The "experts" participating are also very limited.  You will not get any better help there than here and also the resource is not as good for finding information.

The intent of the "microsites" like CrystalExperts.com is to get participation from users looking for subject specific help and information.

mlmcc
0
 

Author Comment

by:John-S Pretorius
ID: 35059171
Thank you, that saved me $90/Year.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question