Question

Cognos Powerplay - 2009 date issue

Asked by: kevin1983

Hi,
We are using Cognos Powerplay version 6.61 along with Cognos Powerplay transformer to build powercubes which are built using data from an access database. The problem is the dates for 2009 are not showing correctly, it seems that data is showing one week ahead of schedule during 2009. i.e. there was sales data showing under week beginning Monday the 12/01/09 last week when at the time we hadnt even begun
that week yet and did not have any data within access that falls under that week (12/01/09 to 18/01/09), also this week should begin Monday 12/01/09 but data for this week is instead showing under next week which doesnt start until Monday 19/01/09.

It appears that week beginning Monday 05/01/09 is missing both in Cognos Powerplay and Cognos Powerplay transformer.
If its possible to add a week into the transformer then this could fix the problem but i cant find a way of doing this.

Maybe its because of the way the dates are for 2009 are different from 2008 and it has put the system out of sync. Our weeks are based on a 12 period year, with a 4,4,5 week using a lunar year. Cognos Powerplay transformer gets its data from a query within a Microsoft access 2003 database

Ive tried to re-generate the categories again but still the same issue.

Does anyone have any ideas on how I could fix this?

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-01-13 at 04:49:04ID24047241
Tags

Cognos PowerPlay

Topics

SQL Reporting

,

Data Mining

,

SQL Query Syntax

Participating Experts
1
Points
500
Comments
48

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Time sync
    Hi, How to sync the time in all the UNIX systems with in a network or in a group of networks? Thanks, Sreeram.
  2. uppercase transformation
    Why doesn't this code compile under Borland C++ builder 5.0? #include <string> #include <algorithm> #include <cctype> #include <locale> #include <iostream> using namespace std; int main(int argc, char* argv[]) { string s = "abcd&q...
  3. Sync issues in Outlook
    I have a Exchange 2007 with Eset NOD32 antivirus XMON running on it. I believe that the XMON is causing sync issues to occur. I end up with a lot of messages in the conflicts folder and the sync issues folder. I am using cached Exchange mode in Outlook 2007 and Outlook 200...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: OnALearningCurvePosted on 2009-01-13 at 05:09:22ID: 23362151

HI kevin1983,

I'm guessing at the moment but I think it is either your Query in Access 2003 which is gathering the data (Please post the query if possible).  Or it is something to do with the 1st of Jan falling on a Thursday.

I have never used Cognos Powerplay and do not know how it is put together, but looking at your screen shots it seems to have tried to get the weeks back to starting on the Monday following the 1st but for some reason this has caused the 5th to be lost?

Sorry this is not much help, but it might get you looking in the right place for the fault.

Mark.

 

by: kevin1983Posted on 2009-01-13 at 06:12:17ID: 23362698

Hi mark,
thanks for comments so far, yes maybe is because the first of jan fell on a thursday but i think its also likely to be something in access.

Ok ill try to post the query if i can soon.

 

by: kevin1983Posted on 2009-01-13 at 07:40:36ID: 23363791

OK its difficult to post the database/query but ill post an excel export of the query data. and another screenshot of powerplay with the date 12/01/09 expanded.


 

by: kevin1983Posted on 2009-01-13 at 07:46:15ID: 23363861

Powerplay uses the data from access (that you can see in the exported excel file) I think its the "original invoice date" filed  thats makes up the date lables in powerplay and the invoice date is the one with the actual data that powerplay uses, it seems a bit confusing i think and cant work out exactly what its doing yet but i guess theres a reason why it was setup like this (wasnt me who originally set this up).

The "invoice date"  field seems to do a -7 days subtraction in access from the original invoice date.

 

by: OnALearningCurvePosted on 2009-01-13 at 08:21:30ID: 23364307

OK,

Looking at your posts the issue is in your Access Query because your three date columns at the end are all over the place.  can you view the query in SQL view (open the query in design view and then select "SQL View" from the view menu on the tool bar) and then copy and past the SQL so I can take a look at the make up of the query.

there seems to be some sort of date calculation being done with what looks like the invoice date to get your WEEK_DATE column and Ill bet the turn of the year has thrown it out for some reason (Similar things have happened to me on a few reports at work over the lase few weeks!).

If you can get the SQL form of the query posted I might be able to help.

I will be logging off for the night in a few minutes but if you can get the SQL up I'll try to take a look at it in the morning.

