Query design question: multiple plan versions in single column
I have a standard financial statement query with current month "Actual" restricted to Value Type 10 and current month "Plan" using Value Type 20. This scenario is repeated for year-to-date Actual and Plan along with $ and % variance calculations. Until recently we were only loading plan version so I had no reason to restrict the plan to version 0 Actual/Plan.
We are now loading an alternate plan version, Version 1, and I would like to report both versions in the same query. I though I could just bring in "Version" as a Free Characteristic to easily switch between version 0 and 1 but that didn't work as expected.
With "Version" as a filter item my Plan amount will report both plan versions combined which is fine and when "Version" is filtered to the alternate version 1 Plan correctly displays the alternate amount, in both cases Actual is unchanged and displays correctly. The problem is when I change the filter to just show Version 0 which is defined as "Actual/Plan". When version 0 is selected the Plan amount displays correctly but ALL Actual values disappear.
No Version filter set = Actual/Plan and Plan Version 1 combined correctly. Actual displays correctly.
Filter set to 1 and 0 = Actual/Plan and Plan Version 1 combined correctly. Actual displays correctly.
Filter set to 1 = Plan Version 1 only. Actual displays correctly.
Filter set to 0 = Plan Version 0 only. No actual data is displayed.
Is there a better way of displaying multiple plan versions in a query or will I have to add additional columns for each plan version?
Thanks for the ideas,
Jeff
Thanks Amit that was the help I needed.
I added "Version" to every actual Key Figure and made each a Constant Selection. I also added Version as a Free Characteristic of the query for a filter.
By adding Version to each Key Figure no matter which plan version I select in the Version filter Actual data alway remains correct and just my Plan column changes to show the plan version I selected.
Thanks for your help,
Jeff
Edited by: Jeff Mayfield on Nov 11, 2009 11:51 PM
Similar Messages
-
Combining multiple planned orders into single purchase requisition
Hi Gurus,
could anyone please tell me how to convert multiple planned orders generated during MRP run into a single purchase requisition? Also, is there any other way of getting single purchase requisition fcreated after MRP run for a procured item which is part of multiple BOMs?
Thanks and regards,
AbhikHi,
Conversion of Multiple planned order to single Purchase requisition is not possible.
But you can have a single Pur.Req for Multiple requirements.
You can do this by:
1. Individual/collective indicator "2" collective requirements for the Header Material so that you will get your dependent requirements clubbed together.
2. Period Lot sizing : Daily/weekly/monthly Lot size so that system will club the entire period requirements and propose a single lot.
3. for low value materials you can have Reorder Point planning also.
Hope this helps..
Regards,
Siva -
How To Concatenate Column Values from Multiple Rows into a Single Column?
How do I create a SQL query that will concatenate column values from multiple rows into a single column?
Last First Code
Lesand Danny 1
Lesand Danny 2
Lesand Danny 3
Benedi Eric 7
Benedi Eric 14
Result should look like:
Last First Codes
Lesand Danny 1,2,3
Benedi Eric 7,14
Thanks,
David JohnsonStarting with Oracle 9i
select last, first, substr(max(sys_connect_by_path(code,',')),2) codes
from
(select last, first, code, row_number() over(partition by last, first order by code) rn
from a)
connect by last = prior last and first = prior first and prior rn = rn -1
start with rn = 1
group by last, first
LAST FIRST CODES
Lesand Danny 1,2,3
Benedi Eric 7,14Regards
Dmytro -
Can I get multiple sums in a single column based on a "code" I place.
After importing a file of check/debit card activity from my bank, can I 'code' the line items based on tax categories ie Utilities, Medical expenses, Auto expenses, etc. and then get sums for each based on that code I placed in a single column? That would mean multiple sums in a single column based on the code used for each tax related expense. For instance, I would put UT in the column for utilities expenses and MED in the same column if it were a medical expense. I would then want the sum for all items in that column for each item code. Is this possible or do I need to use a different approach to get this information.
My guess is that the SUMIF function may be your friend.
It's well described in the *iWork Formulas and Functions User Guid*e which every user may download from the Help menu.
Yvan KOENIG (VALLAURIS, France) samedi 2 janvier 2010 21:56:39 -
Hi,
I have a question regarding a query design issue I was faced with today. I was asked to designed a Query, however all the fields required are all defined as characteristics but I would like to display one as a key figure. I would have a characteristic for a row, the column also for a characteristic and have another characteristic displayed instead of the key figured Is that possible?
Thanks for any feedbackHi Serge,
This question would be more appripriate -- and you will get a quicker answer -- in the BI Forums. Please open your question there.
Best Regards,
Matt -
Query design question (NW04s)
In query designer, how do I hide a column that has no data. I know how to suppress zero result columns, but these columns are not zero because they had no data.
Can this be done using a local formula?Hi Raynald,
Yes you can do this by restriction. I mean you restrict the report only display for the column that has a data.
How you do this :
1. Open your query.
2. Right click for the characteristic (column), choose restrict.
3. Choose for fix values, and singles value for selection type.
4. (there will be 2 area) You restrict it by choose no-data / symbolized by # (move it from left to right pane).
5. (After moving it to right pane) You right click to that symbol then choose exclude from selection in the context menu.
If you have already made it, the column that has no data will be hidden.
Hopefully it can help you.
Regards,
Niel.
award points if it helps you. -
Convert multiple planned orders to single production order
Dear All !
In our business, same component is used for manufacturing multiple items. In a sales order multiple items are booked. When we do MRP RUN, system creates multiple planned orders for each line item. We can run only one production order as for every item order quantity becomes very small and we cannot process that lot. To have a sizable lot quantity we need to combine all planned orders into a single production order.
Can someone please help.Govinder,
Define those components for collective processing. You need to define "2" - for Field Indv/Coll in MRP4 view of those material master and you can have daily/weekly/monthly lotsize defined for those items.
Regards,
Prasobh -
Query to compare different Plan versions in CCA
My requirement is to create a Cost Center query that compares two different plan versions, selected by the user with different time periods. We do not use any SEM functionality and are in version 3.0B.
There is a standard R3 report but this gives a total figure and does not split the figures by periods.
Does anyone know a Business Content query that can resolve this issue?Hi ,
Instead of going for a business content query u can go for a formula variable using replacement path and assign the required values for the output and in that by using the customer exit with the help of abapers
Hope this will be a clear solution to ur problem
Pls assign full points if answer is satisfied
Regards ,
Subash Balakrishann -
Multiple conditin on a single column in a single query
i want to select data from the table using diff conditions on a single column
for eg:
i need emp details like whose having empno as 5-15,19-45,50-89 ..etc this how can i give a condition in a single query
we can use in or between for 2 or 3 conditions but i have plenty off like thisHi,
848525 wrote:
i want to select data from the table using diff conditions on a single column
for eg:
i need emp details like whose having empno as 5-15,19-45,50-89 ..etc this how can i give a condition in a single query
we can use in or between for 2 or 3 conditions but i have plenty off like thisYou can use OR for any number of conditions; it works the same for 4 or more.
You could also put the ranges into a table (or a sub-query, as shown below) and join:
WITH empno_ranges AS
SELECT 3000 AS low_val, 5000 AS high_val FROM dual UNION ALL
SELECT 7000, 7499 FROM dual UNION ALL
SELECT 7500, 7599 FROM dual UNION ALL
SELECT 7800, 7899 FROM dual
SELECT r.*
, COUNT (e.empno) AS emp_cnt
FROM empno_ranges r
LEFT OUTER JOIN scott.emp e ON e.empno BETWEEN r.low_val
AND r.high_val
GROUP BY r.low_val, r.high_val
ORDER BY r.low_val
;Output:
LOW_VAL HIGH_VAL EMP_CNT
3000 5000 0
7000 7499 2
7500 7599 2
7800 7899 3 -
Concatenate multiple row values into single column value
Hello,
Can anyone please refresh my memory on how to concatenate multiple row values into a single column value.
In the following query, I will get multiple denial reasons per application and I would rather return all denial reasons on one line.
SELECT a.application_id, a.membership_number,
r.reason_text AS denial_reason,
a.appl_receipt_date AS application_receipt_date,
a.plan_request_1 AS application_plan_code,
a.adjudication_date AS application_denial_date
FROM application a, PLAN p, application_reason ar, reason r
WHERE a.plan_request_1 = p.plan_cd
AND a.application_id = ar.application_id
AND ar.reason_id = r.reason_id
AND a.adjudication_cd = 'D'
AND a.appl_receipt_date BETWEEN '01-jan-2006' AND '31-dec-2006'
AND p.plan_type_id = 12 and a.application_id = :appId
ORDER BY application_id
Any help is greatly appreciated.
Thanks,
-Christinefound the following
SELECT deptno,
LTRIM(MAX(SYS_CONNECT_BY_PATH(ename,','))
KEEP (DENSE_RANK LAST ORDER BY curr),',') AS employees
FROM (SELECT deptno,
ename,
ROW_NUMBER() OVER (PARTITION BY deptno ORDER BY ename) AS curr,
ROW_NUMBER() OVER (PARTITION BY deptno ORDER BY ename) -1 AS prev
FROM emp)
GROUP BY deptno
CONNECT BY prev = PRIOR curr AND deptno = PRIOR deptno
START WITH curr = 1;
DEPTNO EMPLOYEES
10 CLARK,KING,MILLER
20 ADAMS,FORD,JONES,SCOTT,SMITH
30 ALLEN,BLAKE,JAMES,MARTIN,TURNER,WARD
3 rows selected.at http://www.oracle-base.com/articles/10g/StringAggregationTechniques.php -
SQL - Multiple rows in a single column
Hi everyone,
I have a little question,
The result of my query looks like this:
VALOR
HERRERA
ANDREW
CHARLES
But I need they look like this:
VALOR
HERRERA - ANDREW - CHARLES
How I can do that without using PL/SQL?
Thanks for the help.Hi Justin,
Thanks for reply. The answer for your questions are:
1) No, sometimes could be 1 or 2 or 3 or....n
2) The true is that the result of the query have more columns. Here is the result of the query:
ID NAME VALUE SEC
150 ALGOMAS 44 1
150 AQWER 56456 1
150 DFDSF FG345143 1
150 GFDGDF 5433 1
150 TEST_123 HERRERA 1
166 ALGOMAS 22 1
166 AQWER 33 1
166 DFDSF 44 1
166 GFDGDF 55 1
166 TEST_123 ANDREW 1
243 ALGOMAS 1 1
243 AQWER 2 1
243 DFDSF 3 1
243 GFDGDF 4 1
243 TEST_123 WINDSOR 1
505 ALGOMAS VALOR DE CARAC 1
505 AQWER VALOR DE CARAC 1
505 DFDSF DDFDF 1
505 GFDGDF DFGG 1
505 TEST_123 HERRERA 1
505 TEST_123 CHARLES 2
505 TEST_123 ANDREW 3
If you see the three last rows, it repeat the NAME and the ID, What I need is that three records combine in one only row.
This is really a subquery, only need the VALUE column for the "big query", but when i execute the big query, i got the ORA-01427 error: single-row subquery returns more than one row. I know that error comes out because the NAME = TEST_123 in the ID = 505 have more than one value, so, if there is any way to put that values in only one rows, it resolve my problems.
3) Oracle Database 10g Release 10.2.0.1.0
I offer apologies if the initial information was not enough.
Once again, thanks for reply.
LCJ. -
Design question - add another table or another column?
Hi there,
quick design question:
I have the following tables:
Traveler
CreditCard
Group
A traveler is going with group X and pay (creditCard) with Y. he can go on multiple groups and can pay with Y or Z...
my question is this:
should I make another table CrditCard_Group which will have the following columns:
user_id
group_id
creditCard_id
or simply to have in the creditCard table another column: Group_id
thanks for any adviseThis is not JDBC nor Java, it's database modeling.
Said this, the answer is: it depends; if you have to record the fact that a traveler belonging to a group pays with credit card X you need the table with three ids. If you just need to record the traveler using a credit card and the traveler belonging to a group you need two tables each with the two ids. -
Multiple Selection Property in Single Column Listbox
Hello All,
I have taken a Single-column list box and have enable the multiple selection property of the listbox.
In fact, i want to find out the values of the multiple rows selected in the listbox. But, i couldn't found any of the property of this listbox that can indicate the index or value of the multiple lines that are selected.
Can anybody help me to resolve this issue? What is the approach i can take to find out the multiple rows selected in the listbox?
Regards,
NishantNishant wrote:
Hello All,
I have taken a Single-column list box and have enable the multiple selection property of the listbox.
In fact, i want to find out the values of the multiple rows selected in the listbox. But, i couldn't found any of the property of this listbox that can indicate the index or value of the multiple lines that are selected.
Can anybody help me to resolve this issue? What is the approach i can take to find out the multiple rows selected in the listbox?
Regards,
Nishant
Here is an example where the value is read from a property node.
the Value becomes an array when you elect a selection mode that allows multiple selections. (and thats the reason you can't write Selection mode while the VI is running
Jeff
Attachments:
Listbox.vi 7 KB -
Library Filters: Filter for multiple values in a single column and Wildcards
If you have a multi-value column in a library, can you filter to show only results where two (or more) specific values (terms) are applied? E.g. Year 2014 and Month January? Seems this would be particularly useful for Enterprise Keywords columns.
Similarly, is there any way to filter on one value OR another value in a single column (e.g. Document Type Memo OR Fax)?
Any way to use wildcards in searches (would be REALLY useful in the Title and Name columns when naming conventions have been followed).
I'm guessing the answer is going to be 'move to SharePoint 2013' - if that is the case, please confirm whether all the scenarios mentioned above are catered for.Thanks for your replies !
Is there any other way to achieve this ?
There is 1 InfoObject which has 2 fields Employee and Department.
Employee Department
001 A
001 B
001 C
In the report there should be 1 row for Employee 001 with all the Departments displayed in the same cell separated by commas.
Can this be done in the backend through a ABAP code? -
Cannot add multiple filters on a single column on certain libraries
On some of our lists/libraries, we can filter a single column to display a more than one selection. For example, column1 contains the following choices:
Yes
No
Maybe
I can add a filter to column1 and select Yes and Maybe. This works in some lists/libraries, but does not for others. When I try to select more than one value, the view resets and shows everything. The column we are trying to filter on is a choice column
and is not calculated. Any help would be greatly appreciated.Hi,
Where and how do you add your filter?
If you add the filter in your view, you can add the filter as below:
Best Regards,
Eric
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected]
Maybe you are looking for
-
PowerBook G3 (PDQ) - Startup disk and PCMCIA slot problem
Hello I have encountered a problem with my powerbook G3 (PDQ model) Once when I had to configure my microphone, I saw that there was "Zoomed video" present in the list of audio inputs. I thought this was a glitch, and inserted my SD card reader into
-
Hi, Can any one tell me how to resolve this issue. "Could not determine the year for TDS Certificate number " Please help Thanks Deepak
-
Firefox downloaded 29, I don't want it, How do I prevent update??
I have FF28, I'm very happy with it. I got the 29 in my office. I hate it! It's really awful - it reaked mayhem on ALL my setting :( Now my home computer informed me that it will install 29. How do I prevent it? Also: How do I, a non-tech, revert to
-
Hi, We are making a Model object's delete call through a MessageDrivenBean, which actually deletes the Object, then we make a retreive of all available Objects through another MessageDrivenBean, the returned list initially includes the deleted Object
-
How to export HDimovies to make them readable by Screenplay Director Iomega
my exported HD movies (.mov or mp4) cannot be read by the Screenplay Director from Iomega. The driver of this SPD is a kind of Windows media player I guess. I tried already several formats, but or there is no sound, or there is no image, or the image