Create View to allocate amount per month - financial year
Hi All,
I like to create an SQL view to divide amount 300,000 between 12 month starting from Month July 2014:
Amount Month Year
25,000 July 2014
25,000 August 2014
25,000 September 2014
25,000 October 2014
25,000 November 2014
25,000 December 2014
25,000 January 2015
25,000 February 2015
25,000 June 2015
Thanks
you almost got it, just add the logic...i hard coded the value 12
With CURRENT_FISCAL_YEAR as
Select Cast(case when datepart(month, current_timestamp) >= 7 then datename(year, current_timestamp) + '-07-01'else cast(datepart(year, current_timestamp) -1 as VarChar(4)) + '-07-01' End As Date) As Current_Year_FY
, NUMBERS as (Select NUMBER from Master..SPT_Values where Type = 'P' and number between 0 and 11)
, CURRENT_FISCAL_MONTHLY as
Select 300000/12 as Split,DateAdd(Month, Number, Current_Year_FY) as Current_FY_Month,year(DateAdd(Month, Number, Current_Year_FY)) as Current_FY_Year
from CURRENT_FISCAL_YEAR
Cross Join NUMBERS
Select *
from Current_FIscal_monthly
Hope it Helps!!
Similar Messages
-
Chart: amount (count) of records per month (and year). How?
I need to create a chart eventually. Can't get what formula to use. The data is:
1 | 15 Jan
2 | 20 Jan
25 | 14 Mar
26 | 16 Mar
28 | 20 Mar
The chart should show amount(count) of records per month(and year). So in this example:
Jan: 2
Mar: 3
Hm... totally lost. Any tips?To do this it would be best to add a column in which you isolate the month from the rest of the date information. Here's an example:
You may hide the Month-Isolated column if it impacts your presentation.
The Month-Isolated formula is: =IF(ISBLANK(B), "", (MONTH(B)))
The formula for the count in the Summary table is: =COUNTIF(Data Table :: $C, COLUMN())
Hope this gets you on your way.
Regards,
Jerry -
I would like to view my data usage per month going back at least 6 months. is it possible?
Data usage is only available for the past 90 days:
On the left-hand side of the My Verizon page, click View Bill.
Use the drop-down to select the appropriate bill.
Click the Calls/Messages/Data tab.
Use the drop-down to select the appropriate line (if applicable).
Click the blue Data button.
There's also a blue Download to Spreadsheet button below the data logs. -
View the Transactions accessed per month
Hi ,
I wanted to view the list of all the transactions executed in a system in a particular duration.
Please let me know if there is any transactions for the sameHello Balaji,
This has been asnwered several times on this forum I guess. Anyways
ST03N--->Expert mode-.
Choose the time lines and then go for transaction profile.
Regards.
Ruchit. -
UK Pension Auto Enrolment: minimum contribution per month vs year
Hi all,
just interested to know how you are dealing with cases, where the pensionable pay doesn't include the same variable payments as the legal qualifying earnings do, but due to higher percentages or no lower limit, the minumim threshold is still reached on an annual basis.
In those scenrios, it can easily happen that the contribution is to low in one month, when a bonus or a lot of overtime are paid. The standard behaviour of function GPENS under PAE is then to stop payroll and require a higher contribution in that month. However, the company thinks they don't need to do that, because the annual thrshold will be reached in the end, as contributions will be above the minumum in other months.
Is there a way to get the system testing this on an annual basis only? Or is this a faulty definition and is teh legal requirement really based on monthly numbers?
Would be keen on hearing any solutions - technical or otherwise - or even discussions / failed attempts for solutions on this point.
kind regards
SvenHI,
For your first query under S80CCD check sap note no: 1507799 -
I want to cancel my 25 dollar amount per month fee. my 12 year old applied without my permission
Are you sure its for itunes? Not aware of any service thats $25/month. Itunes match is that price for a year.
Anyway, you should contact itunes store support
iTunes store support
http://www.apple.com/support/itunes/ -
Storage - How much per month? In US, on iCloud?
I found the pricing for storage on iCloud but is it per month? year? forever? what?
Hello,
The following is an iCloud price reference.
This fall, when iOS 8 is released, pricing will come down by a fair amount. -
Date Range according to Financial year-end
Hi
I'm building this Discoverer report and one of my parameters is a LoV date field, which gives me a date range from Jan to Dec each year. Now my problem is, I want my date range to be as per our Financial Year End, which is from 01-Oct-03 to 30-Sep-04.
You'd find "<All>" amongst the range. This "All" currently indicates date between Jan 2003 - Dec 2003. Now I need to write a query/trigger that will put my date range to be between 01-Oct-02 to 30-Sep-03 recurring automatically after each Financial year-end.
ThanksHi,
Although I haven't tried it, you should be able to use a combination of hierarchies and alternative sorts to accomplish this.
How have you created your list of values? If your LOV is a list of months and years e.g. JAN-2003, FEB-2003 etc, you can create a alternative sort which will make OCTOBER the first month of the year - i.e. with value 1, and NOVEMBER = 2 and so on...
Sorry this is a bit vague. I will try and test tomorrow and see if it works, but this should be enough to give you an idea of how to progress. -
Hi
I'm building this Discoverer report and one of my parameters is a LoV date field, which gives me a date range from Jan to Dec each year. Now my problem is, I want my date range to be as per our Financial Year End, which is from 01-Oct-03 to 30-Sep-04.
You'd find "<All>" amongst the range. This "All" currently indicates date between Jan 2003 - Dec 2003. Now I need to write a query/trigger that will put my date range to be between 01-Oct-02 to 30-Sep-03 recurring automatically after each Financial year-end.
ThanksHi,
You might want to post the Q on Discoverer Forum also
Discoverer
Navneet. -
Can any body help me to write a query to get the sum of the amount for each financial year.
Thanx for the reply here i am sending the sample data and output
eg: Desc of the table
CDate Date
Amount number(10,2)
The following is the sample data for the above table
CDATE Amount
04-01-2005 3000
05-01-2005 3000
06-01-2005 3000
07-01-2005 3000
08-01-2005 3000
09-01-2005 3000
10-01-2005 3000
11-01-2005 3000
12-01-2005 3000
01-01-2006 3000
02-01-2006 3000
03-01-2006 3000
04-01-2006 4000
05-01-2006 4000
06-01-2006 4000
07-01-2006 4000
08-01-2006 4000
09-01-2006 4000
10-01-2006 4000
11-01-2006 4000
12-01-2006 4000
01-01-2007 4000
02-01-2007 4000
03-01-2007 4000
Output should be like this:
Financial Year Sum Amount
April 2005 to March 2006 36000
April 2006 to March 2007 48000 -
Create view that shows resource work in hours per month for top level tasks on the project
I'm relatively new to project so hopefully this is easy.
The management for the organization I am working at now wants me to break out every resource on the projects hours by top level tasks per month. Resource usage gets very close but I can't figure out how to make it show only the top level tasks. Does anyone
have any ideas on how to do this?Hi Nick,
I'd suggest (assuming you're working with Project Standard, not connected to Project Server) to generate a visual Excel report (project tab of the ribbon, then visual report), choosing the Budget work report template. Then in Excel, inserting the resource
and task column, you'll see the work consolidated at any task level by resources.
See reference below:
http://blogs.msdn.com/b/project/archive/2006/05/08/visual-reports.aspx
Hope this helps,
Guillaume Rouyre, MBA, MCP, MCTS | -
How to create events for a limited amount of months
Hi guys,
It happened to me more than once wanting to create an event that would repeat every month for 5 months ( example ) and having to create an individual event for every single month since there is now way to limited the amount of months a event can occur.
Is there a way to limit the amount of months of an event?
Thanks in advance for your help.Hello Pasapula
When you are in the View Cluster maintenance dialog (SE54) click on dialog "Events".
Below the field for the view cluster you have an additional field <b>FORM routines main program</b>. There you have to add the main program containing the FORM routines called by the VC events.
For example: I had defined a normal report containing an include with all the FORM routines. The report contains only the following lines of coding:
report zus_0120_u1.
* Common Data und access routines for user exits in VC maintenance
include LSVCMCOD.
include zus_0120_f1. "FORM routines for VC events
Now in the "Events" dialog of the view cluster maintenance you assign your FORM routines to the events.
Regards
Uwe -
Want to Create View as per Condition Fires After Parameter Form.
Hi ..
I want to create a report from a view,and that view would create after parameter form of that
report.
Example..
I want to select max(sal) of each Dept.where employee hired between 1-jan-2007 and 31-jul-2007'
I want when i Passes dates in Parameter FOrm
a view i.e select empno,deptno,sal, from emp created.
that means that view contains only data about that certain period
SO in Report Query i can write
select deptno,max(sal) from vw_employee
group by deptno.
This is just an example....my real problem is very hard and only can be done by doing create a view as per given dates in Report Parameter Form.
Waiting for Reply
Regards
Danish HayderWrong ideea.
You should have the parameters in the report's query:
select empno,deptno,sal, from emp where hired between :p_start_date and :p_end_date
Why do you want to create a view in the report, seeing that it's best to use parameters.
Moreover, think that the oracle user running the report would have to have the priviledges to create views, which may not be good security policy.
Still, if you insist on creating the view when running the report, then you'd better create the view from a stored procedure, that would receive as parameter the SQL select for creating the view.
So, you'd have the stored procedure:
proc_view(p_select in varchar2, p_view_name in varchar2) is
begin
execute immediate 'create or replace view '||p)view_name||' as '||p_select;
end;
You then would compose the select in the afterpform trigger and call the proc_view procedure.
Note that I did not allow proc_view to execute immediate any SQL one would pass, for that would be really dangerous. What if one would pass to the procedure executing dynamic SQL the following: 'drop table my_table cascade constraints'? -
Create a field routine to calculate the number of days per month
Hi Experts,
I need to create a field routine to count the number of days per month based on 0CALMONTH. Could you give me some inputs on how to do it?
Thanks!Hi,
Create InfoObejct and then insert it in InfoSource/InfoCube/DSO then write simp,e code for that based on your 0CALMONTH values.
You just copy and pas this in SE38 and see the result and implement for your requirements.
REPORT ztest1.
Data: zsydt type sy-datum,
zd(2) type n,
zm(2) type n,
zy(4) type n,
zcmnth TYPE /bi0/oicalmonth,
znds TYPE /osp/dt_day.
zsydt = sy-datum.
zd = '01'.
zm = zsydt+4(2).
zy = zsydt+0(4).
CONCATENATE zy zm zd INTO zsydt.
CALL FUNCTION '/OSP/GET_DAYS_IN_MONTH'
EXPORTING
iv_date = zsydt
IMPORTING
ev_days = znds. "No.of days in month.
write:/ zd.
write:/ zm.
write:/ zy.
write:/ zsydt.
write:/ znds.
Thanks
Reddy -
HT1904 how can i restrict the amount of purchases per month
how do i restrict the dollar amount of purchases per month?
Best method: Remove your credit card information from the AppleID account in iTunes or App Store, Buy giftcards and redeem them.
Or, you could use the PayPal option, and just transfer the allowance over.
HTH
Maybe you are looking for
-
How to create a GIF from inside an SWF?
I have a Flash application that allows users to arrange images, in the form of imported SWF MovieClips, into a scene of their choosing. I would like to save these custom scenes into static GIF files on the webserver. I'm not sure if this is possible
-
Why can't i see Iphoto Library as normal folders in finder as Microsoft Windows?
I've been having troubles with this for a long time. In Microsoft Windows, you don't have any original program as Iphoto, so you have all your transfered photos in folders on "my computer". In Mac, however, you have Iphoto, and every time you sync yo
-
After downloading iOS 8.1.3, I lost the use of messaging, face time and shortly there after my e-mail. I changed and reset everything I could on my I-Pad... same result. It can't be my router or my provider, for my I-Pod touch works fine. Any suggest
-
Wrong file blocking a queue in JMS adapter
Hi there, I've this scenario with a JMS sender which puts an EDI file into a queue. But when this file has any error, we get an error in communication channel monitoring. The error is not important, the problem we have is that, whenever it happens,
-
When I am saving a new contact and I try put the name or other item it goes to next item without I tap it or tap enter, sometimes I tap name and goes to last name at same time, some times I press space and goes to next item (last name if I am in name