Hope this helps,

Mark.

 

by: kevin1983Posted on 2009-01-13 at 08:25:30ID: 23364361

HI,

Ok ill post the SQL code in the Query, yes if your able to take a look that would be great, thanks for your help

SELECT invoices.[Invoice Date], customers.[Rep Code], customers.[Area Code], invoices.Partcode, invoices.[Cases  ], parts.[Br Unit], [br unit]*[cases] AS Brushes, parts.[Con Unit], [Con Unit]*[Cases] AS Consumer, invoices.[Item Price], invoices.[Line Total], Costs.[Std Cost], [Line Total]-([Cases]*[Std Cost]) AS [Std Margin], Costs.[Prime Cost], [Line Total]-([Prime Cost]*[Cases]) AS [Prime Margin], invoices.Customer, invoices.[Cust Branch], parts.[Parts Description], comm2.[Sale Type], comm2.[Comm2 Description], comm3.[Comm3 Description], customers.EUK, customers.[Customer Name], reps.[Rep Name], areas.[Area Name], Branches.Location, Trim([parts]![partcode])+" "+[parts description] AS [Parts abbrv], [customers]![customer]+" "+[Customer name] AS [Customer abbrv], Str([WEEK_DATE]) AS TXT_DATE, invoices.[Original Invoice Date], IIf([purchased]=True,"Purchased","Manufactured") AS BIFLAG
FROM (((((((((invoices INNER JOIN parts ON invoices.Partcode = parts.Partcode) LEFT JOIN comm2 ON parts.Comm2 = comm2.Comm2) LEFT JOIN comm3 ON parts.Comm3 = comm3.Comm3) LEFT JOIN customers ON invoices.Customer = customers.Customer) LEFT JOIN Costs ON (invoices.Partcode = Costs.Partcode) AND (invoices.Year = Costs.Year)) INNER JOIN Branches ON invoices.[Cust Branch] = Branches.[Cust Branch]) LEFT JOIN reps ON customers.[Rep Code] = reps.[Rep Code]) LEFT JOIN areas ON customers.[Area Code] = areas.[Area Code]) INNER JOIN [COM-PERIOD_DATA] ON invoices.[Original Invoice Date] = [COM-PERIOD_DATA].DATE) INNER JOIN [COM-WEEK_DATES] ON ([COM-PERIOD_DATA].WEEK = [COM-WEEK_DATES].WEEK) AND ([COM-PERIOD_DATA].PERIOD = [COM-WEEK_DATES].PERIOD) AND ([COM-PERIOD_DATA].YEAR = [COM-WEEK_DATES].YEAR)
WHERE (((invoices.[Original Invoice Date])>=#1/1/2004#));
                                              
1:
2:
3:

Select allOpen in new window

 

by: kevin1983Posted on 2009-01-13 at 08:33:48ID: 23364466

Ive found a macro that is set to run overnight (every day) that appears to do the following calculation on the "Invoice date" field

Criteria:    >=#12/01/04# And <=#31/12/10#
Update to [invoice date]-7

seems to subtract 7 days from the original invoice date, maybe i need to modify this calculation to get the data in 2009 in the correct weeks. found a comment in the macro thats says "Re-date invoices -7 days for 2004 53 week problem" seems like this could be the key to fixing the issue.

 

by: OnALearningCurvePosted on 2009-01-13 at 08:34:52ID: 23364477

Hi Kevin,

The code you have posted does not seem to be the code that generated the Excel data you posted?

Can you double check.

I will be off now till the morning but I will check back first thing.

Mark.

 

by: OnALearningCurvePosted on 2009-01-13 at 08:37:51ID: 23364510

Ah,  Just seen your second post.

It does seem like this may be something near to the issue.

I have had a report fail during the switch between 2008 and 2009 due to the last few days of 2008 being classed as week 53 and the first few days of 2009 being classed as week 1.

In the report I had an issue with I put an error trap in which changed anything from week number 53 in year 2008 to be classed as week 1 in 2009 (therefore moving everything into the same week number).

Post what you can find an I'll try to help out in the morning if your still stuck.

 

by: kevin1983Posted on 2009-01-13 at 08:38:55ID: 23364526

The exported data in excel was from the original query but i disabled some fileds from not showing and filtered the dates more.

Below is SQL from the version of the expoerted Exel data.

SELECT invoices.[Invoice Date], customers.[Rep Code], invoices.[Item Price], invoices.[Line Total], Costs.[Std Cost], [Line Total]-([Cases]*[Std Cost]) AS [Std Margin], Costs.[Prime Cost], [Line Total]-([Prime Cost]*[Cases]) AS [Prime Margin], reps.[Rep Name], Str([WEEK_DATE]) AS TXT_DATE, invoices.[Original Invoice Date], [COM-WEEK_DATES].WEEK_DATE
FROM (((((((((invoices INNER JOIN parts ON invoices.Partcode = parts.Partcode) LEFT JOIN comm2 ON parts.Comm2 = comm2.Comm2) LEFT JOIN comm3 ON parts.Comm3 = comm3.Comm3) LEFT JOIN customers ON invoices.Customer = customers.Customer) LEFT JOIN Costs ON (invoices.Partcode = Costs.Partcode) AND (invoices.Year = Costs.Year)) INNER JOIN Branches ON invoices.[Cust Branch] = Branches.[Cust Branch]) LEFT JOIN reps ON customers.[Rep Code] = reps.[Rep Code]) LEFT JOIN areas ON customers.[Area Code] = areas.[Area Code]) INNER JOIN [COM-PERIOD_DATA] ON invoices.[Original Invoice Date] = [COM-PERIOD_DATA].DATE) INNER JOIN [COM-WEEK_DATES] ON ([COM-PERIOD_DATA].WEEK = [COM-WEEK_DATES].WEEK) AND ([COM-PERIOD_DATA].PERIOD = [COM-WEEK_DATES].PERIOD) AND ([COM-PERIOD_DATA].YEAR = [COM-WEEK_DATES].YEAR)
WHERE (((invoices.[Original Invoice Date])>=#12/1/2008#));
                                              
1:
2:
3:

Select allOpen in new window

 

by: kevin1983Posted on 2009-01-13 at 09:50:45ID: 23365268

ive just tried to change the invoices from 5th january 2009 and onwards ie >04/01/08 to subtract 10 days from the "original invoice date" for the "invoice date" (powerplay seems to use the "invoice date" as the data" instead and ive modified the macro which runs overnight to -10 instead of -7

because i think 2009 has 3 days to many at the end.

Update to [invoice date]-10
i will run a test powerplay cube generation overnight and will see how powerplay looks in the morning and will let you know the results, im not sure if this will fix the issue but thought id give it a try.

week 1, period 1 is meant to start on 1st january 2009 for us  (well for our comapny accounting calender anyway) week 52, period 12, week 5 is meant to run from 22nd december 2008 to 31st december 2008 for our accounting calender that we go by.

 

by: OnALearningCurvePosted on 2009-01-14 at 00:26:05ID: 23370758

I think I see what this is doing now but I'm not sure modifying dates is the best way to go about it.

See if your fix works and if it does then great.  If not, it ma be worth looking into changing your query slightly to modify the invoice dates "on the fly" when querying them to convert them into a first day of the week date.

I'm not 100% sure exactly how you would do this yet but I have done some date maninpulation in access before now.  So if your fix doesn't Work, give me a shout and I'll try to come up with something you could put into the query.

Good Luck!

Mark.

 

by: OnALearningCurvePosted on 2009-01-14 at 00:47:14ID: 23370816

OK,

Here is what I have so far...

The following in access

DateSerial(DatePart("yyyy",[date1]),DatePart("m",[date1]),(DatePart("d",[date1]))-(IIf(DatePart("w",[date1])=1,6,IIf(DatePart("w",[date1])=2,0,(DatePart("w",[date1])-2)))))

Will take a date (in my example [date1] which you can replace with your date column name) and converts into into a new date which represents the Monday of the week that date falls in.

This still does not fix your problem I know.. but as soon as I can put some sort of error trap in to sort the end of year bug this could be used all the time without having to edit dates each night.

leave it with me for a while and I'll try to come up with something.

 

by: kevin1983Posted on 2009-01-14 at 02:44:17ID: 23371386

Hi Mark,
sorry about little late reply

It didnt seem to work properly last night, data for the 8th and 9th is showing in under week 2 on powerplay when it should be in week1.

Your suggestion sounds like a good idea.

 

by: kevin1983Posted on 2009-01-14 at 02:54:51ID: 23371440

Theres also 2 lots of lables in powerplay for 12/01/09 and im noit sure why but trying to find out now.
see screenshot.

the query in access that powerplay uses is a select query/non updateable query.
Yes ideally i dont want to edit dates each night, although there is already the macro i mentioned that runs each night that uses the invoice date column to subtracts from the "original invoice date" (date label in powerplay) that i changed last night to subtract -10 instead of -7. Powerplay seems to use the "invoice date" column  to represent the actual data it shows, hope that makes sense.


 

 

by: OnALearningCurvePosted on 2009-01-14 at 03:41:13ID: 23371670

OK,

Not sure what is going on with your duplicate dates and we need to fix that.

I do now have a line of which will take your original invoice date and change it into what I think will be the correct week date.

i.e. the last few days of 2008 will be pushed back to 22/12/2008 and your beginning of 2009 should be reported correctly and the code is as follows:

IIF(DATEPART("yyyy",(DateSerial(DatePart("yyyy",[Original Invoice Date]),DatePart("m",[Original Invoice Date]),((DatePart("d",[Original Invoice Date]))-(IIf(DatePart("w",[Original Invoice Date])=1,6,IIf(DatePart("w",[Original Invoice Date])=2,0,(DatePart("w",[Original Invoice Date])-2)))))-(IIF(DATEPART("ww",[Original Invoice Date])=53,7,0)))))< DATEPART("yyyy",[Original Invoice Date]), (DateSerial(DatePart("yyyy",[Original Invoice Date]),1,1)),     DateSerial(DatePart("yyyy",[Original Invoice Date]),DatePart("m",[Original Invoice Date]),((DatePart("d",[Original Invoice Date]))-(IIf(DatePart("w",[Original Invoice Date])=1,6,IIf(DatePart("w",[Original Invoice Date])=2,0,(DatePart("w",[Original Invoice Date])-2)))))-(IIF(DATEPART("ww",[Original Invoice Date])=53,7,0)))

Lengthy I know!

But it should work and you should be able to test it on your source data to make sure the original invoice dates are being converted into the correct date.  If this works, you can then get rind of your macro  and change your source query to sue the code above to generate the date field for your reporting software.

Hope this helps,

Mark.

 

by: kevin1983Posted on 2009-01-14 at 03:58:59ID: 23371752

Hi Mark,
so you think the main issue is the last few days of 2008 thats causing the issue?, the last 3 days maybe?.

wow that is a lengthly bit of code thanks for this. I've just tired to insert this into a new column in the query and it says "the expression you entered is missing a closing parenthesis, bracket (]), or vertical bar (|)." and not sure whats missing in the code, any suggestions?

I guess this code needs to be setup on a new field, or will it be ok to use on the "invoice date" field, dont really want powerplay to reference any new fileds with a different name.

 

by: kevin1983Posted on 2009-01-14 at 04:04:08ID: 23371771

At present all the "invoice dates" from 5th January 2009 are -10 from the "original invoice date"
and before 5th Jan all the "invoice dates" are -7 from the "original invoice date"

From which date exactly should that code start to take effect and adjust invoice dates?, from late 2008?

 

by: OnALearningCurvePosted on 2009-01-14 at 04:10:21ID: 23371814

It should not matter,

I have written the logic of the code to look at the original invoice date for any day of any year.  It should look at the date and convert it to the Monday of the week the date falls in unless one of two thing happen,

Option one, the week number is 53 (i.e. it is the last couple of days in the year and they need to be pushed back to the previous week).  I this case it will return the Monday of the previous week so 29/12/2008 returns 22/12/2008

Option two, the date is in the first week of the new year but the Monday of that week was in the previous year. for example 01/01/2009 is a Thursday but for your report you need the data from the 1st to the end of the week to be classed as 01/01/2009 even though it is not a Monday. In this case it will return the 01/01/yyyy where yyyy is the year of the invoice date.  So in our example 02/01/2009 returns 01/01/2009.

Hopefully this would give you the dates you require for any year from any time period.

Hope this makes sense.

Mark.

 

by: kevin1983Posted on 2009-01-14 at 04:31:03ID: 23371919

Ok i added one more extra bracket at the end of the code and it worked ok now, i see what you mean it makes all invoice dates fall under a monday, that looks great.

I guess i can remove the exsisting "invoice date" field (data is stored in a table) and like you say stop the macro that runs overnight that actually creates these dates in the "invoice date" filed by subtracting days from the "original invoice date" field.

and instead have use your code on a new "invoice date" filed. Ill give it a try soon a re-genearte the powerplay reports - it can take a little while for powerplay to process all the data, so ill let you know a liitle later the results.

 

by: OnALearningCurvePosted on 2009-01-14 at 05:01:42ID: 23372104

Yeah,

Sorry about the bracket, I forgot to add that in when I pasted the text into the comment box.

Hope it works out.

Mark.

 

by: kevin1983Posted on 2009-01-14 at 06:25:56ID: 23372859

Hi ok powerplay has updated but its not correct still, its strange how it looks.
some dates are now showing under 19/01/09, im trying to work out what its done but not sure right now :-(

In powerplay the year is setup as a lunar year, i just thought perhaps i could try changing this to a 4,4,5 week month as our weeks are usually 4,4, 5 weeks apart from some weeks which are longer (such as the first week in jan 2009 and the last week in december 2008) so i guess this might not reolve the issue. Theres a few other options in the drop down "date function" list such as calender year but the other options i dont feel are suitable.

see screenshots.

 

by: OnALearningCurvePosted on 2009-01-14 at 06:44:11ID: 23373050

Sorry mate, I'm not sure what to try next.

I have never used powerplay and so would not know where to start with changes on that side.

Double check that the data coming out of access seems to have correct dates (i.e. no transactions for dates after today) before you start making changes to these settings.

If it is an Access issue, I might be able to help some more, otherwise you might need help from someone who has experience with this software.

Good Luck!

Mark.

 

by: kevin1983Posted on 2009-01-15 at 04:16:35ID: 23382569

Ok thanks, annoying as 2004 and 2005 appear to be working just fine using your code but then from 2006 its doesnt seem to work - its out of sync.

I think the data in access is the key to fixing this.

 

by: OnALearningCurvePosted on 2009-01-15 at 04:37:38ID: 23382714

I would suspect my code rather than Access!!

Could you post some sample dates that do and don't work, showing the date passed to the query and the date my code spits out and I'll see if I can fix it.

Mark.

 

by: kevin1983Posted on 2009-01-15 at 05:33:25ID: 23383042

hm maybe but im quite confused with this at present on how exactly its organizing the dates.

Ok ive attached a zip of some data comparisons, Overall totals in 2004 & 2005 seem to be the same although your code has moved some dates into different places making sub figures for sales people different. shown coparisons for 2005, hope this is of some help? or would you need to see some more data?

Thanks

 

by: OnALearningCurvePosted on 2009-01-15 at 06:10:36ID: 23383364

Any chance of the raw data before it hits Powerplay?

I don't need any financials, just literally [Original Invoice Date], [Reported Invoice Date], [My Calculated Date]

With these three columns, I might be able to see where I am going wrong.

Mark.

 

by: kevin1983Posted on 2009-01-15 at 06:13:03ID: 23383388

Ok ill get theis to you shortly

 

by: kevin1983Posted on 2009-01-15 at 06:40:03ID: 23383717

Ok attached is a local copy of the access database, ive stripped out some of the data that you dont really need to look at such as part codes.

The query that powerplay looks at is named "sales query"

 

by: kevin1983Posted on 2009-01-15 at 06:49:51ID: 23383817

Hi mark,

seems like i removed some dates from earlier years prior to 2009 in the invoices table

the attached version has all the year data going back previous years

sorry

 

by: kevin1983Posted on 2009-01-15 at 06:57:32ID: 23383904

thought the attached of our accounting calender dates for 2004, 2008 and 2009, could be helpful.

as im sure your aware and can see 2008 ends in more days than normal (more than 7), makeing more days for the last week and the first week in 2009 has more days than usual.

There seems to be a few calultions someone has done at the bottom of the 2004 calender.  

 

by: OnALearningCurvePosted on 2009-01-15 at 07:56:34ID: 23384617

Hmmm,

Looking at the Sales Query the Invoice Date Column does look right to me,  All the dates listed are Mondays and the adjustments at eh beginning and end of the years seem correct.  This may push the problem into the realms of Powerplay.

At this stage I have no idea where to start looking Kevin, Sorry!

Hopefully someone with some experience with this software might be able to pitch in.

Sorry again,

Mark.

 

by: OnALearningCurvePosted on 2009-01-15 at 08:25:54ID: 23384943

 

by: kevin1983Posted on 2009-01-15 at 08:34:55ID: 23385048

Ok no problem, yes your calculation seems to be working ok, I guess powerplay is doing something odd.

Some dates in powerplay seem to have slashes and other dates have the lablel: 20090101 (label should be original invoice date o think)

Thats fine no prob, I appreciate all your help, the code you've done could still be used if powerplay settings could be amended. I guess i may have to try to find an expert on powerplay to look into this issue.

Thanks


 

by: kevin1983Posted on 2009-01-15 at 08:35:34ID: 23385059

Ill have a read though that post.

Thanks

 

by: OnALearningCurvePosted on 2009-01-16 at 00:41:29ID: 23391133

Ok,

Sorry I cannot be any more help!

If it is any use I could change the query to output the date in the yyyymmdd format rather than dd/mm/yyyy

Let me know if it will be worth a try.

Mark.

 

by: kevin1983Posted on 2009-01-16 at 01:26:41ID: 23391336

Hi mark,

Yes that would be worth trying, im desperate to get this issue resolved, so its worth tyring for sure.

Thanks

 

by: kevin1983Posted on 2009-01-16 at 01:55:40ID: 23391470

interestingly the original macro that runs overnight to do the -7 days subtraction calculation has this criteria >=#12/01/04# so prior to 12 January 2004 the "invoice date" seems to be exactly the same as the "original invoice date", must be a reason behind this, i didnt set this up in the first place and the person who did doesnt work for the company anymore :-(

maybe theres some logic behind this, leap year perhaps in 2004, cant work out why though

 

by: OnALearningCurvePosted on 2009-01-16 at 01:57:22ID: 23391477

Hi Kevin,

Making one single statement generate the output got a bit tricky and Long.  So I have added a column to the example query you sent over and uploaded it below.

Hope this makes sense!

Mark.

 

by: OnALearningCurvePosted on 2009-01-16 at 01:59:19ID: 23391483

No idea on the 2004 thing mate?

 

by: kevin1983Posted on 2009-01-16 at 02:10:16ID: 23391535

Thanks, think i can seen what the code is doing, just had a look but the invoice date shows as this: 1/090112 for 12/01/09 ie the dates have a an extra number and a slash, is there a way to amend this?

12/03/07 in the main invoice fiield shows as 3/070312 for example in the invoice date filed, an extra 3 and a slash is included.

 

by: kevin1983Posted on 2009-01-16 at 04:27:31ID: 23392150

ok i changed the code

from:
Invoice Date: Right([MAInvoice Date],4) & Mid([MAInvoice Date],4,2) & Left([MAInvoice Date],2)

to:
Invoice Date: Right([MAInvoice Date],2) & Mid([MAInvoice Date],4,2) & Left([MAInvoice Date],2)

and now format is: 090112

ill try to re-genrate the powerplay cubes to create the powerplay report now to see how it looks and will let you know

 

by: OnALearningCurvePosted on 2009-01-16 at 04:55:25ID: 23392311

Sorry,

My mistake on the code.  Your fix should do the trick.

Good luck!

Mark.

 

by: kevin1983Posted on 2009-02-17 at 08:24:34ID: 23661274

Hi Mark,

Sorry about the late reply, been out of the office. In the end I asked an powerplay expert and they remotely fixed the issue. In the end he decided the best option was to create a new table in access that had the calender lables and got powerplay to use that table top base the year calender on.


 

by: kevin1983Posted on 2009-02-17 at 08:26:59ID: 23661310

Seeed like powerplay couldnt do the type of finance calender that we needed correctly without issues.
we tried various options in powerplay but none of them worked correctly.

Seems to be ok now, we just need to keep the new table in access up to date each year

Thanks for your help

 

by: OnALearningCurvePosted on 2009-02-17 at 09:31:00ID: 23662025

No Problem Kevin,

Glad you managed o get it sorted out in the end.

Mark.

 

by: OnALearningCurvePosted on 2009-08-28 at 08:37:02ID: 25208764

Hi gregclough,

From what I remember, kevin1983 finally sorted this one out himself and my suggestions just helped steer him the the correct general direction rather than actually resolve the problem for him.

So I would suggest a points refund to kevin1983.

Cheers,

Mark.

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...