DISCOVERER: grouping different set of data according to hierarchy level
Hi,
This is my problem:
I have a classic hierarchy like the following:
Region->City->Department->Store name
In my fact table are stored some measures about product.
Each product belong to a category (the category is another dimension in the fact table).
I have to group togheter different set of category dynamically according to the level of hierarchy where user is during drilling operation.
An example:
where i am at Region level i have to group the category product 100 and 200
if i drill down to the City level i have to group the categoty product 300 and 400.
How can i do this at runtime (ie: during the navigation of the report)
Thanks in advance,
The discoverer version is 10.1.2
P.S.sorry for my bad english
Hi
As mentioned above u can create an MP on top of the cubes. But in Report u will have to use only those characteristics which are common between the two cubes or the records will come in 2 rows. Say in ur case u cant use Item No and Doc No. But if u dont have any complex calculations u can use 'Constant selection' to get the records in the same row.
Regards,
Aparna
Similar Messages
-
Changing charts with different sets of data
Hi Guys,
I have created a dashboard (BO 4.1) with a Summary view. It contains 5 charts.
One of the column charts gives monthly project count. The data is coming from a Webi cross tab (Live Office) as shown below.
The highlighted yellow cells is the source data for the chart.
Product
Emp Type
Jan
Feb
Mar
A
X
1
2
3
A
Y
1
2
3
B
X
1
2
3
C
X
1
2
3
C
Y
1
2
3
Total:
5
10
15
Now, there is a check box that the user clicks that opens up a "List Builder" component where the user gets to select the "Product".
Based on the "Product" selection, I want the column chart to display the respective data from the table above.
Could anyone help me achieve this in the most efficient way?
Note -
Later, I also want to add a "Radio Button" for "Emp Type" and another "List Builder" for "Month". So, total 3 selectors. The other charts have their own sets of data.Hey jeewan,
If i understood your question properly its all about the axis value of month & totals invariable product & employee. In this case remove the totals coming from the webi report. create a sum formula 30 rows below. But make sure how many records you will comsuming at the maximu level if you include all the values in the list builder and then decide where to right this sum formula. Now pick the month from the top and total from cells where you have written the sum formula.
Got it, does it helps!!! -
Multiprovider for different set of data
Hi Experts,
I need to built multiprovider on top of two InfoCubes. But tricky part here is one Infocube contains data at line item level and second Infocube contains data at summary level. I will get most of the keyfigures from one Infocube and one keyfigure from second Infocube.
Infocube1 and Infocube2 contains same dimensions except one dimension where Infocube1 contains item level char like item number and document number. Is there any way I can built multiprovider on top of that and provide reporting on that with keyfigrues from Infocube1 and Infocube2.
advance thank you very much.Hi
As mentioned above u can create an MP on top of the cubes. But in Report u will have to use only those characteristics which are common between the two cubes or the records will come in 2 rows. Say in ur case u cant use Item No and Doc No. But if u dont have any complex calculations u can use 'Constant selection' to get the records in the same row.
Regards,
Aparna -
Displaying all GL accounts according to hierarchy level(Based on ERGSL)
Hi all,
I have a requirement to display balance sheet and PL account for the given period...
1. I have to select all G L account numbers (BSEG-HKONT) with their amounts which belongs to same group (i.e. for those ERGSL value is same).
2.Display sum at each hierarchy level with respect to company codes.
From table FAGL_011ZC we can find the range of GL account (lower limit-VONKT upper limit-BISKT) and ERGSL using VERSN.
In T-code FSE2 we can see the hierarchy levels.
The table FAGL_011PC will get parent ane child relation ship for ERGSL.
I have to display all these GL accounts according to hierarchy leve.
please help me out in this regard.(if there any similer code it would be a great help).
Thank you all in advance!!!!
RaviHi Bhanu,
thanks for your fast response, but this did not help. To make it more clear:
Lets assume, I have the following hierarchy:
<Root>
|
+- Good Customers
| |
| +- Customer_A
| |
| +- Customer_B
|
+- Bad Customers
|
+- Customer_C
|
+- Customer_D
I have the customer in the free characteristics of a more complex query. I restricted it to the hierarchy node "Good Customers".
In the web template i use a "Dropdown Box" with the customer as the assigend characteristic and read mode "Dimension".
In this example the dropdown box would show the entries
- All values
- Customer_A
- Customer_B
But I would like to see the entries
- All values
- Good customers
I already tried various settings in the query definition concerning the display hierarchy of the customer char with no success yet.
Regards,
Philipp -
Why the graph in Labview does not plot when there is a different set of data collected
Hi everyone,
I need help from you guys as I faced a problem with my Labview program. Actually, what I am trying to do with the labview program is that I will be collecting data of different days and use them to plot graphs according to the date that i have set in my program. However, my graph fails to plot whenever there is a change in date, it remains at the first graph that is being plot at the start of the program. I have tried to look through the whole process and found out that actually the execution of my graph in the program is not completed which might cause this program. Therefore, I hope that you guys can help by taking looking through my program which has been attached and tell me the solutions if any! I really appreciate your help! It is a winrar file, extract them and open the AMK_solar monitoring system(stack).vi
Regards,
Kok Wan
Attachments:
Ftp version SMS.zip 1722 KBHi Kok,
"no formatting needed"
Why do you feed "2358" to FormatDateTimeString? The result will be "2358" - so no formatting function needed...
"other timestamp functions"
Found deep in your subVIs. You can work on timestamps as numbers, no conversion to/from string needed...
This contains 3 unneccessary locals and a race condition resulting from overuse of locals...
"The problem is I cant still get my graph plotting"
Which graph? There are a lot of it...
Don't you read new data (correctly)? Is the data arriving in the correct wires?
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome -
How do I summarise a set of data
Hi All,
I am trying to group a set of data but am struggling to return what I need.
The following is a snippet of the data:
SEGMENT1
SEGMENT2
SEGMENT3
SEGMENT4
SEGMENT5
PERIOD_NAME
PERIOD_NET_DR
PERIOD_NET_CR
103600
2256
00
1
000
APR-13
4,157
0
103600
2256
00
1
000
AUG-13
4,157
1
103600
2256
00
1
000
DEC-13
4,157
1
103600
2256
00
1
000
FEB-14
4,157
1
103600
2256
00
1
000
JAN-14
4,157
1
103600
2256
00
1
000
JUL-13
4,157
1
103600
2256
00
1
000
JUN-13
4,157
1
103600
2256
00
1
000
MAR-14
4,188
14
103600
2256
00
1
000
MAY-13
4,157
2
103600
2256
00
1
000
NOV-13
4,157
1
103600
2256
00
1
000
OCT-13
4,157
1
103600
2256
00
1
000
SEP-13
4,157
1
I need to produce a report as follows:
SEGMENT1
SEGMENT2
SEGMENT3
SEGMENT4
SEGMENT5
YEAR_TO_DATE_BUDGET
APRIL-13
May-13
Jun-13
Jul-13
Aug-13
Sep-13
Oct-13
Nov-13
Dec-13
Jan-14
Feb-14
Mar-14
103600
2256
00
1
000
49890
4,157
4,174
4156
4156
4156
4156
4156
4156
4156
4156
4156
4174
Year_to_date_budget = SUM(Period_Net_DR) - SUM(Period_Net_CR)
Monthly budget = Period_net_dr) - Period_Net_CR
I have managed to produce the report up to the year_to_date_budget column. However I struggling with getting the monthly_budget on the same line.
select GCC.segment1, GCC.segment2, GCC.segment3, GCC.segment4, GCC.segment5,
(sum(GB.PERIOD_NET_DR) - sum(GB.PERIOD_NET_CR)) Year_to_date_Budget
from gl_balances GB
,gl_code_combinations GCC
where GB.period_name in ('APR-13','MAY-13','JUN-13','JUL-13','AUG-13','SEP-13','OCT-13','NOV-13','DEC-13','JAN-14','FEB-14','MAR-14')
and GCC.code_combination_id = GB.code_combination_id
and GB.actual_flag = 'B'
and GB.currency_code = 'GBP'
group by GCC.segment1, GCC.segment2, GCC.segment3, GCC.segment4, GCC.segment5
Any help would be greatly appreciated.Hi,
That's called a Pivot. The forum FAQ, https://forums.oracle.com/message/9362005 , has several good links on pivots.
Even more than most things, pivoting depends on your Oracle version. In Oracle 8.1 (and up) you can do something like
SUM (CASE WHEN period_name = 'APR-13' THEN (period_net_dr - period_net_cr END) AS april_13
for each of the pivoted column. Starting in Oracle 11.1, you can also use the SELECT ... PIVOT feature.
I hope this answers your question.
If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only), and also post the results you want from that data.
Explain, using specific examples, how you get those results from that data.
Simplify the problem as much as possible. for example, instead of pivoting 12 months, just do 2 or 3 months. Once you know how to do 2 or 3 months, you'll know how to do 12 or any number. Likewise, instead of GROUPing BY 5 segment columns, just post a problem with 1 or 2.
Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
See the forum FAQ: https://forums.oracle.com/message/9362002 -
Group a report based on a hierarchy level
Hi,
I'm struggling with a query that I'd like to group a report based on the selection of a hierarchy level.
Here's the situation: I've got a table with a "normal" hierarchy, say the EMP table from SCOTT with its EMPNO and MGR columns. What I'd like to have is a report that gives me the sum of the SAL column group by all members on a given hierarchy level. So fi, if I choose LEVEL = 1, Id like to see the overall total, if I choose LEVEL = 2, I'd like to see the sum of salary of all employees managed by this respective manager etc.
I know that there are possibilities to denormalize the table first and try to solve it from there, but what I'd like to know is whether anybody is aware of a more generic way to achieve that? What I could accept is a hard coded limitation of the number of nested levels, as this seems to be very hard to achieve in SQL.
In the real scenario, I'm using only balanced trees, so from that point of view, the reports will be consistent.
Any ideas?
Thanks, Jürgenselect l, sum(salary) from (SELECT last_name, employee_id, manager_id, salary, LEVEL l
FROM employees
START WITH employee_id = 100
CONNECT BY PRIOR employee_id = manager_id) where l > :input_level
group by l; -
How to set date according to hjrah calender : nls_calender='English Hijrah
Hello frnds
how to set dates according to "English Hijrah".
I have set my database nls_calender='English Hijrah' ,
as many people aware that Hijrah dates are depend on moon ,
so I want to know how to set the calender for next month date in the database according to "English Hijrah"
I have set my database calender like this :
Example 3-17 NLS_CALENDAR='English Hijrah'
Set NLS_CALENDAR to English Hijrah.
SQL> ALTER SESSION SET NLS_CALENDAR='English Hijrah';
SELECT SYSDATE FROM DUAL;
You should see output similar to the following:
SYSDATE
24 Ramadan 1430
now I want to set the next month calender ...
I think my question is litte bit confusingmy db version 10.2.0.3
and above metalink id 121061.1 , I have tried from this document , but the change is not effected ,
the steps what I have down ;
1) shutdown the database
2)$oracle_home/nls/lxecal.nlt
i have created new file , and the contents is: syntax or algorithm
DEFINE calendar
calendar_name="English Hijrah"
DEFINE calendar_deviation
deviation_data= {
<"MAY-30-2009 ad">:11
ENDDEFINE calendar_deviation
ENDDEFINE calendar
note: i have to subract 1 day from current month
3) run the file
$ lxegen
4) sql>startup
5) sql>ALTER SESSION SET NLS_CALENDAR='English Hijrah';
6) sql>select sysdate+2 from dual;
SYSDATE+2
30 Jamada El Oula 1430
but my expected output should be like this
SYSDATE+2
01 Jamada El Thaniah 1430
note: that is after 2 days from today I need 1 st of next month , but its showing 30 th of present month , bcoz according to arabic month , present month is for 29 days only... -
Revision: 4793
Author: [email protected]
Date: 2009-02-02 11:20:06 -0800 (Mon, 02 Feb 2009)
Log Message:
Fix bug SDK-17734 Path with width and height set different than path data has incorrect bounds
Fix: When calculating the bounds position we should take into account the implicit scaling factor actualSize/naturalSize. Also did some refactoring, getting rid of the protected method calculateTopLeft.
QE Notes: None
Doc Notes: None
Bugs: SDK-17734
Reviewer: Ryan
tests: mustella gumbo/layout/GraphicElement
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-17734
http://bugs.adobe.com/jira/browse/SDK-17734
Modified Paths:
flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/Ellipse.as
flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/Path.as
flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/GraphicElement.a sThank you so much for replying.
Yes I have removed and reinstalled WMP.
I had good results with the PD6 application installed on the default path onto the C: drive with the one exception that if the application was launched by accident and the user data path was not available, the PD6 application would blow away my custom user path registry settings. Now that I know what they are I have made a .reg file to repair my registry to my desired user data paths.
Installing the application on the removable drive appeared to help prevent me from launching the application by accident and overwriting my registry with default user paths.
So which is the less of the two evils?
If the application directory is not available, windows media player still tries to launch the .msi for installing PD6.
If I install the application to the C: drive but the user data to the removable drive, launching the PD6 application without the user data drive will still corrupt my registry settings for a user data path.
Both these issues seem like a logical (if not easy) fix that should be done in the PD6 application and installation package. I mean really, cannot anyone tell me why windows media player is checking the PD6 application directory? Why in PD4 did we have an option control for setting the user data path from the PD4 application? Why is this option not in the PD6 application, just the installer?
I am given a choice during installation to move the user data to another non default location. Why else would this be provided if not to accommodate my kind of request to store the user data into an alternate location other than “My Document”. Certainly Palm is not trying to force the users on how to protect and store their personal data?
Post relates to: Centro (Verizon) -
Can anybody please tell me,
Why & when it is necessary to maintain code group & selected sets. Where it is then use. What is releation between them.Will appreciate if explain with suitable example from industry. Please helpout.Newcomer in QM.HI
code groups are used in Notifications and quality result parameters.
Code groups are used to combine and structure codes within a catalog type
code groups at client level to group codes that have the same contents or relate to one another, within a catalog type. Codes, that are assigned to a code group are also known as group codes.
When you maintain the code group index, the system locks the required catalog type for other users. However, if you use the individual maintenance function, only the required code group is locked.
these are can ot create by plant wise.
1.when you have material which measures by means of color then you canhave code group color and codes of red ,black etc..
2.if you have defect codes then you can mention them
3.if you have problems of perticular part, then in notification by use of codegroups and codes you can enter the data.
A selected set contains a combination of different codes at plant level, for example, coded descriptions of characteristic attributes (such as color, shape, surface characteristics), defect causes or usage decisions from different code groups.
selected sets to combine codes from several code groups for processing that are allowed or useful for a particular application.
Codes that are copied into a selected set are known as set codes.
When you maintain the selected set index, the system locks the required catalog type for other users. However, if you use the individual maintenance function, only the required selected set is locked.
4.with combinationof code and code groups you can create the selected sets , canbe used in Usage decission.(ex:aprroved, no approved,ok, not ok etc)
Code groups are createsd by Qs41
Logistics ® Quality management ® Quality planning ® Basic data ® Catalog ® Code group ® Edit
Selected sets are created by QS51
Logistics ® Quality management ® Quality planning ® Basic data ® Catalog ® Selected set ® Edit
-ashok -
Filter omni portlet output data according to portal user
We have created an omniportlet that connects to a database, and retrives some values into a defined HTML layout.
We want to filter output data according to our portal current user name
When we try to use portal.wwctx_api.get_user inside of omni portlet select statement fallowing error occurs.
Error in executing Query : [ORA-06510: PL/SQL: unhandled user-defined exception ORA-06512: at "PORTAL.WWCTX_SSO", line 1803 ORA-06510: PL/SQL: unhandled user-defined exception ORA-06512: at "PORTAL.WWCTX_SSO", line 1637 ORA-06502: PL/SQL: numeric or value error ORA-06512: at "PORTAL.WWCTX_SSO", line 1865 ORA-06512: at "PORTAL.WWCTX_API", line 183 ]
Thanks a lotThis is because the Omniportlet is actually operating within a different context--a separate database connection from the Portal connection. We have similar issues with Java portlets. You might try creating a public parameter on the portlet, then mapping that to the system variable USER (done on the Parameters tab of the page where you deploy it--if you don't see a parameters tab, you must enable Parameters and Events at the page group properties level). I haven't tested any of this, but it should get you going in the right direction.
-
TRY CAST and setting the type according to destination column
Hi,
I am loading data from different sources. I have to do data quality checks for data I am loading into destination. For Decimal Values I have destination data types Decimal(28,2) and Decimal(28,6)
I would like to check the source data and covert the type according to destination column. How can I use the try cast in this scenario?
SELECT TRY_CAST(REPLACE('100,500.000',',','') AS DECIMAL(28,2))
this statement will convert every thing to two decimal places. but if destination column is decimal(28,6) i would like to convert it to 100500.657899
What is the best way of doing it?
MHHi MH,
According to your description, you need to CAST and setting the type according to destination column which data types is Decimal(28,2) and Decimal(28,6), right?
"this statement will convert every thing to two decimal places. but if destination column is decimal(28,6) i would like to convert it to 100500.657899" If in this case, then there are different data types on the same column which is not
supported in current version. So as per my understanding, there is no such a functionality to achieve your requirement. What we can do is convert to corresponding datatype (Decimal(28,2) or Decimal(28,6)), and then convert it to nvarchar datatype.
CREATE TABLE #TEMP(A NVARCHAR(50))
INSERT INTO #TEMP VALUES('1538.21'),('1635.326541'),('136.235')
SELECT
A,
CASE
WHEN (LEN(RIGHT(A,LEN(A)-PATINDEX('%.%',A))))>2
THEN
CAST(A AS DECIMAL(28,6))
WHEN (LEN(RIGHT(A,LEN(A)-PATINDEX('%.%',A))))<=2
THEN
CAST(A AS DECIMAL(28,2))
END AS B,
CASE
WHEN (LEN(RIGHT(A,LEN(A)-PATINDEX('%.%',A))))>2
THEN
CAST(CAST(A AS DECIMAL(28,6)) AS VARCHAR(99))
WHEN (LEN(RIGHT(A,LEN(A)-PATINDEX('%.%',A))))<=2
THEN
CAST(CAST(A AS DECIMAL(28,2)) AS VARCHAR(99) )
END AS B2
FROM #TEMP
DROP TABLE #TEMP
Regards,
Charlie Liao
If you have any feedback on our support, please click
here.
Charlie Liao
TechNet Community Support -
Different FM posting dates in PO or PR item with multiple accoun. assignmen
Hi,
I'd like to know if there´s a way to assign different FM posting dates, for each line of a distributed item in a PO or PR.
Example:
Purchase Requisition 4500000010
Item 1 (has 2 different account assignments or is distibuted by percentage)
50% goes to fund center XXXX, etc.
50% goes to fund center YYYY, etc.
Right now we have the update profile for the PR set to delivery date, but it will assign the same FM posting date to the two different account assignments of item 1, because delivery date is on Item level. What I need is to know if there's a way to indicate the system to take different posting dates for each account assignment within the Item 1.
I hope that I was clear enough to make understand.
Thanks in advance.
Kind regards,
VíctorHi Victor,
I do not think, it's possible in standard...
Regards,
Eli -
Discoverer 10g, it returns no data
Hi all,
I have a doubt can any one clarifies.
Currently I work migration projects from 4i to 10g discoverer reports (Upgraded 11i to R12). Previously in 4i discoverer reports many views used and data also populated. Same query in discoverer 10g, it returns no data. I can view the data after setting client org id in the toad but can’t view the data in the discoverer reports. Even I tried to register as a function for setting client org id and use in the discoverer reports but result is no rows return. Can any one suggest?
Regards,
Prasanna
no dataHi,
Check Metalink Note 732826.1. There are some extra steps need to configure R12 with Discoverer.
Rod West -
Maintain Excise and series group determination setting
Hi Everybody,
In maintain excise group and series group determination setting. My all the fields are common for both domestic and export and i have to differentiate with automatic excise invoice. When i was trying to do the setting in Maintain excise and series setting. Its not allowing me to save it.
I explain in a better way
Sales org. Distribution ch. Division shipping point Plant excise Group series group export sub transt. type
in03 z1 z1 inpa inpa z1 z1
All these fields are common for export also. when i try to maintain setting for export. i just try to add export field as export under bond. But it stops to do that. And our company policy is we can not create more distribution channel or division.
Can anybody tell me how to do that or is there any user exit for this.Hi,
I had created a new series group and tried to assign in the maintain excise and series group determination. But it give the same error "target ket must be different from the source key"
What i had done is : i had created new series group i.e z3
and maintained setting like that
in03 z1 z1 inpa inpa z1 z3 Export under bond
when i try to save it, it gives error.
Maybe you are looking for
-
Query running on sql commands prompt not running on report region
Hi All, Facing a weird issue now. I have written a report query which is running absolutely fine in sql command prompt but when i trying to run this as a report it is just processing and the report is not loading. What could be the reason behing this
-
Is there any way in Firefox for android to use native handlers?
In Firefox for windows or Linux, I can register a URL handler (e.g. mailto:) but android takes this to a new level with intents which can register responders for individual URIs as well as for and mine types. Are there any plans to natively support a
-
Hello there, a newbie here. I would like to know how do I make a loop with httpservice calls inside. I have an array called storyID, let's say: storyID = [4542,2354,2354,1234,7653]; StoryID isn't always 5 elements long, it varies. The httpservice cal
-
Playstation 2.04 PUP file
Yeah it is 2.51 here's the link https://www.playstation.com/en-us/support/system-updates/ps4/
-
I want to post any number of absence hours and attendance hours in infotype 2001 and 2002 and dont want the system to issue collisions and stop me from doing that. How can i do that. Thanks