Query Designer - Rows between Columns
Dear all,
I've got the following requirement and I really cannot figure out if it is doable.
I would appreciate your help.
I shall create a query using Sap Query Designer regarding the actual and budet data of the assets (it's a financial report).
I'll have 2 columns for the actual data and 2 columns for the budget data.
Is there any way:
a) to have the assets (the rows) in the middle of the report layout, and
b) the actual data on the left side of the assets, and
c) the budget data on the right side of the assets
The goal is when drilling down the assets, both pairs of columns to be expanded as well.
Is it doable? Is there any trick?
Thanks in advance.
Dear Riyez
I do thank you for your response.
I am wondering if there is something someone could possibly do on the Query Designer side in order to fool the system.
For instance, to design a virtual structure (I do not know how - I am thinking loudly) which would be identical to the structure that holds the assets?
In other words, is it designeable to have a row structure, then the column key figures and, finally, another row structure identical to the first one? And when the user expands the first structure, the second structure will follow accordingly?
Or such a solution is out of question?
Similar Messages
-
How to design rows and columns in sapscript layout
Hi friends,
Please let me know how to design rows and columns in sapscript layout with example?
Thanks,
YogeshHi friends,
Please let me know how to design rows and columns in sapscript layout with example?
Thanks,
Yogesh -
Cursor in select query in row to column format
Hi
I have the query like below
SELECT d.department_id,
CURSOR(SELECT e.first_name,
e.last_name
FROM employees e
WHERE e.department_id = d.department_id
) emps
FROM depatments dI want the result set in a format of Row To columns like
10 20
<cursor result> <cursor result>pls give ur suggestions how to achieve this in a efficient way?I tried the method of "max(decode(.." but dont think so its possible with thisvishnu prakash wrote:
Hi
I have the query like below
SELECT d.department_id,
CURSOR(SELECT e.first_name,
e.last_name
FROM employees e
WHERE e.department_id = d.department_id
) emps
FROM depatments dI want the result set in a format of Row To columns like
10 20
<cursor result> <cursor result>pls give ur suggestions how to achieve this in a efficient way?I tried the method of "max(decode(.." but dont think so its possible with thisNumber of column of a select query is static. Must be known at the parsing time itself. But in your case i dont think the number of columns will be limited to 2 (10 and 20) there could be many more.
You can search this forum to see how to PIVOT your data. There are lot of example. You can also try dynamic pivot. Its all in here, just search. -
Query designer - heading in columns of reports
Hi colleagues,
I am quite new to the BW 7.0 Query Designer, and there is one thing I can't figure out!
When I add a Key Figures in my columns and call them f.ex Budget Amount, Actual Amount and Deviation, they don't bring these names to the web when I run them! Instead they are called Selection 1, Selection 2 and Formula 1...
<b>How can I make the query bring the headings I set in the query designer to the web!
Regards SiljeHi Madhura,
Welcome you post on the SCN.
This forum is not for you. Please check this: How to get a count of report instances? and post there or any other suitable forum.
Thanks,
Gordon -
Query designer - in the columns i have two keyfigures but report should be
Hi Gurus
we have one query -to display BUDGET / ACTUAL data -
in the columns i have taken BUDGET and ACTUAL Keyfigures.
In the Free characteristic i have taken FISCPERIOD and VALUE TYPE as varible entry for the user.
while executing report if they give value type as budget the report displays as below
BUDGET ACTUAL
sales 500
if they enter value type as Acutal the report displays as below
BUDGET ACTUAL
sales 120.455
here the user is expecting to see only one keyfigure value in the report
If they enter value type as ACTUAL they want see as below
ACTUAL
sales 120.455
If they enter value type as BUDGET they want see as below
BUDGET
sales 500
Could you please guide me how can we achive this.
In simple words i have 2 keyfigures in the columns but in the report only one key figure should be displayed.
Edited by: venkata rami reddy on Jan 22, 2010 8:21 PMHi,
It seems you are using a key-fig based model where as your reporting requirement conforms with an account based model. For example you have data in infoprovider as :
Fiscper Valtype Budget Actual
001.2010 Budget 100 --
001.2010 Actual --- 120
If possible, try to reload the infoprovider like below :
Fiscper Valtype Sales
001.2010 Budget 100
001.2010 Actual 120
Then you will have no problem in reporting
However, if you can't do so and using excel based reporting then you can use the idea of output template with some VBA help like below :
1. Hide the query output in a different sheet.
2. Refer to the current sheet only the value of the characteristics and for key figure write a BExgetdata function with an excel if condition which will read from the text cell which shows the value type and based to that value type will fetch the key figure of your interest from that cell.
--Akash -
Hi,
i have one table temp1:
select * from temp, it's display:
id name add
1 xx xx1
2 yy yy1
3 zz zz1
But i want display like this:
1 2 3
xx yy zz
xx1 yy1 zz1
Help me on this.....still problem not solveing.
help me on this.
normal output:
1 xx xx1
2 yy yy1
3 zz zz1
Actual output:
1 2 3..............................
x yy zz..............................
xx1 yy1 zz1................................. -
Display Query Output - Rows as Columns
Hi ,
I am fetching data as follows.
ITEM CODE, DESCRIPTION, UOM, PRICELISTNAME, PRICELISTVALUE
Item can exists in more than one price list.
I want get the output as follows
ITEM CODE, DESCRIPTION, UOM, PLIST1 PLIST2
X X X PLIST VAL1 PLISTVAL2
Y Y Y PLISTVAL2
Item X exists in PLIST1 and PLIST2, but, item Y exists in only Plist2.
Can this be possible. Please let me know, if some one as solution for this requirement.
Regards/PrasanthITEM CODE...DESCRIPTION....UOM.......PLIST1.......PLIST2
X..................X.........................X.............PLVAL1.....PLVAL2
Y.................Y.........................Y..............................PLVAL2 -
Formula creation in Query designer
Hi All
I want to explain a bit more on my requirement .
I have supplied qty and ordered qty and i have the difference between both which is called as service level as %. there will always be 100% for some suppliers and lessthan 100% . So i want to count only the 100% suppliers and divide by all the suppliers . so that i can get the perfect order . and the formula is below .
I need to apply a formula line count with 100% / line count in one of my querys how to do it the qury designer . Can you anybody guide how to do it .
Thanks in advance . I am sorry if i have posted in the worng fourm .
thanksyou must be having an infobject refering to say supplier say supplier no. ( like customer number).
STEP 1: create a new CKF ( formula in query designer on right columns panel)
STEP 2: create a formula variable with reference characteristic as supplier no . replacement path replaced with infobject->attribute value - constant 1.
STEP 3. you CKF " NO OF SUPPLIERS" definition would be as below
supplier counter .
STEP 4. identifying 100% suppliers.create a new CKF " NO OF 100% SUPPLIER " ( formula in query designer on right columns panel).
it definition would be
supplier counter * ( ordered qty == supplied qty ).
where supplier counter is formula variable. this will give total counts of supplier where ordered qty == supplied qty.
STEP 4.
divide CKF " NO OF 100% SUPPLIER " / " NO OF SUPPLIERS" -
Hide a row or column for characteristic value # in Query Designer
Hi gurus,
I would if we could hide a result row / column if one of the characteristic value is #. The requirement is actually to remove the meaningless row / column from the whole result set. For example, I have a char Material Group in the column. Since not every Material is assigned to a Material Group, I will get the following layout:
Material_Group A
Material_Group B
Material_Group C
Is it possible to define in query designer so that the column with # will automatically not be displayed?
Thanks,
MengHi Meng,
I guess we have the same users..
But there is one thing that is going to make a non sense on the report: if you do not display the "#" for material group, then the total of your query by material group will not be the summation of what is displayed on the screen...and if the user explort the information in Excel (pretty sure they will do so), you will have some calls that your query does not balance....
Based on that assumption, tell the users to assign a material group to the materials, so that this unassigned column disappears. You could even give them a control report listing all the parts that do not have a material group
If this is a standard business rule not to have a material group for all parts, then, what you could do is to change the text for empty rows for Material group, then the "#" will disappear and wil be under the text description you defined.
But keep in mind that your data is made of materials which do not have a material group in their definition, noraml or not ?
PY -
Doubt on Rows and Coloums in BEx Query Designer.
Hello, Experts.
I have a Doubt in BEx Query Designer.
In the Rows I have a Fiscal year Period, if the user enters the Fiscal year period for e.g. : 001/2006 .
in the columns i have forecast for the Fiscal year period which user entered ( 001/2006 ), and we have another column pervious ( Prior )fiscal year period ( 001/2005 ).
My Questions is , as we are Restricting with 001/2006 will the query retrieve the values of 2005 or not?
Thanks in Advance .
Sharpyes i am Doing Offest.
I moved this Fiscal year Period to Free char, and i Restricted with Pervious Fical Year period and Fical year period . it worked. but
when i kept this in Rows and deleted Previous Fiscal Year period . it is displaying blanks. in prior years forecast.
is it because i am Ristricting it to only fical year period which user entered
Colums--> Forcast ( User Entered year ) Prior year
Rows
Fiscal year period
Fiscal year period( user enterd )
Thanks -
Query to add a column in between existing cols of a table?
HI All,
I have two questions.
1. Query to add a column in between existing cols of a table? (not at the end. This is view of an order of output fields in a report)
2. How do I swap the contents of two columns in a table. Suppose in a table tab there are 2 cols , col1,col2 populated with some data.
I need a query(probably) to swap the col1 and col2 values . NOT AS A RESULT SET, BUT IT NEEDS TO GET CHANGED IN THE TABLE.
Please help !> 1. Query to add a column in between existing cols of
a table? (not at the end. This is view of an order of
output fields in a report)
Not really sensible ito DBMS - it does not care how you want to view the data. The sequence and formats of columns are what you/the application need to specify in the SQL's projection clause.
Also keep in mind to achieve this, the DBMS will need to rewrite the entire table to fit this new column in-between existing columns. This is not the best of ideas.
The projection of rows is dealt with SQL statements - not with the physical storage implementation.
> 2. How do I swap the contents of two columns in a
table. Suppose in a table tab there are 2 cols ,
col1,col2 populated with some data.
I need a query(probably) to swap the col1 and col2
values . NOT AS A RESULT SET, BUT IT NEEDS TO GET
CHANGED IN THE TABLE.
This seems to work:
SQL> create table foo_tab( c1 varchar2(10), c2 varchar2(10) );
Table created.
SQL> insert into foo_tab select TO_CHAR(rownum), TO_CHAR(object_id) from user_objects where rownum < 11;
10 rows created.
SQL> commit;
Commit complete.
SQL> select * from foo_tab;
C1 C2
1 55816
2 55817
3 55818
4 55721
5 105357
6 105358
7 105359
8 105360
9 105361
10 60222
10 rows selected.
SQL> update foo_tab set c1=c2, c2=c1;
10 rows updated.
SQL> select * from foo_tab;
C1 C2
55816 1
55817 2
55818 3
55721 4
105357 5
105358 6
105359 7
105360 8
105361 9
60222 10
10 rows selected.
SQL> -
In BI Bex Query Designer output, dont want to have unit at column Heading..
Hi
I have a BI Bex Query Designer report showing output with Qty unit at Column Heading level. Even in KF's Text i didn't mention unit. I want unit to appear to column fields instead of column heading. Pls let me know how to do that.
One more thing is: i have 2 reports exactly same except due date range is different. first report showing unit for each KF at the column heading level and for 2nd report showing column fields level... Surprising. Pls let me know what is the reason and how to control it.
Thanks...Hi Harpal,
Key figures can have scaling factors and units/currencies. Normally, units/currencies are displayed for every key figure, but not the scaling factors. If you activate the Display Scaling Factors for Key Figures, an additional header row is added to the row or column header. Information about the scaling factor and currency/unit appears in this additional header row, as long as it is consistent (for example, 1,000 EURO).
For more information, You can go through
http://help.sap.com/saphelp_nw04/helpdata/en/e0/52029f961aa84d869b9b20fa7f7646/frameset.htm
Hope it helps & resolves your issue.
Regards,
Pavan -
Query potal limits the Row in Query designer
Hi All,
When i am executing the query in Query designer 7 it is showing as 4 or 5 columns only. We need to show the complete report.Everytime we are clicking on next page and going forward. Because of this reason we are going for WAD.
Is there any alternate solution where we can show the maximum number of row in the first time execution itself??
Thanks in Advance
Regards
SathiyaHi Sathiya,
this can be done by enhancing the standard template. Check: [How to Enhance SAP BEx Web Analyzer (0ANALYSIS_PATTERN|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/200d6cb6-080e-2b10-84a5-b96723ad8f18]). This link will give you information howto...
Additional:
http://help.sap.com/saphelp_nw04s/helpdata/en/f9/7f12403dbedd5fe10000000a155106/frameset.htm
Go in you copy of 0ANALYSIS_PATTERN described in how to and help.sap link to WAD and modify the analysis web item. Paramter: BLOCK_COLUMNS_SIZE
http://help.sap.com/saphelp_nw04s/helpdata/en/76/489d39d342de00e10000000a11402f/frameset.htm
After that go to SPRO>SAP Netweaver>Business Intelligence>Settings for Reporting and Analysis>BEx Web>Set Standard Web Templates>Ad Hoc Analysis.
You have to restart the J2EE Engine that you changes will overwrite the existing ones...
Regards
Andreas -
Query Designer - Formulas in Results Row
Hi,
Is it possible to have a formula based purely on values in the results row? e.g.
Col A Col B Col C ColDl
Results Row 4 5 1 40%
Where Col D is Col A as a percentage of the total. I can create a formula for individual rows but not for the results row where it just seems to sum individual percentages.
ThanksHi Gaurav,
i have done what you have suggested:
In query designer > Properties for a Key Figure > Calculations > Calculate Result As > Nothing Defined,
I have set that, despite the rows are calculated as per formula defined in the key figure but the result field is not. The formula is only applied for the rows but not for the result. The result is olthough i have the setting you suggested a summation of that whole column and thats wrong.
Can you or anybody else help.
Thanks and regards,
Murat -
How to sum the result rows at query designer
Hi,
We want to sum the result rows which are at the end of the row by the help of query designer?So ,we directly see at analyzer
exp:
..A.jan...A.feb...B.may...B.jun...SumA...SumB....SumA+B
X..1............9..........6..............7........10.........13..........?????
Edited by: zarata on Oct 23, 2011 12:49 PM
Edited by: zarata on Oct 23, 2011 1:07 PMHi,
Could you please provide some more information.
if you have characteristics iobject whose values are (A, B etc) and calendar month in rows and then at column level you have key figures then if you have turn on the "Display Result Rows" property of both iobject in Bex as "Always" you can get the result. At the same time you can set "Display Overall result" property of the Query to get overall result.
Regards,
Pravin
Maybe you are looking for
-
My palm m105's touch screen doesn't work properly after a sync.
I dug out my old m105, put new batteries in and start it. On first launch it auto runs the alignment tool, and after touching all the points it goes to the main screen and works fine. No problem till here. Now, I plug it into my old computer which st
-
Signaturen bearbeiten in Adobe Acrobat XI Standard
Hallo zusammen, wir verwenden seit längerer Zeit schon die digitale Signatur in Adobe Acrobat. Nun würden wir in diese Signatur gerne noch die Tätigkeit des Unterzeichners hinzufügen und anzeigen lassen. Besteht die Möglichkeit ein extra Feld dafür a
-
Adobe Reader Version 10.0.2 for Windows?
Some users are getting prompted to update Reader 10.0.1 to 10.0.2 on our Windows PCs. But i can find no reference to a Windows version of this patch, only Macintosh. In fact, the release notes http://kb2.adobe.com/cps/837/cpsid_83708/attachments/Ac
-
Problems answering the sercuity Questions. Can not remember the Answers <Email Edited by Host>
-
Adding text to parentStory destroys XML element / JavaScript, InD CS4
Dear scripters, I'm currently stuck with this problem: - I'm writing text to text frames on a layout page - while writing some characters/strings are XML tagged (I'm creating an element) - I can do this only once, because adding more text after I hav