Conditions for results row in query
Hi,
I've query with conditions. Let us say without conditions query result has 10 records. But After applying conditions result has 4 records.
When you check the result row the subtotals and totals are coming wrong. Result rows are considering the 10 records.
How can I get the result row has to consider only those 4 records after conditions.
Hi,
I have the same problem. And I didn't find any solution.
kind regards
Tobias
Similar Messages
-
Can we put condition for color in bex query designer
hi all,
can any one guide me how to put a condition for color settings in query designer
for example:
i have a key figure like ANSWERED%.in analyser it should display in red if answered% exceeds 95%.
please help me in this issue.
regards
Vamshi D Krishna.Hi,
Use Exceptions while designing your Query.
Please go through the link
http://help.sap.com/saphelp_nw04s/helpdata/en/43/21b4cd14cd06f4e10000000a422035/frameset.htm -
Query with a condition - Overall results row is wrong
Hello,
I have a query that uses a condition. The query gives me the top 10 brands according to the Net Sales. The query itself runs fine. I just noticed however that the Overall Result row isn't giving me the correct number.
For example:
<b>BRAND NETSALES MARGIN %</b>
Brand1 $100 25%
Brand2 $60 10%
Brand3 $20 15%
<b>OVERALL RESULT $210 2%</b>
As you can see it does not add up or average correctly. This query has no macros or anything, it only uses a condition.
Any suggestions?
Thanks,
NickA workaround I have found is the manual directions in this OSS note: 572910
Anyone have any follow up?
Thanks.
Nick -
Query with a condition - Overall results row displays incorrect value
Hi All,
I have a bw query with top 40 conditions. However, The Overall Result Row Figures Do Not Equal The Sum of the Column Rows.
Although the top condition is activated, the overall result still displays the overall result of the whole report.
I have 3 columns in the report
Selected Period
Prior Period and
Variance
The formula for variance is (Selected Period/Prior Period)-1.
Does anyone have an idea to fix this?
Thank you so much in advance.
Have a great day!Hi Gaurav,
Thank you so much for your reply, however this does not solve fully the issue.
Changing the properties to "Summation" will indeed provide me with the correct sum for the "selected period" and "Prior Period." However what I need in the Overall Result Row for the "Variance" column is not the total but instead the value when the total of Selected Period is divided by Prior Period then minus 1.
Overall Variance = (Overall Selected Period/Overall Prior Period)-1
Do you know a way to make this possible.
Thank you so much. -
Missing Result Rows on Query with Conditions
I have a query that has a condition to show only items over $2500.00. We have a result row that shows for plant when the condtions is not on but once the condition is set that result row goes away. Does anyone know how to get a result row to show up on reports with conditions? Thank you.
CarolineHi Caroline,
In BI 7.0, you goto do this in Query Designer.
Select any of your characteristic in the designer and choose Display Properties to always display result.
Then run the query.
Assign Points if Helps !!
Regards,
Naveen Rao Kattela -
Warning Message - Conditions with Result Rows Suppress
Hi All
I created a query with conditions and 'Suppress Result Rows - always '. When I run the query in Bex, I get this warning message showing me that conditions exist with result rows suppressed '. Is there a way to avoid getting this warning message.
ThanksHi Krishna,
If you want to suppress the message for all users centrally for this particular query, you can do so in RSRT. Put in your query technical name and click on the Messages Button. Check as required to suppress.
Hope this helps... -
Position of Result Row in Query
Hi Experts,
I am using Hierarchy in Infoobject, as a result, the query result rows stay in front of characteristic after report was generated:
refer to this picture:
[url]http://imageshack.us/photo/my-images/155/resultrow.png/[url]
is there anyway to move the result row to behind like wat normal queries does?
Thanks.Hi,
Please check the links:-
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/c047853e-15bf-2d10-808a-b81acc227a83
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/00d00c2b-5a42-2e10-6288-b9ad2e863761
Hope it helps.
Regards,
Prakash -
Percentage Calculation for result rows
Hi
I have problem with percentage calculation on result rows. I have 2 KFs A and B, the result is calulated by setting 'calculate result rows as' to 'summation'.
But in KF 'C' (which is calculated as A/B*100 ),
Now the probles is the systen picks up original values of A and B for calculation of C in result rows.
i.e. system picks up values of result rows for A and B for
setting 'calculate result rows as' to 'nothing defined'.
Any ideas on how to fix this.
Thanks
KarenKaren
I found something in Forum for you
Result Rows Calculation
Pradip's Solution should work. Try and if it is don't forget to award points.
Regs
Gopi -
Alternative for result from other query and merge dimension option option
Hi Everyone ,
Am Developing one webi report over bex Query.
Actual scenario is output of one webi report should be the input of other webi report.
Eg:
Table 1
2010 Cus 1
2010 Cus 2
2011 Cus 3
table 2
cus1 m1 100
cus2 m2 200
Cus3 m1 400
Report 1 designing
First report created using table 1 and prompt for year
Report 2 designing
Second report created using table2 and prompt for customer
So when am Running first report it will ask for parameter year and if am selecting 2010 then the report will return C1 and C2
this out put should e the input for report 2.
So out put will be 100+200=300
NOTE:1. Result from other query is not working in webi filter pane since am building on olap universe.
2. Merge Dimension performance is very slow .
Any Solution ?
Regards,
Kannan.BHi,
Thanks for ur reply
As you said , If am giving hyperlink to other report .
Eg: User selected Tamilnadu then report 1 opened then he has to click the some cell or hyperlink cell to view the actual report(2nd report).
Suppose user Clicked that hyperlink cell and 2nd report opened and he is viewing the data for Tamil nadu and he decided to see the report for
Andrapradesh so according to this logic he has to select first report and refresh the data for Andra and from there he has to come to 2nd report.
totally 4 screen will be opened for seeing the two states report.
So Some other alternative....... -
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 -
How to Caculate Substraction of only for result rows in BEx
Hi,
I have a issue in BEx Report.
The scenario is like this.
Invoice Amount Invoice Paid Amount Pending Payment Amount
17.90 INR 3,472.00 INR -3,454.10 INR
524.50 INR 3,472.00 INR -2,947.50 INR
1,017.40 INR 3,472.00 INR -2,454.60 INR
1,790.60 INR 3,472.00 INR -1,681.40 INR
35.80 INR 3,472.00 INR -3,436.20 INR
57.20 INR 3,472.00 INR -3,414.80 INR
28.60 INR 3,472.00 INR -3,443.40 INR
3,472.00 INR 3,472.00 INR -20,832.00 INR
I am substracting (Invoice amount-Invoice Paid Amount) in a formula.
All the records are comming fine, but when it comes to result rows
it gives Sum(Invoice Amount) - Sum(Invoice Paid Amount) which is giving a value -20832.00.
As per my requirement it should 3472.00-3472.00=0.00.
I have Checked with SUMGT,SUMRT,SUMCT function, it is not comming.
Even checked with Exception Aggregation.
How to solve this issue, in other way.
Regards,
SubhHi,
I suggest one of these 2 solutions :
1-Instead of using a sum formula in the end of rows, simply put the line caracteristic result property to always appear : caracterisic menu -> representation -> lines result -> always show.
In this way, u dont have to use a formula and the sum will be done natively.
your result will be like this :
Invoice Amount Invoice Paid Amount Pending Payment Amount
material 17.90 INR 3,472.00 INR -3,454.10 INR
524.50 INR 3,472.00 INR -2,947.50 INR
1,017.40 INR 3,472.00 INR -2,454.60 INR
1,790.60 INR 3,472.00 INR -1,681.40 INR
35.80 INR 3,472.00 INR -3,436.20 INR
57.20 INR 3,472.00 INR -3,414.80 INR
28.60 INR 3,472.00 INR -3,443.40 INR
Result 3,472.00 INR 3,472.00 INR -20,832.00 INR
2- Try to use the NODIM function before the sum formula : nodim(sum()) - nodim(sum())
Hope this helps
regards
Raed -
Appearance of result row in query
Hi guys,
I have the following query example (part of it):
row1 100.000 credit amount
row2 100.000 credit amount
row3 100.000 credit amount
result 300.000
I only want to be displayed:
row1 ...
row2 ...
row3 ...
result 100.000
I know how the rows (1-3) can be handled that they appear empty but don´t know how to handle that the result appears in 100.000.
I thought about exception aggregation but the key figure Im using in this case is not calculated (only uploaded). And as far as I know the expection aggregation only works for calculated key figures.
Any idea?Hi, There are 2 ways, 1st you can define 'Constant' selection else if there are some issues due to CKFs' restrictions 2nd method is to perform a simple average you can try using a simple 'Formula' like SUM(X) / # of records. Ex. (100100100)/3 = 100. Try using the option which retains the value constant, else you can also define the 'No Display' in o/ps like 'Display Results As..' in the last tab of BEx titled 'Calculations''. You can get the # of records by using 0ROWCOUNT in case of DSO or using Data Functions like COUNT(X).
-
Programmatically get result rows from query component?
I am using a af:query for searching values without the table. When i search, is there any way in which i can get the search results Programmatically?
Thanks
AjayIntercept the query invokation using your own queryListener method, and then get the Iterator from the VO. http://jobinesh.blogspot.com/2011/03/retrieving-viewcriteria-from-custom.html
-
Data declaration for result of dynamic query
Good day,
can you help me with declaration of data for query result that can be from any columns of any tables.
For example (this is from SAP documentation):
DATA: wa TYPE spfli,
ftab TYPE TABLE OF STRING.
APPEND 'CITYFROM' TO ftab.
APPEND 'CITYTO' TO ftab.
SELECT DISTINCT (ftab)
FROM spfli
INTO CORRESPONDING FIELDS OF wa
WHERE
carrid = 'LH'.
WRITE: / wa-cityfrom, wa-cityto.
ENDSELECT.
This is clear to me, but I don't know how to do in case FROM clause is generated dynamically too.
SELECT DISTINCT (ftab)
FROM (tab1)
ThanksCheck out this sample program....
report zrich_0002.
type-pools: slis.
field-symbols: <dyn_table> type standard table,
<dyn_wa>,
<dyn_field>.
data: alv_fldcat type slis_t_fieldcat_alv,
it_fldcat type lvc_t_fcat.
type-pools : abap.
data : it_details type abap_compdescr_tab,
wa_details type abap_compdescr.
data : ref_descr type ref to cl_abap_structdescr.
data: new_table type ref to data,
new_line type ref to data,
wa_it_fldcat type lvc_s_fcat.
selection-screen begin of block b1 with frame title text .
parameters: p_table(30) type c.
selection-screen end of block b1.
* Get the structure of the table.
ref_descr ?= cl_abap_typedescr=>describe_by_name( p_table ).
it_details[] = ref_descr->components[].
loop at it_details into wa_details.
clear wa_it_fldcat.
wa_it_fldcat-fieldname = wa_details-name .
wa_it_fldcat-datatype = wa_details-type_kind.
wa_it_fldcat-intlen = wa_details-length.
wa_it_fldcat-decimals = wa_details-decimals.
append wa_it_fldcat to it_fldcat .
endloop.
* Create dynamic internal table and assign to FS
call method cl_alv_table_create=>create_dynamic_table
exporting
it_fieldcatalog = it_fldcat
importing
ep_table = new_table.
assign new_table->* to <dyn_table>.
* Create dynamic work area and assign to FS
create data new_line like line of <dyn_table>.
assign new_line->* to <dyn_wa>.
* Select Data from table.
select * into table <dyn_table>
from (p_table).
* Write out data from table.
loop at <dyn_table> into <dyn_wa>.
do.
assign component sy-index of structure <dyn_wa> to <dyn_field>.
if sy-subrc <> 0.
exit.
endif.
if sy-index = 1.
write:/ <dyn_field>.
else.
write: <dyn_field>.
endif.
enddo.
endloop.
Regards,
Rich Heilman -
AJAX Report Refresh a_report- Condition for display not being validated
Hi ,
I have a report which has the following condition for dispaly:
Exists(SQL query returs atleast one row) - SELECT * from temp1The query for the report is : select * from temp1 Now I have a button on the page and on click of the button I call the below Javascript :
function f_insert_Temp_table(pTrans){
var l_Return = null;
var get = new htmldb_Get(null,$x('pFlowId').value,
'APPLICATION_PROCESS=temp_table_insert',206); // ODP to insert into temp1
get.add('TRANS_ID_ITEM',pTrans);
gReturn = get.get('');
//alert(gReturn);
//$x_Show('6342610690289435');
$a_report('6342610690289435','1','15','15');
}Everything executes fine and the report refreshes the rows but the condition used for display doesn't get checked when I call $a_report() ...
I can see the ODP execute successfully and row gets inserted into temp1 which means report condition is satisfied .
If I remove the condition for the report, I can see the report getting refreshed and showing new rows through the $a_Report() call.
Is there something that needs to be added to the script or $a_report call to validate the condition too ?Is there a way I can validate the region condition too ?
Appreciate any suggestions/pointers here. I really do not want to refresh the whole page.
Thanks,
Dippy
Edited by: Dippy on Feb 5, 2010 11:05 AMHi Flavio,
Thanks for your support.I figured where I was going completely wrong.
Its just that when the page loads for the first time the temp table is empty and hence the report is not being displayed which simply
means that the report id Im passing into the a_report function is not rendered on the page. Hence no matter what the temp table contains the report id is absent from the page.
I fixed it as follows :
Remove the condition for the report.
Added and item and computed(P_Compute) its value using select count(*) from temp.
Added an onload JS function which does a $x_Show('Report_Region') if P_Compute > 0 or $x_Hide('Report_Region') if P_Compute <0 .
Now in my JS function which has an AJAX call to an ODP does an $x_Show('Report_Region').
Flavioc : the query for my report is simple
select * from tempIt finally dawned upon me that I'm trying to catch hold of an ID that's not rendered.
So one issue is solved now the other part would be figuring out how to make $a_report work with pagination etc .
Maybe you are looking for
-
i cannot click to veiw video ,i cannot click my address book for e-mail addresses ,i can go to websites but once i get there it wont let me do anything
-
Won't save preferences-Mac OS X
I want PSE to add file extensions to each file name. Under Photoshop Elements>Preferences>Saving Files>Append File Extension>Always & click OK However, PSE will not save that pref. If I close PSE, then reopen to that preference, it defaults back to
-
Any suggestions as to the best/most efficient way to process Acrobat files to Microsoft word with the least amount of work in re-formatting? We currently have Acrobat 8 (Windows/OS-XP) and would like to know if there are any layered utilities to spee
-
We can't export as .m2ts files?? how can i retain full quality?
so we can import .m2ts files into CS4, we can edit them in CS4, but we can't export them out of CS4? how can I retain full quality?
-
Change screen resolution on netbook
I've just installed arch linux with xfce. When I try to change the resolution, the only options are 800*600 and 640*480. It also does not recognize my external monitor. How can I fix this? Thanks