Filter Where KF Results Row Equal Zero
I want to write a query that shows cost centre line item data but I only want to see cost centres where the overall amount comes back tro zero. Anybody any idea how I filter out other cost centres where the overall amount doesnt come back to zero? I cant filter by key figure and I dont understand how I put a condition against the result row for a cost centre as cost centre isnt the only row as I want see spend against all cost centres. Does that make sense? Any help greatly appreciated.
Ok. I suggests you the following
for eg if A, B and C is the KF's used for 'total amount' calculation.
then please calculate that total amount in the infoprovider level itself and give it as an infoobject.
that infoobject you can use in declaring an exception in you BW qeury .
Regards:)
Similar Messages
-
Result row display in a Bex query in BW
Hi ,
I have a problem where the result rows are not getting displayed for row where only one line is getting displayed.
Basically, in column i have a 2 columns one is a normal characteristic for customer and another is a hierarchy field (Product Hierarchy) against some key figures.
But , for a given customer and product hierarchy their is only one line occuring .
Here, the result line is not appearing .
This condition is appearing only where their is a single line comming up.But, where multiple lines are appearing , the result line is getting displayed.
The results are not visible at the level 1 when there is only one occurrence and even if the option in Query Designer is :- results rows is u201Calways displayu201D.
Is their any other setting i need to do in order to correct this.
Thanks in advance,
Balaji Rajhello Balaji,
i had a similar problem with a query.
in this query a resultline was never shown for a characteristic - even when i choose the option "ever show result line" for this characterstic.
which sap note did you apply?
regards
philipp -
Filter using Function resulting incorrect where cause
Hi,
I have a requirement wherein i have to filter a column based on a combination of mutiple hierarchy dimensions for which i am using Filter Using Function
ex.
Filter Metric A Using Dimesion A - Range 50 -100
Filter Metric A Using Dimension A - Range 25 - 50, Dimension B Range 0 -100
When i have a report with these metrics alone then it works fine but when both metrics are exposed on a single report
The where clause results in something like this
(Dimension A > 50 OR Dimnesion B > 0) AND (Dimension A > 25 OR Dimension A < 100 OR Dimesnion B < 100) AND Dimesnion A < 50
To sum it up its random and incorrect, any ideas as to why this could happen ??
Any pointers etc would be highly appreciated.Hi,
I have a requirement wherein i have to filter a column based on a combination of mutiple hierarchy dimensions for which i am using Filter Using Function
ex.
Filter Metric A Using Dimesion A - Range 50 -100
Filter Metric A Using Dimension A - Range 25 - 50, Dimension B Range 0 -100
When i have a report with these metrics alone then it works fine but when both metrics are exposed on a single report
The where clause results in something like this
(Dimension A > 50 OR Dimnesion B > 0) AND (Dimension A > 25 OR Dimension A < 100 OR Dimesnion B < 100) AND Dimesnion A < 50
To sum it up its random and incorrect, any ideas as to why this could happen ??
Any pointers etc would be highly appreciated. -
After F4 selection ,where can i filter the product result table
I have created F4 help for product search in Web U for extra field
Component:PRD01QR and view:Search Help under context node :SEARCH..
1)After selecting the value from f4,From where can i get the selected value inside the program
2)How can i use this value to filter the product result table
Please-help urgentI tried the above methods but still cant resolve..
Am able to get the help value and internal table result. but when i put value to my custom field using f4 help and press search it going to this query
OPEN CURSOR WITH HOLD lv_cursor FOR
SELECT prod~product_guid
prod~logsys
prod~product_id
prod~product_type
prod~config
prod~xnosearch
prod~object_family
prod~batch_dedicated
prod~competitor_prod
FROM COMM_PRODUCT as prod INNER JOIN COMM_PR_FRG_REL as COMM_PR_FRG_REL0 on COMM_PR_FRG_REL0product_guid = prodproduct_guid AND CO
CLIENT SPECIFIED
WHERE
prod~client = sy-mandt AND
batch_dedicated IN gt_batch_dedicated_range AND
competitor_prod IN gt_competitor_range AND
config IN gt_config_range AND
prod~logsys IN gt_logsys_range AND
object_family IN gt_object_family_range AND
product_id IN gt_product_id_range AND
product_type IN gt_product_type_range AND
(gt_where).
here get_where has value
ZSECTION_SET~ZZ0010 = 'S'
which is my field value.At this point internal table is going blank and search fails. -
Find com_id where sum(invoice_total) not equal to zero within a month
How to find com_id where sum(invoice_total) not equal to zero within a month.
SQL> select com_id from invoice group by com_id
2 where sum(invoice_total) !=0
3 and invoice_date between ADD_MONTHS(sysdate,-1) and sysdate
SQL> desc invoice;
TID NOT NULL NUMBER
COM_ID NOT NULL NUMBER
BRANCH_ID NUMBER
INVOICE_OLD_NUM VARCHAR2(4000)
INVOICE_DATE NOT NULL DATE
INVOICE_PO_NUM VARCHAR2(4000)
INVOICE_TOTAL NOT NULL NUMBER(12,2)
TRANSPORT_ID NUMBER
PAID NOT NULL VARCHAR2(4000)
CHEQUE_CASH NOT NULL VARCHAR2(10)
REMARK VARCHAR2(4000)
Thanks
FrancisCREATE TABLE INVOICES(
TID NUMBER NOT NULL,
COM_ID NUMBER NOT NULL,
BRANCH_ID NUMBER,
INVOICE_OLD_NUM VARCHAR2(4000),
INVOICE_DATE DATE NOT NULL,
INVOICE_PO_NUM VARCHAR2(4000),
INVOICE_TOTAL NUMBER(12,2) NOT NULL,
TRANSPORT_ID NUMBER,
PAID VARCHAR2(4000) NOT NULL,
CHEQUE_CASH VARCHAR2(10) NOT NULL,
REMARK VARCHAR2(4000)
INSERT INTO INVOICES (
TID ,
COM_ID ,
BRANCH_ID ,
INVOICE_OLD_NUM ,
INVOICE_DATE ,
INVOICE_PO_NUM ,
INVOICE_TOTAL ,
TRANSPORT_ID ,
PAID ,
CHEQUE_CASH ,
REMARK
VALUES (
1,
1,
1,
'OLD_1',
SYSDATE -40,
'PO_1',
100,
1,
'Y',
'CASH',
'REMARK_1');
INSERT INTO INVOICES (
TID ,
COM_ID ,
BRANCH_ID ,
INVOICE_OLD_NUM ,
INVOICE_DATE ,
INVOICE_PO_NUM ,
INVOICE_TOTAL ,
TRANSPORT_ID ,
PAID ,
CHEQUE_CASH ,
REMARK
VALUES (
2,
2,
1,
'OLD_1',
SYSDATE -20,
'PO_1',
100,
1,
'Y',
'CASH',
'REMARK_1');
INSERT INTO INVOICES (
TID ,
COM_ID ,
BRANCH_ID ,
INVOICE_OLD_NUM ,
INVOICE_DATE ,
INVOICE_PO_NUM ,
INVOICE_TOTAL ,
TRANSPORT_ID ,
PAID ,
CHEQUE_CASH ,
REMARK
VALUES (
3,
3,
1,
'OLD_1',
SYSDATE -10,
'PO_1',
0,
1,
'Y',
'CASH',
'REMARK_3');
SELECT COM_ID,
SUM(INVOICE_TOTAL)
FROM INVOICES
WHERE INVOICE_DATE BETWEEN ADD_MONTHS(SYSDATE,
-1) AND SYSDATE
GROUP BY COM_ID
HAVING SUM(INVOICE_TOTAL) != 0; -
Resultant row needs to be changed
Hello Gurus,
I have a requirement where i need to change the reusltant row.
for eg..my report layout is like that
Material order days
23131 9091 11
12312 2313 0
REsult 0
23131 9091 11
12312 2313 4
REsult 12
These days are being calculated from other two columns so now i want to dispaly the result like this if the no of days on second row is zero then result should be zero.
I hope my requirement is clear to you all.
Please help me out with this issue.
Thanks in advance.
Regards,
ALI resolved it by my own using some if conditions.
-
Display only the result rows only by using condition or any other way
Hello Everybody,
I've a web report where I want to diplay ony the result rows and don't want to display the detail rows at all. I could hide the detail rows but these rows still appear without any value in the key figure fields.
I tried to revove the characteristic field from the drilldown but it doesn't show the report correctly. Then I tried to write a condition to filter the detail rows but this condition doesn't apply to the result rows so this effort also didn't work for me.
Is there anyway we can display the report with only the result rows ? I've already tried to find out a solution on SDN but couldn't get the solution eventhough I found many posts on this kind of requirement.
Any help would be greatly appreciated.
Thanks
AlokPlease explain when you say
"I tried to remove the characteristic field from the drill down but it doesn't show the report correctly"
What is problem there? What result do you get. If possible please provide details of columns layout and few numbers -
Hi All,
I have created a query which has multiple selection & formula in it. One of my formula is not working properly.
Description of the issue:
Key figure is "no. of Shipment"
A calculated key figure "Total no of Shipment" is capturing the result row value of "No of Shipment".
But some time it doesn't work as expected. I don't know why.
For example if I select a week range then it dosen't work. I have used the "Total no of Shipment" in no. of other calculated key figure for calculation.
Meaning for %On-Time = (On-Time A%Total no of Shipment)
Below query is filter by fiscal week =Result
Plant|FiscalWeek|NoofShipments|Totalnoof Shipments|%OnTm
===== ====== ========= ========== ========
A | Result | 98 | 78 | 104.10 %
Here "Total no. of Shipment" should be 98 but is not able to pick up the Result value & it getting 78...I don't know from where it get the number.
Please let me know if any body has faced similar case or is there any OSS note to fix the issue.
Thanks
MahendraHi Rishi,
I tried as per you're suggestion. It didn't work.
See my key figure is "No.Of Shipment" & formula is
"Total no. of Shipment" = SUMCT (No.Of Shipment)
So whenever the result row of "No.Of Shipment" changes then "Total no. of Shipment" should pick up the value.
Please let me know if you have any other solution.
Thanks
Mahendra -
Key Figure Summation in Result Row with Cumulation Ticked
Hi,
I have a Bex question regarding the summation rows.
I need a Year To Date amount and a Period To Date amount in the report. However, there is no Year To Date key figure available in the cube. So in order to calculate YTD, I'm using the PTD key figure and have Cumulated box ticked mark in Bex.
All looks fine across columns per Vendor. But the results row for the Cumulative Balance is always equal to the results row for Period Balances. I believe this is because the same key figure is used, and it is only reading the amounts in the cube - not the ones calculated on the fly.
Does anyone know how to correct the results row for a cumulated key figure?
Regards,
RhonnieYou have to create two restricted KF; one is PTD restricted to period; the second is PTD restricted in a period range from 01.yyyy to current period.
Hope it helps.
Regards -
How to display Average, not Sum, in the "Overall Result" row of a report?
Every report I look at or execute that has an Overall Result row always shows a total(sum) of all the cells in the column. I recently came across one that shows the average of all the cells in the column and after looking at the query in BEx Query Designer 7.0 and BEx Analyzer 7.0 I cannot seem to find out where to set this. All of the Key Figures are listed as "Nothing Defined" in the Calculations tab which is exactly what they should be, but where can I set that yellow-highlighted Overall Result row to calculate an average, not a sum?
Example can be found in this picture:
http://img87.imageshack.us/img87/6757/pic1yp.jpg
Thanks for the help!My issue was that I was setting my KF's to 'Calculate Result As: Average' within the Query View that I was editing but the change was not showing on my screen when I have that View opened within the Analyzer. Infact, it still is showing totals. But when I execute my Web Template that references this Query View, the graph does display the result row using Averages. Seems to just be a visibility bug, but it is now working.
Thanks for the reminder about that property KP,
Scott -
Overall Result Row is not the Sum of Individual Values!
I am frustrated with a weird problem. I have an expense report in which Expense1 is shown a value of 8,126. If I drilldown by company code, the sum of the company codes is 8,235, but the "Overall Result" row is showing 8,126.
I tried drilling down by GL accounts, cost centers, profit centers, material and even currency. For all of these drilldowns the "Overall Result" row is 8,126 but the individual values sum out to be 8,235.
First I thought it could be "Zero Suppression" that is hiding some values from the display. But "Zero Suppression" was not active at all. I have checked the LISTCUBE and saw that the Expense1 should be 8,235 and not 8,126. The key figure properties "Calculate Result As" and "Calculate Single Values As" are set to "Nothing Defined" and "Use Default Direction". But still for some strange reason, the "Overall Result" row is different than the sum of individual rows. It's driving me crazy as I have ran out of ideas to figure out what's happening. Could someone help me with this? I would appreciate any input with points!Hi,
Remove the 'Suppress Zero rows/columns' from the query definition and then check the values.
Column A might have value, but for the same row column B might have zero, hence the row was not shown in the result set, but the overall result will include all such values as well, even thought it was not shown in the result set.
HTH,
regards,
Nataraj. -
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. -
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 -
Result Row in the query output
Hi,
If I restrict a characteristic by hierarchy then I cant have the result row displayed. If the hierarchy active is removed then the result row gets displayed. All characteristics are marked to show the result row.
This characteristic is Account Number. If in the query definition I remove the restriction on account numbers and just select hierarchy active and the required hierarchy in the properties then I get the result row in the output. But now it also displays all the unassigned account numbers in a separate node Not Assigned Account Number (s).
I cant even restrict it in the output with hierarchy active selected. When I do select filter value in the output the options Include in Selection and exclude from Selection are grayed out and hence cant select it.
Please advice on this issue
Thank you,
samHi Jaya,
I think you misunderstood my issue.
My problem is not that i do not want to see the field. But instead, i do not want to see only the results row in the query output.
I need to have the results to populate a calculation via sumct formula.
My question is, can sumct be populated if i hide/supress RESULT row ?
Regards,
Maili -
Result row shows min. value as Blank.
Hi Guru,
I have following scenario in query,
Eg.
1.Values in objects in column, 10,000
Blank (no value)
2,000
Blank(No value)
Result Row shows Blank (instead of 2,000)
2. Values in same object in same column 10,000
2,000
3,000
1,000
Result row shows 1,000 (which is Correct one)
If value in column is blank then it is showing me minimum value as blank but in real it has to display min of all row, second if row is not blank then it is showing correct min. value in result row (As mentioned in second examlp)
Please suggest me what i have to do to get exact min. of all values in Result row.
Thanks,
Ganesh.hi all,
Thanks for contribution.
But i want min. values from all rows in my result row.if it is not suppresed by Zero then also it hase to display min value (I MEAN fIGURE LIKE 2,000) from row.
if i do supress Zero then it is diplaying as Blank hense all resulti row is display blank but i dont want that i want if row value is Zero or Blank it will display as min. of all figure NOT ZERO OR BLANK LIKE ABOVE EXAMPLE IT IS 2,000.
Thanks,
Ganesh.
Maybe you are looking for
-
IPad Notepad / iCloud Notes
In Notepad / iCloud Notes, I have three accounts: All Notes, my personal notes and iCloud. How do I get ALL three of these accounts to sync OR how do I move notes from one account to another? Right now, only notes that I place on iCloud or sync'd.
-
Why is the 1.3 plugin install giving me 1.3.1_01?
Just changed today. My object tag is: <OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" id="test" width="400" height="400" codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"> <
-
Hi, I am trying to connect XI 3.0 with MQ 5.3. I have done all the mappings in Int. rep. and configurations in the Int. directory. I am using an Outbound JMS adapter to pick up the file from MQ. The details like channel name etc. are given correctly.
-
Is there any way of removing the browser buttons from the right click menu?
Recently when I right-click on a web page, there are browser buttons (forward, backward, refresh, bookmarks) on the right-click menu for some inexplicable reason. I mean, its kind of absurd that anyone would put browser buttons there, considering the
-
Upgrading to 8.54 fluid UI tools from hcm 9.2 /8.53.03
Hi, We are planning to upgrade our tools version to 8.54 so as to look at Fluid capabilities. We actually completed the tools upgrade (test instance) but later realized that this also needs minimum PUM image 8 or higher ? Is this correct ? Because af