I need some help on how to group my data into weekly reports. I have asked for a monthly and yearly a month ago but I can't figure out how to do the weekly reports in the same style.
I don't have any idea too what output is good to show a weekly report, but maybe like this?
Week_Sold Total_Earnings
January 1 2013 1
January 8 2013 5
Or like this?
Week_Sold Total_Earnings
January 1st Week 5
January 2nd Week 8
Or like this?
Week_Sold Total_Earnings
January 1-7 5
January 8-15 8
I have no idea what to do on this weekly so can someone recommend me a good weekly report format?
btw, my grouping is the same as the answer on this one Yearly, monthly grouping Visual Basic so please try to make the procedures close to this since im no good on Microsoft Access or Visual Basic.
Have you tried
Format([YourDateColumn], "ww")
?
This should give you the weeknumber in ISO standard. There are also some additional switches; you should find those easily in VBA.
Related
I am working on a export functionality and one of the requirments is to display accounting period in YYYYPPP format.
Can anyone please explain what is YYYYPPP format
It is about time information where YYYY is the fiscal year and PPP is the period of that fiscal year. For example, 2017001 represents the first period in fiscal year 2017.
Often used in Analysis Budget Management tools like SAP. The standard format for entering periods is YYYYPPP or YYYY then PPP.
I do not understand why this is happening. I've probably spent like 12 hours messing with this.
When I use Pentaho to build an analyzer report, all years have the same values with the same data.
For example, 2014, 2015, 2016, for the month of May, will all say 1000. When you drill down and click on 2014, it will have 2015 and 2016 included as well. Same for drilling down on 2015 and 2016.
Why in the world is this happening? :)
I found a solution. Here is what I discovered:
There was nothing wrong with my data in the table. Querying the table directly gave me exactly what I expected it to.
It was the Mondrian Cube that was the problem.
I set it so that "Quarter" and "Month" had unique members. I should not not done this.
Once I removed unique members from "Quarter" and "Month," everything worked perfectly. Thanks guys!
what is the best way to schedule a SQL Job to run from (any date range) i.e. 15th to 18th every single month with no end date?
Thanks in advance.
john
SQL Server 2008 you can set the frequency to occur Monthly and have 3 or 4 individual schedules to occur on the 15th, 16th, 17th, and 18th day of each month. Similar to the below image.
Not the cleanest solution but it does work.
I have an OLAP cube with a time dimension [year > month > day month > hour]. Now I need to create some reports very fast such as report for all sales of yesterday (like: 07:00 AM - 265 sales), all sales for last month (like: 1st February 2013 - 6625 sales), and it's all goig easy & fast because for the yesterday I'm querying: "WHERE {Hierarchize({[Date].[2013].[2013-2].[2013-2-1]})}" and for the month I'm querying :"WHERE {Hierarchize({[Date].[2013].[2013-2]})}".
But now I need also to create a report for the last 30 days. Any ideas how can I make this report as fast as the last month report? Thanks!
You need to look at the CurrentDateMember function, see Diethards blog here for a comprehensive explanation:
http://diethardsteiner.blogspot.co.uk/2009/10/current-date-function-on-mondrian.html
As for performance - the only solution is to turn on the various mondrian logs, and check that firstly there is no slow SQL - if there is then fix that in the database first - chances are a missing index or something.
Finally if it's still slow then post the full mdx. You dont have 2 separate date sets do you?
I have a T-SQL view with integer fields. I need a report on a monthly basis regarding the difference from one month to the next, i.e. so many people were engaged in a particular activity on 8am of the 1st of this month, so many the previous month, here is the difference. The numbers fluctuate all the time. I need a variance between 2 snapshots in time.
I am using the SSRS, however in reporting services I can only display the "current" situation. I could run a report at 8am of the 1st of each month and then calculate the differences manually. But how could I automate this calculation and then report on the difference?
I have tried to import data from SQL to 1 Excel spreadsheet from 1 month, then to the 2nd spreadsheet from the 2nd month. The 3rd spreadsheet calculates the difference. But how do I create a nice looking report from Excel?
Additionally I cannot send the report by email. It has to be available online.
Furthermore, each office wants their figures to be confidential and not visible to another office.
Thanx in advance.
Can you add a UserCount table that stores each office's user count for each month? It could have columns like:
id
date
user_count
office_id
You would insert a new row each month based on what the view tells you that month for each office. Then it's as simple as exporting that table to Excel and graphing it using Excel's built-in graphing tools.