Allocation - distributing into 12 month
We want to spread the amounts in accounts in P&L on all months of the year in 2 ways: Equally (1) and according to a driver (3).
Equally works fine, according to account DRIVER does not:
*SELECT(%BYEAR%,"[YEAR]",VERSION,"[ID]='BUDGET'")
*XDIM_MEMBERSET PACCOUNT = BAS(ORG_PL)
*XDIM_MEMBERSET TIME = BAS(%BYEAR%.TOTAL)
*WHEN PACCOUNT.PERIODIC
*IS "1"
*RUNALLOCATION
*FACTOR = 1/12
*DIM PACCOUNT WHAT=[PERIODIC]= "1"; WHERE=<<<
*DIM TIME WHAT=%BYEAR%.12; WHERE=BAS(%BYEAR%.TOTAL)
*ENDALLOCATION
*ENDWHEN
*WHEN PACCOUNT.PERIODIC
*IS "3"
*RUNALLOCATION
*FACTOR = USING/TOTAL
*DIM PACCOUNT WHAT=[PERIODIC]="3"; WHERE=<<<; USING=DRIVER; TOTAL=<<<
*DIM TIME WHAT=%BYEAR%.12; WHERE= BAS(%BYEAR%.TOTAL); USING= BAS(%BYEAR%.TOTAL); TOTAL=<<<
*ENDALLOCATION
*ENDWHEN
Instead of taking the amount in the individual account with property Periodic = 3, it sums up the amounts of all accounts with the Periodic = 3, allocates with the driver and places the calculated amount per month in all accounts with Periodic = 3 u2013 even those accounts having an amount of 0 to distribute.
When changing WHAT=[PERIODIC]= "3" with the single account, it works fine.
Hi Anne,
You can significantly simplify your script.
First of all, you don't need WHEN/ENDWHEN since you have DIM on PACCOUNT. RUNALLOCATION will select data only from records restricted to that set of members. So, you can safely remove both WHEN/ENDWHEN and check that you have same results.
Now, since you have WHAT, WHERE, USING and TOTAL referring to same set in PACCOUNT you can define same set in XDIM_MEMBERSET and remove it from under RUNALLOCATION.
Different results between equal distribution and proportional are not because proportion is different, but I'd think that you have only 1 account with PACCOUNT.PERIODIC =1. This is how RUNALLOCATION works in NW: it accumulates amounts from all records defined in all WHATs and that distributes them. If you want to distribute each account individually you'd have to put RUNALLOCATION inside a FOR/NEXT loop on accounts.
Regards,
Gersh
Similar Messages
-
Planned depreciation not distributed in each month
Hello,
I noticed that for some assets, in AW01N the amount of planned depreciation is not distributed for each month.
For example:
The Planned Depreciation for 2011 is 250000. And the system shows for period 1 (january) 250000 and for all the other period, system shows 0 !
For other assets it works correctly
Any idea ?
ThanksHi,
Base method : 0007 - Ordinary: percentage from life (after end of life)
Declining-Balance Method: 001 - 0.00x / 0.0000% / 0.0000%
Period Control Method : 002 - 01/01/01/01
Multilevel Method: 008 - 0.0000%
I checked also the asset history and for 2010 was well distributed but i do not find any accounting document related to this asset in any fiscal year ! -
Inverse of distribute into layers
hi everybody.i am trying to edit a flash template with flash
cs4.the problem is that there are some pictures in there that are
hidden ( dont ask how is that possible becoz i dont know). to see
this pictures i have to use distribute into layers. as i want to
change this photos the problem is that after i change them i dont
know how to do the invers of distribute into layers.... and as a
result the template doesent work as it has to . do u have any idea
how to solve this problem????what doesn't work after you distribute to layers?
-
How do i parse a date binding into day month year
<c:set var="test" scope="page" value="${bindings.StartDate1}" />
how do i pars off individual day month and year values so i can load them
into text boxes?use calendar insteed of date...
the difference is easy to find out:
long diffInMillis = calendar1.getTimeInMillis() - calendar2.getTimeInMillis()
hope this helps..
visit >> http://www.menzsoft.ch <<
rgds
chris -
How to break range of dates into different months in mm/yyyy format
See the following eg:
MaterialNo Validfrom ValidTo RecordNo Value
A100 01.01.2007 13.05.2007 1000 1150/-
14.05.2007 24.08.2007 1001 1550/-
Now I want to break these dates into mm/yyyy format based on a condition. If the date(day) 15th lies in the range of dates
then it should pick that Value.
The output should be in this format.
MaterialNo Validfrom ValidTo Date RecordNo Value
A100 01.01.2007 13.05.2007 012007 1000 1150/-
022007 1000 1150/-
032007 1000 1150/-
042007 1000 1150/-
A100 14.05.2007 24.08.2007 052007 1001 1550/-
062007 1001 1550/-
072007 1001 1550/-
082007 1001 1550/-Hi Shiva,
In your Report Program, you can define the field of type sy-datum. And then fill the fields with the date. And then you can extract the rest of it manually by this small and simple lines of code. Once you have the date extracting logic then you can output the date in any manner according to your wish.
data : lv_date TYPE sy-datum.
data : lv_month TYPE c LENGTH 2.
data : lv_year TYPE c LENGTH 4.
data : lv_month_year TYPE c LENGTH 6.
lv_date = sy-datum.
lv_month = lv_date+4(2).
lv_year = lv_date+0(4).
CONCATENATE lv_month lv_year INTO lv_month_year.
Hope this helps.
Thanks,
Samantak. -
Converting a number into years, months and days...
Hi everyone,
I have a number say 399.
I need to know how many years and months constitute that number.
For eg 399 would be 1yr, 1 month and 4 days.
So I need the answer as 1 yr and 1 month.
Is there any inbuilt funtion to say this?
Thanks
Kishorefollowing a quick (and dirty) solution.
What about the leap years?
define v_startdate='01-01-2003'
define v_juliandays=399
SELECT
TRUNC ( MONTHS_BETWEEN ( TO_DATE('&&v_startdate','MM-DD-YYYY') + &&v_juliandays,
TO_DATE('&&v_startdate','MM-DD-YYYY')
)/12) "Years",
TRUNC ( MOD ( MONTHS_BETWEEN ( TO_DATE('&&v_startdate','MM-DD-YYYY') + &&v_juliandays,
TO_DATE('&&v_startdate','MM-DD-YYYY')
) ,12)) "Months"
FROM DUAL; -
Can I consolidate my individual purchases into one monthly payment?
I recently purchased a monthly payment for Photoshop and Lightroom, then saw that this was affordable so I purchased after effects on a monthly as well, now I wish to purchase adobe premiere pro on a monthly bases as well, then I'd have three separate payments. Is it possible to consolidate all of them so I got just one monthly payment?
Hi Christopher,
We would like to inform you that, if you have three different subscriptions then, they would be billed individually.
However, if you switch to Creative Cloud Complete subscription ,then you can have just one monthly bill and can use all the Creative Cloud software.
Kindly check the plans: Creative Cloud pricing and membership plans | Adobe Creative Cloud
Thanks,
Atul Saini -
6 days into 1st month and I am at 50% data use?
I just got my first smart phone and come to find out that I have used 50% of my data plan in the first 6 days. What am I doing wrong? I have the 4g plan and am at 2.1G.
Hi Bob_in_Redding,
I can certainly relate to your data usage concerns as my son had his 50% data usage notification within a week of the start of our billing cycle (this was about 3 months ago when he upgraded to an iPhone 5). Then we realized that he had WiFi disabled and he was always using cellular data. We enabled WiFi and he now connects to any open network when available and his data usage has stayed well below 2GB each month. Additionally he only allows applications to update when a WiFi connection is available. Try these simple tips and you will see the big difference in data usage. Using WiFi as much as possible will save you big on your data usage. Have a great evening!
AntonioC_VZWSupport
Follow us on Twitter at www.twitter.com/VZWSupport -
HI All,
The scenario is such that I have two set of data forms.
One is for monthly level budgeting and the other set of forms is for Yearly budgeting data.
Now, when I punch the data into the Yearly values, it has to evenly distributed into the monthly forms.
Ex: When I punch 120 in FY11, then it has to be divided by 12 and set 10 for Jan, 10 for Feb and so on and so forth.
Thanks AllThis is the default behaviour of Hyperion Planning distribution. You should enable distribution in the form design and place the period dimension as Ilevel0descendants(YearTotal) to column. If you have already set even distribution (not 4-4-5 or 4-5-4) then the data you input on YearTotal gets distributed to months evenly. Therefore you wouldn't need to write a business rule for this.
Cheers,
Alp -
Generic FG/class for spreading non-monthly qty's into monthly buckets
In custom long-term planning reports, we may have to use data like labor hours that are stored in non-monthly buckets, e.g. buckets like
12/15/2010 u2013 1/14/2011 100 hours
1/15/2011 u2013 2/14/2011 80 hours
etc.
But in order to make our long-term reports useful for cash-flow estimation/planning, we may have to reslot such non-monthly data into fiscal monthly buckets like:
Dec 2010
Jan 2011
Feb 2011
In the above simple example, the translation from non-monthly data to monthly data is simple:
half of the hours from the 12/15/2010-1/14/2011 non-monthly bucket go into the Dec 2010 monthly bucket and
half of the hours from the 12/15/2010-1/14/2001 non-monthly bucket go into the Jan 2011 monthly bucket.
etc.
And generalizing from this simple example, you can see that there will always be some ratio in which the non-monthly data can be split into monthly data. (For example, the ratio between a non-monthly bucket and two successive monthly buckets might be 3:1 if 3 weeks of the non-monthly bucket fall into the first monthly bucket and the fourth week of the non-monthly bucket falls into the second monthly bucket.
These considerations suggest that SAP developers and customers might benefit from a generic FG or class that:
accepted a set of non-monthly buckets plus a set of quantities
figured out the monthly buckets spanning this set of non-monthly buckets
spread the non-monthly data into the monthly buckets correctly (according to the simple u201Cratiou201D idea outlined above.)
This generic FG or class would do (1-3) regardless of the specific nature of the quantities involved ... because who cares what they are. Also, one could imagine a version of this class or FG where the output buckets might not be monthly, but rather a different set of non-monthly buckets than the input non-monthly buckets.
So, my four questions are:
Does anyone know of an SAP-delivered class or FG that does (1-3) (Iu2019m thinking SCM/APO might well have one u2026)
If not, does anyone have anything approaching this class of FG that they would care to share with me (via email, of course)?
If not, does any genius out there have the time to write such a class and put it in the SDN code base?
Do you all agree that the safest way to get the ratio is to take everything to the u201Clowest common denominatoru201D of days and then figure the ratio accordingly?
Thanks for considering this matter.
djhAs you can see from below, the code markers aren't working in Mozilla either ....oh well
FUNCTION ZCK_TRAN_TO_MONTHS.
*"*"Local Interface:
*" IMPORTING
*" REFERENCE(START_DATE) TYPE FSTAD
*" REFERENCE(END_DATE) TYPE FENDD
*" REFERENCE(AMOUNT) TYPE ZZVGWRT
*" TABLES
*" MONTH_TABLE_FOR_RUN TYPE ZMMY_MSTR_DATA_EST_YRMO
*" CHANGING
*" REFERENCE(MONTH_BUCKETS) TYPE ZMMS_MSTR_DATA_EST_MOBUCKETS
FIELD-SYMBOLS:
<fs_mobu> TYPE zmms_mstr_data_est_mobuckets,
<fs_mota> TYPE zmms_mstr_data_est_yrmo,
<fs_buck> TYPE zzvgwrt. "bucket of month_buckets
DATA:
lv_month(2) TYPE n,
lv_year(4) TYPE n,
lv_m_days TYPE i,
lv_total_days TYPE i,
lv_last_day LIKE sy-datum,
lv_out_flag TYPE c,
ls_month_buckets TYPE zmms_mstr_data_est_mobuckets,
lv_yrmo TYPE zzbkper,
lv_index1 LIKE sy-tabix,
lv_index2 LIKE sy-tabix,
lt_month_table TYPE zmmy_mstr_data_est_yrmo.
lt_month_table[] = month_table_for_run[].
lv_total_days = end_date - start_date.
lv_month = start_date+4(2).
lv_year = start_date(4).
CLEAR: lv_out_flag,
gt_mo_spread,
ls_month_buckets.
DO.
IF lv_month = start_date+4(2) AND lv_year = start_date(4).
CALL FUNCTION 'MM_LAST_DAY_OF_MONTHS'
EXPORTING
day_in = start_date
IMPORTING
last_day_of_month = lv_last_day
EXCEPTIONS
day_in_no_date = 1
OTHERS = 2.
lv_m_days = lv_last_day - start_date.
ELSEIF lv_month = end_date+4(2) AND lv_year = end_date(4).
lv_m_days = end_date+6.
MOVE 'X' TO lv_out_flag.
ELSE.
CONCATENATE lv_year lv_month '01' INTO lv_last_day.
CALL FUNCTION 'MM_LAST_DAY_OF_MONTHS'
EXPORTING
day_in = start_date
IMPORTING
last_day_of_month = lv_last_day
EXCEPTIONS
day_in_no_date = 1
OTHERS = 2.
lv_m_days = lv_last_day+6.
ENDIF.
APPEND INITIAL LINE TO gt_mo_spread ASSIGNING <fs_mosp>.
<fs_mosp>-year = lv_year.
<fs_mosp>-month = lv_month.
<fs_mosp>-amount = amount / lv_total_days * lv_m_days.
IF lv_month EQ 12.
ADD 1 TO lv_year.
CLEAR lv_month.
ENDIF.
ADD 1 TO lv_month.
IF lv_out_flag EQ 'X'.
EXIT.
ENDIF.
ENDDO.
* now:
* loop thru gt_mo_spread
* pick up month_bucket index from month_table_for_run
* add amount from gt_mo_spread row to appropriate month_bucket
ASSIGN ls_month_buckets TO <fs_mobu>.
LOOP AT gt_mo_spread ASSIGNING <fs_mosp>.
lv_index1 = sy-tabix. "just in case we need it
CONCATENATE <fs_mosp>-year
<fs_mosp>-month
INTO lv_yrmo.
READ TABLE lt_month_table ASSIGNING <fs_mota>
WITH KEY
zzyrmo = lv_yrmo.
lv_index2 = sy-tabix.
ASSIGN COMPONENT lv_index2 OF STRUCTURE <fs_mobu> TO <fs_buck>.
<fs_buck> = <fs_buck> + <fs_mosp>-amount.
ENDLOOP.
month_buckets = ls_month_buckets.
ENDFUNCTION.
FORM build_bucketed_detail.
FIELD-SYMBOLS:
<fs_mobu> TYPE zmms_mstr_data_est_mobuckets,
<fs_comp1> TYPE zzvgwrt, "bucket in ls_mo_buckets/<fs_mobu>
<fs_comp2> TYPE zzvgwrt,
<fs_mota> TYPE zmms_mstr_data_est_yrmo,
<fs_buck> TYPE zzvgwrt. "bucket of month_buckets
DATA:
lv_matnr_arbid_cur(26) TYPE c,
lv_matnr_arbid_lag(26) TYPE c,
lv_dtlh_index LIKE sy-tabix,
ls_month_buckets TYPE zmms_mstr_data_est_mobuckets,
lv_nummo TYPE i,
lv_yrmo TYPE zzbkper,
lv_yindx TYPE i,
lv_bindx1 LIKE sy-tabix, "index on ls_month_buckets cmpnts
lv_bindx2 LIKE sy-tabix. "index on <fs_dtlhmo> buckets
"note: must be lv_bindx1 + 5.
lv_nummo = LINES( gt_mo_tbl ).
READ TABLE gt_dtlh_keys INDEX 1 ASSIGNING <fs_dtlh>.
CONCATENATE <fs_dtlh>-matnr
<fs_dtlh>-arbid
INTO lv_matnr_arbid_lag.
lv_dtlh_index = 1.
APPEND INITIAL LINE TO gt_dtlhmo_keys ASSIGNING <fs_dtlhmo>.
<fs_dtlhmo>-matnr = <fs_dtlh>-matnr.
<fs_dtlhmo>-arbid = <fs_dtlh>-arbid.
<fs_dtlhmo>-arbpl = <fs_dtlh>-arbpl.
<fs_dtlhmo>-kostl = <fs_dtlh>-kostl.
ASSIGN ls_month_buckets TO <fs_mobu>.
DO.
READ TABLE gt_dtlh_keys INDEX lv_dtlh_index ASSIGNING <fs_dtlh>.
IF sy-subrc <> 0.
EXIT.
ENDIF.
CONCATENATE <fs_dtlh>-matnr
<fs_dtlh>-arbid
INTO lv_matnr_arbid_cur.
IF lv_matnr_arbid_lag <> lv_matnr_arbid_cur.
CLEAR <fs_dtlhmo>.
APPEND INITIAL LINE TO gt_dtlhmo_keys ASSIGNING <fs_dtlhmo>.
<fs_dtlhmo>-matnr = <fs_dtlh>-matnr.
<fs_dtlhmo>-arbid = <fs_dtlh>-arbid.
<fs_dtlhmo>-arbpl = <fs_dtlh>-arbpl.
<fs_dtlhmo>-kostl = <fs_dtlh>-kostl.
CLEAR ls_month_buckets.
CLEAR <fs_mobu>.
ENDIF.
<fs_dtlhmo>-tot_vgw01_03 = <fs_dtlh>-vgw01 +
<fs_dtlh>-vgw02 +
<fs_dtlh>-vgw03.
IF <fs_dtlh>-fstad+4(02) = <fs_dtlh>-fendd+4(02).
lv_yrmo = <fs_dtlh>-fstad+0(6).
READ TABLE gt_mo_tbl ASSIGNING <fs_mota>
WITH KEY
zzyrmo = lv_yrmo.
lv_yindx = sy-tabix. "month number
lv_yindx = lv_yindx + 5. "to account for leading fields
ASSIGN COMPONENT lv_yindx
OF STRUCTURE <fs_dtlhmo>
TO <fs_buck>.
<fs_buck> = <fs_buck> + <fs_dtlh>-tot_vgw01_03.
ELSE.
CALL FUNCTION 'ZCK_TRAN_TO_MONTHS'
EXPORTING
START_DATE = <fs_dtlh>-fstad
END_DATE = <fs_dtlh>-fendd
AMOUNT = <fs_dtlhmo>-tot_vgw01_03
TABLES
MONTH_TABLE_FOR_RUN = gt_mo_tbl
CHANGING
MONTH_BUCKETS = ls_month_buckets.
lv_bindx1 = 1.
DO.
IF lv_bindx1 > lv_nummo.
EXIT.
ENDIF.
lv_bindx2 = lv_bindx1 + 5.
ASSIGN COMPONENT lv_bindx1 OF STRUCTURE <fs_mobu> TO <fs_comp1>.
ASSIGN COMPONENT lv_bindx2 OF STRUCTURE <fs_dtlhmo> TO <fs_comp2>.
<fs_comp2> = <fs_comp2> + <fs_comp1>.
lv_bindx1 = lv_bindx1 + 1.
ENDDO.
ENDIF.
lv_dtlh_index = lv_dtlh_index + 1.
ENDDO.
ENDFORM.
Edited by: David Halitsky on Sep 9, 2010 9:42 PM -
Cost Center -- Automatic Cost Allocation
Hi at all,
1. We receive a monthly invoice for electricity etc.
2. We put the hole amount in one Cost Center.
3. At the end we allocate the amount manually to each relevant Cost Center/Department.
From A $100.000
To S $50.000
To T $40.000
To Z $10.000
To ...
Is there a way to automate this?
It can be really annoying.
MarkusHi Markus,
If i understand you correctly,you will book energy cost to one cost center and end of the month you will allocate to other cost centers.
two ways you can allocate costs in.
1. Assessment
2. Distribution
Assessment:
Assessment is an activity that you perform periodically, during the period-end closing in Overhead Cost Controlling (CO-OM), in which primary and secondary overhead costs are assessed from one or more sender objects to one or more receiver objects.
Assessment means that the sending cost center is credited and the receiving cost center is charged under a freely definable secondary cost element. The original cost elements that were charged by the sender cost center are lost, and are converted to one or more assessment cost elements (secondary cost elements).
Assessment groups together the posted primary and secondary costs and allocates them to the receiving cost center(s) in an assessment cost element. The cost centers for assessment are the quality lab, IT, cafeteria, housekeeping and plant security.
For example, you could assess the cost from the Reception cost center to the other cost centers based on the headcount managed in those cost centers.
T.code : KSU1,KSU2 and KSU3,
To Execute :KSU5
Distribution:
Distribution is an activity that you perform periodically, during the period-end closing in Overhead Cost Controlling (CO-OM), in which primary overhead costs are distributed from one or more sender objects to one or more receiver objects.
Many documents in Financial Accounting involve overhead costs. A clear allocation to one or more cost centers is not possible, or only with a major effort. You can use the allocation cost centers and internal orders as auxiliary constructs in such cases. During distribution, these costs are allocated (distributed) from their allocation cost centers to the actual receivers according to freely definable rules. The sender cost center is credited, and the receiving cost center charged, under the original cost element. In contrast to periodic reposting, however, the accounting information is lost in the process.
T.code : KSV1,KSV2 and KSV3
To Execute :KSV5
if you want to allocate costs by head count or fixed percentage etc.when your creating cycles you can choose these options.
Thanks,
Rau -
CPTD - Actual Template Allocation on Process Orders - V.Urgent
Hi,
We are doing period closing for June'07.
We are using Activity Based Costing templates for Overhead allocation.
While executing T-Code CPTD (Collective processing) for Actual Template Allocation for Allocating Overheads for the month of June, the system is allocating
Overheads on all Process Orders confirmed till today i.e.it is wrongly
allocating Overheads for June, on process orders on which there has been
no production confirmed in June, but the Production was confirmed only
in July.
We expected the system to allocate Overheads only on Process Orders on
which the Production was confirmed in June,07.
Points will be awarded for providing solution.
Regards,Hi
I am using environment 9 yes.
My formula is very simple:
On Object I have:
SenderCostCenter = '130570' AND
SenderActivityType = 'LABORA'
And then I have simply put "1" in Plan Quantity and Actual Quantity.
So what it does is it allocates the unit cost of the combination of cost center 130570 and act. type LABORA one time to each material/order no matter lot size.
Should I perhaps have put "1" into the Plan Fix and Actual Fix instead?
Thanks -
Month-to-Month Pricing Question
I'm looking at rolling over into paying month-to-month when my contract is up mid-January - at least as one of my options. I've been trying to price all the options to figure out what would work best, but have been unable to find information about the pricing for month-to-month. I've got three lines on my current family plan - two use voice minutes for the most part, while the third primarily uses text and data, although not heavily (<500 texts and <150 mb data).
Is there a page on VerizonWireless.com that I have missed with this information?
If not (or if you just happen to know off the top of your head), what is the monthly pricing per line for voice, text, and data?
Thank you!Monthly pricing remains the same as your contract prices . . . you continue to pay the bill as you have been, but now you are no longer "under contract" and can cancel service without an ETF. It will continue indefinitely until you terminate service, or upgrade phones at a discount.
if you choose to upgrade at discounted pricing, you will sign another contract -
Based on what you presented, a Family Talk plan for 3 lines (you didn't say how many minutes, so I'll go with 700 as an example) would be $79.98, plus text ($10 for 500 and unlimited M2M) and data ($15 for 150 MB) on the third line would be $105 plus taxes per month. Is that comparable to what you are paying now? -
1. How to copy a page monthly? 2. How to print a report page?
Hi Forum,
Thanks for the various contributions that are helping my experience with oracle.These are my two current problems:
1. Assuming I have built a page of payroll for 40 workers that repeats monthly. Is there a way of copying the previous page for last month into this month? Or, do I have to build a new page on the same table and update it?
2. Please, what procedure should I follow to print a form or a report from the application page?
Sincerely,
Godis-TeiGodis-Tei wrote:
Hi Forum,
Thanks for the various contributions that are helping my experience with oracle.These are my two current problems:
1. Assuming I have built a page of payroll for 40 workers that repeats monthly. Is there a way of copying the previous page for last month into this month? Or, do I have to build a new page on the same table and update it?
2. Please, what procedure should I follow to print a form or a report from the application page?Please ask only ONE question per thread. These issues do not appear to be related in any way, so so the thread is likely to end up an unmanageable, confusing mess.
Close this thread and open 2 new ones, one for each question. -
Studio : Chart Based on day/month/year
In Studio , There is a requirement for us to display chart based on day/month/year .
Since Date attribute is not displayed as a Dimension in the chart configuration list , I have divided date attribute into day/month/year attributes and based on that I generated a sample chart
But now I'm facing with a problem
Suppose there are records for only July and Sep then the chart shows up for July and Sep , It doesn't show up for august.
I agree that there are no records for august in my data domain that is the reason august is not displayed in the chart . But as per our requirement we should display august as well with zero count.
I'm curious to know if there is any way to do this .The idea behind the calendar record type is it is a secondary, new record type you're introducing that compliments your "sales" record type. The RECORDs you provided would be your "sales" record type, not your "calendar" record type. To continue with your example, your "sales" records would look like what you provided:
=============== RECORD ==================
Id: 1
sales_amount : 1000
Month: Oct
RecordType: sales
date: 2012-10-01T00:00:00.000Z
day: 01
year: 2012
=============== RECORD ==================
Id: 5
sales_amount: 1000
Month: Dec
RecordType: sales
date: 2012-12-01T00:00:00.000Z
day: 01
year: 2012
==========================================
And your "calendar" record type would be loaded subsequently. I usually provide one Endeca record for every day for this record type:
=============== RECORD ==================
Id: 1
Month: Oct
RecordType: calendar
date: 2012-10-01T00:00:00.000Z
day: 01
year: 2012
=============== RECORD ==================
Id: 2
Month: Oct
RecordType: calendar
date: 2012-10-02T00:00:00.000Z
day: 02
year: 2012
==========================================
(and so on, one for each day up to today...yawn)....
=============== RECORD ==================
Id: 790
Month: July
RecordType: calendar
date: 2013-07-31T00:00:00.000Z
day: 31
year: 2013
==========================================
Thus, when you write an EQL statement like:
RETURN foo AS SELECT
SUM(sales_amount) AS "TotSales"
GROUP BY Month
You will get a Month bucket for every month, where the "calendar" record type will be sure to offer a month where sales don't offer it...aka. fill in any "holes".
HTH,
Dan
http://branchbird.com
Maybe you are looking for
-
HT204365 How do I print a list of books from my iBooks library?
Printing a list of books from iBooks
-
Hi, I have a report which will display the costing data. Now I have to sum on the Basis of Cost Centre and Profit Centre. I do not want the total. I want the line items to be summed on this 2 fields. How would I handle this in ALV Fieldcatalogue. Reg
-
How to use Group in Query Print Layout
Hi All, I have prepared a query for fetching all purchase details along with tax code, now I have ordered it on tax code and prepared a query Print Layout, Now within this Query Print Lay Out I want to group the tax code and want to add total of some
-
In the recently posted Illustrator CC video "Intro to the Touch Type Tool" he uses the default font Myriad Pro to type but it has a 3D effect and highlight lines already "built into" the font. And when he changes the font the effect are still there a
-
In iMovie 08 Projects, each clip has a yellow triangle showing and I cannot edit or play any of the clips. How do I revert to work with these clips.