Quarter level calculations
Hi allI'm writing the quarter level calculations but my reference period is the month. But I get no option of calculation at the district level.
Thankx in advance
Published by: user9174018 on March 11, 2010 02:02
If the calculation is made to specific accounts. You must make these account as dynamic calc and write calculation logic in the routine of sub sub dynamic(). The value will be automatically calculated at the district level. This is usually done to report accounts that can be rolled to the Parent period.
Varun
Tags: Business Intelligence
Similar Questions
-
high, medium, low level calculation reference
Hello
Someone know the equations for the calculation of the upper, middle, reference low voltage? I updated the reference voltage 10%, 50% and 90%. I don't know according to what the digitizer calculates level. For example 1, the Mid level is calculated as (IVG + Vbase) * 0.5. Wouldn't be (IVG-Vbase) * 0.5? The Hi and the weak reference calculations also do not add up. I was using a signal generator to generate the signals.
I'm using version 3.5 PXI-5224 and niScope.lib.
Example 1
Square 3 Mhz 3.3VPP wave
ch0 ch1
VPP Vpp = 4.575151 4.704506 =
IVG naked = 3.304177 = 3.304474
VBase Vbase =-0.618361 =-0.003679
VHIGH = 3.304177 VHIGH = 3.304474
VLOW VLOW =-0.001788 =-0.003679
VMax = 4.011691 VMax = 3.956790
VMin VMin =-0.618361 =-0.692815
LowRef = 0.327107 LowRef =-0.226078 VV
MidRef = 1.650249 MidRef = 1.343056 V V
HiRef = 2.973391 HiRef V = 2.912190 V
RiseTime = RiseTime 7.437264 = 141.967975
FallTime = FallTime 7.438606 = 9.800559Example 2
ch0 ch1
VPP Vpp = 4.580664 4.612737 =
IVG naked = 3.295510 = 3.311956
VBase Vbase =-0.016182 =-0.001876
VHIGH = 3.295510 VHIGH = 3.311956
VLOW VLOW =-0.016182 =-0.001876
VMax = 3.971204 VMax = 3.965059
VMin VMin =-0.615605 =-0.641533
LowRef = 0.327863 LowRef = 0.316632 V V
MidRef = 1.646817 MidRef = 1.647887 V V
HiRef = 2.965772 HiRef V = 2.979142 V
RiseTime = RiseTime 7.605729 = 7.745428
FallTime = FallTime 7.536156 = 7.708538Hi all
I think I messed the calcuation. The reference of the tensions are are correct. It's the (Vop + Vbase) / 2 for mid level REF. The Lo and hi are also correct.
-
Measures at different levels of concentration
I'm working on a cube. I have 6 dimensions and aggregations are supposed to do at different levels for me to get the correct results, but I'm unable to implement this. I I have a fact Table equipped with all measures, I need, including sales, quantity, amount Total savings, Total etc edits. The challenge is that these measures require complex calculations, so I have a level of data in the fact table, but I think that this is the origin of the problem. How can I build complex measures calculated in the Olap Cube using a sql statement. What are the functions I should use to do this.
The challenge is that, I've separated the totals of the details and I don't know of a way to get consistent results with 2 levels of granularity of diff
Thank youYou must come with some examples to get a better answer.
A few general points.
*(#1). * for calculated measures, look at the Expression of OLAP syntax which resembles the features of relational analytical ROLAP.
http://docs.Oracle.com/CD/E11882_01/OLAP.112/e23381/TOC.htmUse this syntax to create your measurements calculated (in minutes).
In the "Calculation Type", select "Syntax of Expression of OLAP", and in the Expression box, type the logic.
.
*(#2). * If for any reason, an Expression OLAP syntax cannot be used because of some complexity, then you can use old fashioned OLAP dml syntax.
http://docs.Oracle.com/CD/E11882_01/OLAP.112/e17122/dml_basics.htm
http://docs.Oracle.com/CD/E11882_01/OLAP.112/e17122/dml_functions_1.htm#BGEGGBAEIn the "Calculation Type", select "OLAP DML Expression" and in the OLAP DML type logic.
.
*(#3). * You can load the relational data into different levels of OLAP cube.
Facts on multiple levels of loading.
*(#4). * You can start the aggregation of the cube to a specific level in a dimension. It is very important, because the aggregation of the cube always go leaf-level and currently there is no way in AWM to set a higher standard as the starting point for the aggregation.
For example, let's say your time dimension a YEAR-> QTR-> MONTH-> DAY levels, and you want to leave aggregation of quarter level and not at the level of the DAY.You can do DBMS_CUBE. Order IMPORT_XML and provide the following syntax, so that the cube is always aggregated level quarter.
SUM WITH 'TIME' OF MEMBERS WHERE "TIME". LEVEL_NAME = "QUARTER."
.
.
Regardless of the level of complexity are your calculations, it can be done by means of (#1) ou (2).
Best is to use "syntax of Expression of OLAP.I mentioned (#3) and (4) just to make you aware of other available functions.
.
-
Satellite A200 - 1 M 8 - fickle volume level changes
HIII
Need help with Realtek HD audio manager _volume level_ littile controller
Toshiba Satellite A200 - 1 m 8 Winxp sp3... I'm not sure my version Manager realtek audio... but updated to the final version available
When I adjust the level of the volume, the volume correctly level changes in the integrated... but it is transformed into fickle on the first and the third quarter levels in the volume level of program realtek... which is annoying and may not work with...
I wonder if there is a way to solve this problem
Thank you...
In your case, I would check for an update from Toshiba Web site:
http://EU.computers.Toshiba-Europe.com-online decision-making supported Downloads & => Download driversAlso, check if you have all updates (patches) for Windows XP is installed.
-
Best way to track the time of calculation of planning
Hello
Our management has asked us to provide monthly reports of the time of calculations in our main application of planning.
We have identified one or two global level calculations we want to follow. We run these calcs about 6 times a day on average.
But it is almost impossible to sort through the massive application log (when presentations are completed) and filter it down (we tried, but newspaper is very difficult to work with).
Has anyone developed a simple method (automatic) for the monitoring of the amount of time it takes for a calculation specific to planning? We use calc Manager by the way to expand our rules and rulesets. Ideally, we could get some kind of automated report which showed us the cases when the specific rule / ruleset ran and the duration of each instance.
Thank you
MarkHi Mark,
If these are calc manager rule, you should have all the necessary details in the HSP_JOB_STATUS table. You may be able to get this information from a simple query on this table. However, this information is also available in your planning application via Tools-> "Work Console" option, you will not see the time of calculation. It shows only the start and end time.
Kind regards
Sunil
-
Possible to re - trigger a calculation of Application on demand?
APEX 4.2.5.00.08
I have a calculation of Application that sets the value of an element of Application using the current APP_USER as one of its required parameters. This calculation is triggered on the new Instance then; It is triggered when you load the login page. However, the login page, definition is bu, is responsible until the user is logged as long as Yes; APP_USER, at this stage is still set to "nobody".
I know that I can change the calculation to the fire for each page, but it's really unnecessary. I just want to fire, once, after a successful connection (which would then fix the APP_USER).
Is this possible? (From JavaScript or PL/SQL)
Thank you
-Joe
Hey Joe,
It's not really a work-around, is how to configure the item based on the connected user values.
Put common code in a package, call it from several locations within the APEX.
I didn't say the calculations were only for page elements, I said 'page level ' calculations. Calculate the elements of page/app at some point during each page is rendered. These calculations can be defined to calculate only for some pages, events, queries etc.
App calculations allow these calculations to occur at this frequency.
If you want something calculated once, you add a declarative condition that tests for the null value. But if it is only calculated once, when should it be calculated? If not required for the login page, tell where page not = 101, but I wonder once again the timing - is it a calculation application?
APEX_PUBLIC_USER isn't really a problem, it is a catalyst. The schema of your analysis is the gateway to the database, make sure that it is thin it must be. Not all applications require the connection until something happens.
Scott
-
Add the quarter to the time dimension
Hello
We have created a time dimension using the owb wizzard, but did not include the quarter level. Is it possible to add it to the dimension later without deleting a re-creation of the entire dimension?
A new time dimension would probably be corrupt all the cubes (data and metadata), so I would avoid that.
Any ideas?
See you soon,.
KnutHi Knut
Yep, should be possible.
Change the dimension and select the quarter level in the levels Panel, and then click quarter in hierarchies pane to add it to the hierarchy. You can then delete the link and autobind on details for the physical links to the underlying table. On the hierarchies pane, there is a button "Create map" that will regenerate the mapping to load the time dimension.
See you soon
David -
SSO and calculations of the Application
Having a problem with the application and SSO level calculations. Here's what's happening. I have an application with some elements of application level which must be calculated (say an identification number of a certain type) in order for my projects of security clearance at the level of the work page. I'm having a severe setback when people try to access a specific page in the application vs. the public home page. He gets permission controls appear to be pulled before the essential application-level calculations to do their job. I have check and the fields are null session (yet they inhabit very well when I leave a public page). I tried before and after the page header, as well as the new session and nothing works, fields always end null and the person who made it gets an error message mean denying them access. Can anyone offer ideas here? Perhaps a thought for the next version of the APEX, but add a point of transformation for essential operations that says "Prior authorization checks" that would cause them must be assessed and ran before trying to check your access to pages or the application level.
Thank you
David PulliamOne option that might work is to initialize the necessary application objects for authorizations in a process of "Message authentication" instead of a calculation of "new instance".
CITY
-
How to use BETWEEN function in calculation discoverer report?
Hello
I need discoverer report to:
All part_numbers between SDK00 and SDK99 should have calculation (Pay_amount + 100)
SQL for this is: PART_NUM between 'SDK00' and 'SDK99 '.
* How can I get the function BETWEEN in Discoverer report level calculation in Discoverer Desktop or discoverer more? *
Thanks in advance,
Gayatri
Published by: cool gayatri on June 24, 2009 08:32Hi Gayatri
Did you not see my answer for the CASE because the CASE offer the use of the clause BETWEEN, but DECODE indeed does not work. Let me give you a quick summary of DECODE.
In its simplest form, it takes 4 values and looks like this: DECODE (A, B, C, D)
This basically means, IF A = B THEN C D OTHER
The trick to solve ENTERS a DECODING is to work on algoriths where A = B. Because we do not know how values are from 00 to 99, although I could tell there were 100 we would of course 100 pieces in DECODING, but that would be awful. How about if we look at it another way and say this:
IF PART_NUMBER< 'sdk00'="" then="">
ELSE IF PART_NUMBER > 'SDK99' DO pay_AMOUNT
ANOTHER pay_amount + 100This statement was only 2 hard coded values, but how do you DECODE work with less of? Easy, we use the function LESS. The LEAST function takes 2 values and returns the one with the lowest value. So I use LESS (PART_NUMBER, 'SDK00'), then whenever the PART_NUMBER is lower than SDK00 it will be true. A similar situation exists for the inverse function more GRAND. Put it all together, then you can do this:
DECODE (PART_NUMBER, BIGGER (PART_NUMBER, 'SDK00'), DECODE (PART_NUMBER, LESS (PART_NUMBER, 'SDK99'), PAY_AMOUNT * 100, PAY_AMOUNT), PAY_AMOUNT)
In English it can be read as follows:
IF the PART_NUMBER is greater than or equal to SDK00 and the PART_NUMBER is less than or equal to SDK99 THEN PAY_AMOUNT x 100 ELSE 0
Best wishes
Michael -
How can I get music on the shuffle to be more constant volume?
I use the shuffle in our truck through an auxiliary Jack. When I mixed songs, the volume is not constant. Some are too soft hear and others are fine and some too strong. It is not as bad if I use a headset, but it still seems a difference from one album to another.
There is a feature called Sound Check. First, enable it in the reading of the iTunes preferences pane. This makes all songs play at the same level calculated, during playback of songs in iTunes.
If your iPod shuffle 3rd generation or current 4th gen, it also has a Sound Check parameter, which must be enabled. Select the shuffle in iTunes (click on its button on the device on the horizontal bar) to show his summary of the settings screen in the iTunes window. There is a checkbox for Sound Check, under Options. Check mark and click apply.
-
Regexp_substr | starting the regex need help
Hello
I need where to go a single string that contains the full qualified table name [schemaname.tablename] I need to break schemaname then tablename
Schema_name Table-name SCHEMA1 TABLE1: SCHEMA2 TABLE2 SCHEMA3 TABLE 3 SCHEMA4 TABLE 4 : SCHEMA_NAME = ' SCHEMA1. TABLE1, SCHEMA2. TABLE 2, SCHEMA3. TABLE3, SCHEMA4. TABLE 4 '
So far I've written it, Yes, there is much to learn through.
Please comment to let me know what I missed and how to overcome these errors
SELECT RTRIM (REGEXP_SUBSTR (: SCHEMA_NAME, '\w+\.', 1, LEVEL),'.) ') AS SCHEMA_NAME
, RTRIM (REGEXP_SUBSTR (: SCHEMA_NAME, '\w+\,+', 1, LEVEL), ',') AS TABLE_NAME
OF THE DOUBLE
CONNECT REGEXP_SUBSTR (: SCHEMA_NAME, ' [^,] +', 1, LEVEL) IS NOT NULL
SELECT REGEXP_SUBSTR (: SCHEMA_NAME, '\w+', 1, LEVEL * 2-1) AS SCHEMA_NAME
, REGEXP_SUBSTR (: SCHEMA_NAME, '\w+', 1, LEVEL * 2) AS TABLE_NAME
OF THE DOUBLE
CONNECT REGEXP_SUBSTR (: SCHEMA_NAME, ' [^,] +', 1, LEVEL) IS NOT NULL
You were close. Just take the fitting level calculation
-
Return specific text based on a percentage in another text box
Hi all
OK, got a head scratcher, and I'm sure it's easy for any experienced writer. Just not so easy for someone just to get into it.
I have a form that count percentage in the text box. Based on the percentage of return in this box, that I would like to return a permission level in an adjacent area. The table below gives you an idea on what I'm after.
Percentage Approval level 0-30% TEXT1 31 50% TEXT2 51 60% TEXT3 61 80% TEXT4 81 100% TEXT5 Any help would be appreciated.
Thanks in advance!
Okay, so that the custom field approval level calculation script you can use something like this:
var perc = this.getField("Perc1").value; // let's say the percentage field is called "Perc1" if (perc>=0 && perc<=0.3) event.value = "TEXT1"; else if (perc>0.3 && perc<=0.5) event.value = "TEXT2"; else if (perc>0.5 && perc<=0.6) event.value = "TEXT3"; else if (perc>0.6 && perc<=0.8) event.value = "TEXT4"; else if (perc>0.8 && perc<=1) event.value = "TEXT5"; else event.value = "";
-
I month table. Data show properly in the number of the month in the neighborhood (MN_in_quarter). In April, the mn_in_quarter must be 1, but it shows 2. And also I wanted to display two digits for her. example 01,02,03 etc.
For many months, it should be double digit. Please correct my query.--temp table create table temp_month_vj (Month_Key NUMBER --sequence ,MN_in_Year NUMBER--month number|| year ,MN_in_Quarter_and_Year VARCHAR2(128) --month number|| quarternumber|| year ,Month_Number NUMBER--month number ,Month_Name VARCHAR2(128) ,MN_in_Quarter NUMBER)--month number in quarter level. for example: apri is quarter 2. out put is month number||quarternumber 0102 CREATE SEQUENCE temp_mont_vj_s MINVALUE 1 MAXVALUE 999999999999999999999999999 START WITH 1 INCREMENT BY 1 CACHE 20; INSERT INTO xddw.temp_month_vj ( Month_Key , MN_in_Year , MN_in_Quarter_and_Year , Month_Number ,Month_Name ,MN_in_Quarter ) WITH extrema AS ( SELECT TO_DATE('01.01.2006','DD.MM.YYYY') AS first_date , TO_DATE('31.12.2007','DD.MM.YYYY') AS last_date FROM dual ) , all_days AS ( SELECT first_date + LEVEL - 1 AS date_key FROM extrema CONNECT BY LEVEL <= last_date + 1 - first_date ) SELECT temp_mont_vj_s.nextval ,to_char(EXTRACT(MONTH FROM date_key),'09')||TO_CHAR(date_key, 'YYYY') ,to_char(trunc(to_char(date_key,'mm')/to_char(date_key,'Q')),'09')||TRIM(to_char(TRUNC(TO_CHAR(date_key, 'Q')),'09'))||TO_CHAR(date_key, 'YYYY') ,to_char(EXTRACT(MONTH FROM date_key),'09') ,TO_CHAR(date_key , 'MONTH') ,to_char(trunc(to_char(date_key,'mm')/to_char(date_key,'Q')),'09') FROM all_days ;
Daniel wrote:
my request does not have to display the number of quarter it please help me.Use:
INSERT INTO temp_month_vj ( Month_Key , MN_in_Year , MN_in_Quarter_and_Year , Month_Number ,Month_Name ,MN_in_Quarter ) WITH extrema AS ( SELECT TO_DATE('01.01.2006','DD.MM.YYYY') AS first_date , TO_DATE('31.12.2007','DD.MM.YYYY') AS last_date FROM dual ) , all_days AS ( SELECT first_date + LEVEL - 1 AS date_key FROM extrema CONNECT BY LEVEL <= last_date + 1 - first_date ) SELECT temp_mont_vj_s.nextval, to_char(date_key,'MMYYYY'), to_char(mod(to_char(date_key,'mm') - 1,3) + 1,'00') || TO_CHAR(date_key,'QYYYY'), to_char(date_key,'mm'), TO_CHAR(date_key ,'FMMONTH'), mod(to_char(date_key,'mm') - 1,3) + 1 FROM all_days ;
For example:
SQL> INSERT INTO temp_month_vj 2 ( Month_Key 3 , MN_in_Year 4 , MN_in_Quarter_and_Year 5 , Month_Number 6 ,Month_Name 7 ,MN_in_Quarter 8 ) 9 WITH extrema AS 10 ( 11 SELECT TO_DATE('01.01.2006','DD.MM.YYYY') AS first_date 12 , TO_DATE('31.12.2007','DD.MM.YYYY') AS last_date 13 FROM dual 14 ) 15 , all_days AS 16 ( 17 SELECT first_date + LEVEL - 1 AS date_key 18 FROM extrema 19 CONNECT BY LEVEL <= last_date + 1 - first_date 20 ) 21 SELECT temp_mont_vj_s.nextval, 22 to_char(date_key,'MMYYYY'), 23 to_char(mod(to_char(date_key,'mm') - 1,3) + 1,'00') || TO_CHAR(date_key,'QYYYY'), 24 to_char(date_key,'mm'), 25 TO_CHAR(date_key ,'FMMONTH'), 26 mod(to_char(date_key,'mm') - 1,3) + 1 27 FROM all_days ; 730 rows created. SQL> select * 2 from temp_month_vj 3 where mod(month_key,28) = 0 4 / MONTH_KEY MN_IN_YEAR MN_IN_QUARTER_AND_YE MONTH_NUMBER MONTH_NAME MN_IN_QUARTER ----------- ----------- -------------------- ------------ ----------- ------------- 28 12006 0112006 1 JANUARY 1 56 22006 0212006 2 FEBRUARY 2 84 32006 0312006 3 MARCH 3 112 42006 0122006 4 APRIL 1 140 52006 0222006 5 MAY 2 168 62006 0322006 6 JUNE 3 196 72006 0132006 7 JULY 1 224 82006 0232006 8 AUGUST 2 252 92006 0332006 9 SEPTEMBER 3 280 102006 0142006 10 OCTOBER 1 308 112006 0242006 11 NOVEMBER 2 MONTH_KEY MN_IN_YEAR MN_IN_QUARTER_AND_YE MONTH_NUMBER MONTH_NAME MN_IN_QUARTER ----------- ----------- -------------------- ------------ ----------- ------------- 336 122006 0342006 12 DECEMBER 3 364 122006 0342006 12 DECEMBER 3 392 12007 0112007 1 JANUARY 1 616 92007 0332007 9 SEPTEMBER 3 644 102007 0142007 10 OCTOBER 1 672 112007 0242007 11 NOVEMBER 2 700 122007 0342007 12 DECEMBER 3 728 122007 0342007 12 DECEMBER 3 420 22007 0212007 2 FEBRUARY 2 448 32007 0312007 3 MARCH 3 476 42007 0122007 4 APRIL 1 MONTH_KEY MN_IN_YEAR MN_IN_QUARTER_AND_YE MONTH_NUMBER MONTH_NAME MN_IN_QUARTER ----------- ----------- -------------------- ------------ ----------- ------------- 504 52007 0222007 5 MAY 2 532 62007 0322007 6 JUNE 3 560 72007 0132007 7 JULY 1 588 82007 0232007 8 AUGUST 2 26 rows selected. SQL>
SY.
-
Hello-
I have a staff and his average of TB marked. This marking of average of TB has an effect if I retrieve the data at the individual level? or its just is having effect on the quarter level.
I tried to retrieve a value consolidated for this account against a dimension attribute and a sparse aggregation. When I retrieve the Member at level 1 of the dimesion I get number 10 but when I get off my total at level 0
number comes to only 6. What would be the possible causes for this?
Please advise!
Thank you!Have you read the documentation on the balance of time settings, it goes into detail:-http://download.oracle.com/docs/cd/E12825_01/epm.111/esb_dbag/dcatimse.htm
See you soon
John
http://John-Goodwin.blogspot.com/ -
JavaScript for the calculation of tax on income at several levels
Hello world
I am writing a script to custom calculation for the calculation of tax on income at several levels:
1. the income up to $40,000 (20%)
2. revenue between $40 001 and $60,000 (30%)
3. revenue between $60 001 and $100,000 (35%)
4 income more than $100 001 (40%)
If the income is $ 80,000, tax calculation would be:
Total tax = (40 000 * 20%) + (20 000 * 30%) + (20 000 * 35%)
I managed to get the correct calculation for #1 but I'm having a difficult time for the rest. Here is my script to the point #1
var value = Number (this.getField("Income").value);
if(nValue<40001) {event.value = math.max (0, nValue * 0.20);}
}
else {event.value = 40000 * 0.20;}
}
Also, when I tried to change the amounts in the income, the tax has not changed.
Help, please.
Thanks in advance.
I think that you need a script like:
Event.Value = 0;
var value = this.getField("Income").value;If (value > 0 & nValue)< 40000)="">
20% of the income;
NValue = Event.Value *. 2;
}
If (value > = 40000 & nValue)< 60000)="">
30% of income plus 40 000 + 20% of 40000;
Event.Value = (.3 * (nValue - 40000)) + (.2 * 40000);
}
If (value > = 60000 & nValue)< 100000)="">
amount of 35% more than 60 000 + 30% 20 000 + 20% of the 40,000
Event.Value = (.35 *(nValue-60000) + (.3 * 20000) + (.2 * 40000);)
}
If (value > = 100000) {}
40% amount plus 100 000 + 35% of 40 000 + 30% of 20000, 20% of the 40,000
Event.Value = (.4 * (nValue - 100000)) + (.35 * 40000) + (.3 * 20000) + (.2 * 40000);
}To obtain your code, did you check the JavaScript console?
Understand how interpreted languages handle errors?
Maybe you are looking for
-
How to set up a filter when the sender is empty
I get unwanted emails where the "From" column is white. How can I set up a filter to block these. The "Subject" column varies with each email. Thank you for taking the time to read this issue.
-
Satellite L350 Vista: How to install caps lock sound?
I have a new Toshiba Satellite L350. When I use the caps lock, I would get a sound. I just get a light. What should I do?
-
looking for drivers for my desire dv7-7227 cl for windows 7 SM Bus Controller PCI\VEN_1022 & DEV_780B & SUBSYS_1833103C & REV_14 PCI\VEN_1022 & DEV_780B & SUBSYS_1833103C PCI\VEN_1022 & DEV_780B & CC_0C0500 PCI\VEN_1022 & DEV_780B & CC_0C05 USB CONTR
-
When I scan and send an attachment, my scanner generates a @microsoft.com e-mail addy. How to access this email address? Thank you
-
Is it possible to export several documents Adobe sign
Is it possible to export several documents Adobe sign