values based on periods
Hi friends,
I have a column called Budget and actual expenditures with a name prompt called period as jan, Feb, March, etc...
Suppose that if I select the prompt as Feb-14 value then budget column must show the consolidated values defined for the year 2014 (IE jan-14-dec-14), that the budget will be there for every month say jan, Feb, March, etc.
So for actual expenditures column assume that if the guest as Feb - 14 then it must indicate the value of (jan - 14 Feb-14) and assume that if I select mar - 14 then it must show (jan - 14 mar-14).
Is it possible to realize the scenario above with what formula for these columns.
Kindly advice with this friends.
Kind regards
Saro
It is on the columns that you need to change the aggregation.
You must activate the "based on the dimensions" and then specify 2 aggregation, LAST long and the SUM for others.
Facts of CDA are not easy to use because they may not be added together over time, but must have been on other Sun. So between SUM and LAST, LAST is less wrong what aggregation months up to the level of the year (and it's not really wise to sum together several years for the budget figures).
Tags: Business Intelligence
Similar Questions
-
VI to convert input signals NI 9402 in a RPM value, based on the frequency of the pulses
Hello
I'm looking for a VI convert an input signal NI 9402 in a RPM value, based on the frequency of the pulses. Is there such a thing that exists in the library of national instruments?
I run LAbview 2014 integrated control and monitoring on on a cRIO 9802 high performance integrated system with NEITHER 9402, 4 channels, 50 LV, LV TTL Module input/output digital, ultra high speed digital i/o for the cRIO module.
Any help would be greatly appreciated.
The easiest way is to use the FPGA to get the time between the edges of your pulse increase (shift registers to maintain the current situation and the time will be necessary). This will give you the period. If it's a single pulse per turn, then the number of laps is just 60/T, where T is the time in seconds.
-
OBIEE and Oracle OLAP value based hierarchies
Hello...
I have a dimension of value based on Oracle OLAP and want to map on OBIEE Administration tool.
I was using the link above as reference:
http://www.Oracle.com/technology/OBE/olap_biee/CreateBIEEMetadata.htm
There is no option to import from Oracle Database multidirectional. Either import/configure the view created by OLAP as Unballanced or Dimension shredded.
I also checked this example, but it uses ESSBASE multidimensional source...
http://www.rittmanmead.com/2008/08/27/ragged-hierarchy-handling-in-OBIEE/
How to map this Ragged Dimension created in the workspace OLAP in OBIEE Any suggestions or guidance will be highly appreciated...
Thanks in advance
Marcos@Mark and Marcos:
No, you don't 'stink' to OBIEE and you aren't big draws. OBIEE can not handle hierarchies measure today. Period. What you face Oracle OLAP is true to the CSG and Essbase as well. Are jagged, asymmetrical, etc, that no problem at all for normal dinemsional hierarchies, but you can forget about it in the hierarchies of the measure.
Basically, it comes down to the fact that OBIEE needs a 'table' to act as the 'fact '. So if I have a cube with the 'Scénario' and 'Account' then I have to choose one as the measures dimension and the other as a normal dimension.
If I choose "Account", then the members account will be flattened and becomes my fact table. The Scenario dimension becomes a dimension with the generations as the columns of the logic and the scenarios themselves appearing as members of dimension.
If I "turn" the cube and do 'Scénario' my measure dimension, accounts become members in a dimension hierarchy and scenarios become columns in my table of facts.There is no work around in any version of 10g and the "rotation" is the only way you can create reports if you work with several measures on several levels of the hierarchy.
See you soon,.
C. -
Hi all
I need the values according to below 2logics in a single select query using instring and substring
1 values based on the following logic 'values after the first values of two '_' and before last '_' values '.
2 values based on the following logic 'values after the first values of two '_' and before last'-'values '.
EXM:
Entry: ABCD_EFGH_IJKLM - NOPQ_XYZ output: IJKLM - NOPQ
Entry:. ABCD_EFGH_IJKLM - NOPQ output:IJKLM
Thank you.
Check the following
WITH DATA1 AS
(SELECT "ABCD_EFGH_IJKLM - NOPQ_XYZ" double val)
UNION ALL
SELECT 'ABCD_EFGH_IJKLM - NOPQ' double val
)
SELECT SUBSTR (VAL, INSTR(VAL,'_',1,2) + 1, DECODE (BIGGER (INSTR (VAL, '_',-1, 1), INSTR(VAL,'-',-1,1)), INSTR (VAL,'-', - 1, 1), LENGTH (VAL) + 1, INSTR (VAL, '_',-1, 1))-(INSTR (VAL, '_', 1, 2) + 1))
OF DATA1;
Concerning
Salim
-
Calculate values based on the boxes are checked - for Dummies...
Hello and thank you all in advance for your help. I'm trying to calculate a value based on the boxes checked. Specifically, I would like to add a particular value $$ each CheckBox and if this box is checked, I want to add to the total rental value (see screenshot below):
As you can see in the screenshot that I have different areas that can be selected (first floor, court before, etc.), I want to assign a value to the checkbox of each region (and added value for others) and calculate a total in the "Balance of rental fees" less the deposit. I'm new with java and scripts but not know how to do it in an excel formula. I guess it's very different from what little I know of Java. Any help you can give me would be greatly appreciated.
Calculation options are in the text field. In this screen, you only need to set the value of exports to the amount this box represents.
-
Extract the value after the period
Hello
I am trying to extract the value from each period.
I have the table data is stored in this mode 172.168.15.10, which is an IP address,.
My requirement is I need to first value in a query with must return 172
If I need the value after the second period, it should return 168
Please suggest me how to write a SQL for the above requirement and oracle 11i Enterprise edition as the database.
Thank you
Sudhirwith regexp
select regexp_substr('172.168.15.10', '\d+', 1, :pos) s from dual
without regexp
select substr(s , instr(s, '.', 1, :pos) +1 , instr(s, '.', 1, :pos + 1) - instr(s, '.', 1, :pos) -1 ) s from (select '.'||'172.168.15.10'||'.' s from dual)
Edited by: chris227 the 01.10.2012 01:23
-
How to get a prompt to return a list of values based on a prompt
Hello
In the link below, I show the chain and the guest of the station.
The guest of the station must return a list of value based on the value I have insert for string.
If for example I have insert FS for the Four Seasons chain, what resort it must return only the hotels belonging to four seasons.
I tried as in the example with a variable, but not worked.
Any idea?
http://img163.imageshack.us/img163/4486/resortprompt.jpg
Thanks and greetings
GiulianoHello
Do you have values for the stations for the value of the selected channel. I assume that you have no station for the selcted string value values. Try to select values of chain of 5 or 10 and then check the value of the station. To force them to work there is no need to define any variable presentation.
Kind regards
SandeepPublished by: Teresa Sanchez on 10-Sep-2010 01:25
-
ID - value in XML format. How to extract the value based on the id?
Hello
I have a XML type
< root >
< resource >
< id > 123 / < ID >
< value > CBA < / value >
< / resource >
< resource >
< id > 456 / < ID >
def < value > < / value >
< / resource >
< / root >
It is stored in a column of XMLTYPE as a CLOB.
Now, I want to get a particular value based on one id.
I tried to use the following syntax
([Select case when existsnode(x.XML_CLOB,'/Root/Resource[Id="123"]') = 1
then extractValue(x.XML_CLOB,'/Root/Resource/Value')
but "/ Root / / value of resource" can mean either of the 2 values. How to solve this?Hello
If the element 'id' is unique you just specify XPath to the 'value' on the basis of extractvalue (given that you are pregnant of a single node):
WITH x AS ( SELECT xmltype( '
123 abc 456 def -
Fill a field value based on the value of another field
Hello
Could someone tell me what is the problem with the following select statement. For a group of records, trying to fill a field with a value based on the value in another field (problem of status), but the Group of records appears empty just when I put this code in the field.
Any help would be appreciated
Thank you
<? choose:? >
<? When: IssueStatus = "Open"? >
<? 1? >
<? end when? >
<? otherwise:? >
<? When: IssueStatus = "closed"? >
<? 2? >
<? end when? >
<? otherwise:? >
<? When: IssueStatus = "Unresolveable? >
<? 3? >
<? end when? >
<? end otherwise? >
<? end to choose? >Use the following syntax.
Display 1 Display 2 Display 3
-
a badge of the value-based list background color
Hello
I am using Apex5 on Oracle 11 g. I'm playing the plugin list Badge to come with Apex packaged Application, I would like to know if it is possible to change the background color (fill color) of the badge round based on the range of values, for example, I'm working on a few badge tickets report, I am critical, high, medium, low budget, what I want is that the values is 0 (no tickets) and then display the badge as green Cycle; If 1-10, show orange. If greater than 10, shows red.
Thank you
Mike
I thought about it. Here's what I did:
Create a refreshment after DA (java script based) and java scripts:
$(".t-BadgeList-value").each (function () {}
If (parseInt ($(this) .text ()))<>
$(this).css({"background-color":"green"});)
on the other
$(this).css({"background-color":"red"});)
});
Thank you
-
How to do a bunch of fields read only value-based
IM using jdev 12.1.2.
I have a fragment with a few dozen jsff fields. I need to make these read-only or editable fields based on a value. I know how to do this for each field, but I was hoping there was a way to do this for each of them with a single property. For instance, all the fields are in a panelgrouplayout or a panelformlayout can I set a property on this provision which will set then all areas reporting to him read-only. I was just trying not to put the property read-only on each field of monkey.
There is none of these goods or componentwhich allows you to do. All you can do is to set the readonly property of each field to the same property (bean or pagedef) and ppr the container so that the components are updated.
Or you use a bean method that sets all the fields editiable readonly properties in a contianer orf true false. It would save that you set the property for each field.
Timo
-
How to disable the LOV values based on the State of some?
Hello
I have a requirement like this.
(1) LOV Field (1), when I get a value here then based on the query I get two new values and assign to another two LOV Fields (2,3) and then disable them. However, when I enter the value in the field LOV (1) based on one of the conditions I won't have no default value then LOV fields must be enabled so that the user can select the values of LOV.
(2) now an another LOV domain (4) when I go here again, then again two fields a LOV (5), and the free text field must be filled in.
To do this, I wrote the logic in the following way:
(1) get the LOV box-1 value and deriving the new values and set the session Variable to 1 and then refresh the Page. Now in PR get the Variable from Session 1 and assigning new values to LOV fields 2 and 3 and then using the property Setdisabled I deactivation.
(2) getting the value of LOV field-4 and then drifting two new values and set the session Variable-2 and refresh the Page. Now in PR get Session-2, and then set the new values for the LOV-5 field and free text. But once the Page Refreshed and assigning values, values that we have given in the Point 1 in the LOV-2 fields, 3 turn white and field's get activated.
Can you please let me how to achieve this? and also why the values are empty when I implement Point-2.
Thank you
ClarriizaClarriiza,
This VO have no matter what right SQL query, so even if you run the VO by using vo.executeQuery (), you will not get all the lines in the VO.
So in the PR you need createRow and insert VO (otherwise your page no mistake) the below blog can be considered as an example.
Reference: Oracle tips of Johny: OAF: how to create a PVO and use for Spel link in Oracle Application Framework
On top of which is explained in the blog above, you set the values for the attributes of the useful, likely to set the value for the other LOV.
I hope this helps.
See you soon
AJ
-
Hello
I use jdev 12.1.2.
I have a few components of af: selectOneChoice that is contained in an af:table element. The table is extracting lines from database and display data. Now here's the weird part: sometimes the component of selectOneChoice will have the correct value selected, and other times it will be just left unchecked. I can verify that the data in the object view lines are indeed correct after I request them. The LOV for soc components are properly set up (some are configured as static list display objects and some are set up as model driven lists based on display objects). I have just completely puzzled me as to why they work sometimes and then not work at times even though I am following the exact same steps to reach that point in my application. Someone at - he never meets this problem before?
Thanks for reading.
Problem solved!
For anyone having this problem in the future: do not try to do a partial trigger on a table that is not in the visible panelTab. The problem is that when my view criteria applying, I was refreshing the TWO tables. This caused that was not visible to lose the selectOneChoice selection, while the other table was very good. Remove the partial relaxation for the table that was not visible caused the data to be maintained properly during the exchange between the tabs and change the view criteria. Thanks for the help again Ashish, stumbled on the real root of the problem, after following some of your suggestions.
-
XQuery insert node and assign the value based on an XPATH expression
Hello
I am trying to write a function that receives an XML as input parameters and return updated XML output
-nodes are removed from the input XML code
-a node must be inserted and the node value must be 1 or 0, based on an XPATH expression
I discovered how to remove nodes, I discovered how to insert a new node, but I can not set the value of the conditionally inserted node an XPATH expression.
Here's my current procedure and below a sample of one XML of entry. I use Oracle 12 c.
CREATE OR REPLACE FUNCTION STRIP_XML ( IN_XML IN SYS.XMLTYPE ) RETURN SYS.XMLTYPE AS p_result XMLType; BEGIN select xmlquery( 'declare default element namespace "http://mad.evs.com/search"; (: :) copy $d := . modify ( delete node $d//MainCategory/@logId, delete node $d/MainCategory/@id, -- a lot more of those delete node -- insert a node, but the value 1 is conditional insert node <DMZ>1</DMZ> after $d/MainCategory/SDataSection/EventDate) return $d' passing in_xml returning content ) into p_result from dual; RETURN p_result; END STRIP_XML;
The condition for the value of is
HASPATH (//DigitalAssets/DigitalAsset [@ available = "true" and @videoFormatId = "11"] / VideoLocations/Videorental [@typeId = "8"]) then 1 else 0
It is complex because DigitalAssets/DigitalAsset is a collection. Here is an example of an XML to entry
<MainCategory xmlns="http://mad.evs.com/search" id="9" logId="3349" logType="3"> <Name>Sport</Name> <Serie id="163" externalId="557"> <TitleAKA>UCL 2006/07</TitleAKA> <DigitalAssets available="true" som="20:28:49:05" dur="00:02:46:04" videoDurationMinutes="3"> <DigitalAsset available="true" som="20:28:49:05" dur="00:02:46:04" videoDurationMinutes="3" videoFormatId="3"> <VideoLocations> <VideoLocation id="3" path="003349MA.mxf" typeId="1" locationId="1" priority="0"/> <VideoLocation id="3" path="003349MA.mxf" typeId="2" locationId="1" priority="0"/> <VideoLocation id="3" path="003349MA.mxf" typeId="5" locationId="1" priority="0"/> </VideoLocations> </DigitalAsset> <DigitalAsset available="true" som="20:28:49:05" dur="00:02:46:04" videoDurationMinutes="3" videoFormatId="11"> <VideoLocations> <VideoLocation id="101" path="003349MA.mpg" typeId="1" locationId="1" priority="0"/> <VideoLocation id="101" path="003349MA.mpg" typeId="2" locationId="1" priority="0"/> <VideoLocation id="101" path="003349MA.mpg" typeId="8" locationId="1" priority="0"/> </VideoLocations> </DigitalAsset> </DigitalAssets> <SDataSection xmlns="http://mad.evs.com/search"> <EventDate>2006-08-09</EventDate> <LogType>3</LogType> </SDataSection> </MainCategory>
In this case, because HASPATH expression could be set to true, the value of the added node must be 1.
Any help or advice how I should fight against that would be appreciated. I have no experience with XML and XQuery, I create my function through from trial and error of the doc.
Thanks and regards, Pierre
Hi Pierre,.
You can use the if-then-else statement, like this:
Insert the node
{
If ($d/MainCategory/DigitalAssets/DigitalAsset[@available="true' and @videoFormatId = '11'] / VideoLocations/Videorental [@typeId = '8'])
then 1
0 otherwise
}
After $d, MainCategory, SDataSection, EventDate
XSLT can be an alternative to the XQuery Update in this case.
-
Extraction of values based on column names
Hello
I have three tables. Table A table contains a column with all column_names in the table b. table B is to have an emp_id and other fields that are stored as values in the column of the TABLE. I need to get the emp_id and value from the column of table B based on data of Table A. and store it in another table.
Example:
Table has -col1
Emp_name
Emp_sal
Emp_dept
Table B
Emp_id Emp_name Emp_sal Emp_dept
1001 ABC 1000 sales
1002 XYZ 2000 SVC
TABLE C
Emp_id Emp_details value
1001 Emp_name ABC
1001 Emp_sal 1000
1001 Emp_dept sales
1002 Emp_name XYZ
1002 Emp_sal 2000
1002 Emp_dept SVC
Using the list of TABLE A, I have to select each Id and corresponding to the value of TABLE B and even insert in TABLE C. I know that we can use a loop for, but I have trouble choosing the name of column based on the value of the slider. Can anyone help?
Hello
Looks like you want to do 2 things rather difficult:
(1) unpivot data from several columns in the column 1 value
(2) get the column names for the another table unpivot operator
Let's start with how you could do just part 1, unpivoting data:
INSERT INTO table_c (emp_id, emp_details, value)
WITH all_varchar2 AS
(
SELECT emp_id
emp_name
TO_CHAR (emp_sal) AS emp_sal
emp_dept
--Include all columns, you might need
OF table_b
)
SELECT emp_id, emp_details, value
Of all_varchar2
UNPIVOT (value
FOR emp_details IN
(emp_name - dynamic
emp_sal - dynamic
emp_dept - dynamic
)
)
;
Value is a column, everything happens in this column must have the same (or a very similar) data type. The subquery all_varchar2 converts all columns that you can rotate in VARCHAR2s (if they are not already VARCHAR2s) so that they are ready to rotate. You might consider doing a permanent display for this.
Now, instead of hard-Ghoshal the 3 line marked "Dynamics", you seek to table_a. You will know beforehand what are these columns, and you won't even know there will be the number of columns. You need instructions SQL dynamic to write this part of the INSERT statement for you at run time.
Here's a way to do it in SQL * more and SQL:
-The preliminary motion
COLUMN col_list_col by col_list new_value
SELECT LISTAGG (col1, ',') within THE GROUP (ORDER BY col1)
AS col_list_col
FROM table_a;-Main return (dynamic):
INSERT INTO table_c (emp_id, emp_details, value)
WITH all_varchar2 AS
(
SELECT emp_id
emp_name
TO_CHAR (emp_sal) AS emp_sal
emp_dept
--Include all columns, you might need
OF table_b
)
SELECT emp_id, emp_details, value
Of all_varchar2
UNPIVOT (value
FOR emp_details IN
(& col_list
)
)
;Dynamic SQL often works like this. First, you make a preliminary motion to write the part that is not know before execution. Then, you run the main statement, which has the integrated preliminary query results.
If you do this in PL/SQL, you use a string variable ordinary for col_list, instead of a substitution variable.
Maybe you are looking for
-
Help! I don't know what to do... its been like that for some time my PC was overheating and I had 2 extra HD I thought that may be the problem, but they have been removed. I do not know what is Happeneing... and it drives me nuts to have my computer
-
Unable to connect to the internet 0 x 84000011
I was wondering if someone could help me I have an acer aspire one and whenever I try to access the internet through the connection of acer Manager it keeps coming up error 0x84000011.i'm with broadband thanks meteor
-
Sony Mediago installation problems
I recently bought a Sony Walkman. Downloaded the Walkman guide successfully since the walkman via USB connection. But had problems with Media go. I called the hotline and gave the link to download from the internet. I managed to download, but not
-
Problems of Windows 7 with Windows 10 Update offer screen interefering
When I selected the updates of Windows 7 for download, and then click on 'ok' it brings back me to the screen (see below) where the supply of Windows 10 and the single available tab seems to be the Windows 10 "get started" tab that I don't want or th
-
Once I made a few changes in Task Scheduler. After rebooting my system, I found that explorer.exe starts not and task scheduler does not run. So I did system restore. After that things seems to work very well. But when I started the Task Scheduler. I