Urgent!!Total of a KF based on Other KF NEquals 0!!
hi
Does Anyone has an idea of calculating the Total of KEYFIGURE where other KEYFIGURE value not equals 0.
Ex.I have to total the Weightage of a Criteria,where the total weightage of the customer is 0 shld be neglected when totalling the Weightage of criteria.
Thanks a lot.
hi
Thnx for ur help....
But U r doing muliplication of both the Key figure or using condition in ur mentioned formula...????
COUNT ...Will only count as 1...but not total..but still I can try urs...
But my requirement iss
SCORE TOTWEIGHTAGE TOTAL SCORE NEQ 0
2 6 6
3 0 6
4 12 6
9 18
As in the above Example....it didnt total the SCORE=3 as total weightage is 0.
This is what I want to calculate...????
Similar Messages
-
my mom somehow ended up with two totally different iTunes accounts, based on an old (dead) email address and a newer one as well. She's bought a lot of music on both accounts over time... is there some way to merge the old account into her newer one?
No. If one of those accounts is inaccessible, click here and request assistance.
(82012) -
Filter Based on other report not working
Hi Gurus,
I am using OBIEE 10g.
I have a Dashboard page in that i have a prompt and 2 reports,(A, B reports). Report B is using the same columns as prompt where as report A not.
Report A has columns which hold the same data as report B, so i thougt to pass the values based on Report B column using the filter based on other report. I am able to complete it succssfuly but Report A is not having amount of data that i was excepting. When i started investigating i found out that the column which i am using in the prompt and report B have values ( NEW, OLD, NULL) report A able to take the values NEW and OLD but the NULL values are not passing to report A. In report B it is taking null value as it has filter as prompted.
Is it any way to have the values (NEW, OLD, NULL) in report A?
Thanks in Advance.
Regards
AliHi Deep,
Thanks for taking time to answer my question.
I have to display null. If i Mask with something then i dont get proper data in report A, couse in the table it is null.
Thanks
Ali -
How can I make a new genius mix? I do not want to make a genius playlist. Genius has already created two mixes but I would like another based on other genres within my extensive music library. I have tried updating Genius from Store>Update Genius but to no avail. Thank you!
Hi. The two user tips both describe a sequence of steps that should get your library from the point where it threatens to wipe data from your device to where it is syncing normally, while recovering as much information as possible. It may still be necessary to wipe and reload the device but this should only take place once all the data that can be recovered has been recovered.
Doing step 1 of 8 and then complaining things aren't the way you want them to be yet strikes me as premature...
Since you appear to have all your media content, and we are discussing an iPod classic, not an iOS device, the main worries are already taken care of. What's left is ratings, playcounts, playlist membership and checked status. Since your device holds only part of your library at best you could only recover the missing data for the content that is on the device using third party tools.
Recreating the previous checked/unchecked status of every track in your library from where you are now may not be that easy. Syncing with selected playlists has many advantages, one of which would have been that you would have a named playlist that could have been retrieved by 3rd party software if you had used this method.
You haven't explained what caused your problem in the first place, but if you have a Previous iTunes Libraries folder holding old copies of your iTunes database (generated with each iTunes update) then it would be possible to restore the most recent of these and then update the library with any changes in your media folder.
BTW Apple doesn't offer free support for this kind of issue with iTunes.
tt2 -
PM Notification - Hide fields based on other field's value
Hello experts,
I am looking for an user exit which allows me to hide some fields based on other field's value.
For example, I have field 1 and field 2. When I open my notification, if the value of field 2 is 'aaa', field 1 has to be hidden.
There should be an user exit but I can't find it...
Thanks for your help!Hi everyone,
Any thoughts? any help is appreciated...
Thanks -
How to insert into date column based on other columns?
Hi
I have four columns in a table called game named as
R_Day - Type - Number
R_Month - Type - Number
R_Year - Type - Number
R_Date - Type - Date
I have around 1000 records and i want to fill R_Date column based on the data in the R_Day,R_Month,R_Year.
How to write a query to fill the R_Date column based on other three columns.
Thanks
srinivasselect
to_date(R_Day||'-'||R_Month||'-'||R_Year,'DD-MM-YYYY')
dt from (select 23 R_Day,07 R_Month,2007 R_Year from
dual);
Hi,
Update <Table Name> set R_Date=select
to_date(R_Day||'-'||R_Month||'-'||R_Year,'DD-MM-YYYY')
from <Table Name>
Regds.
Nirmal
SQL> select * from test;
R_DAY R_MONTH R_YEAR R_DATE
1 1 2007
21 11 2007
SQL> update test
2 set r_date = select to_date(R_Day||'-'||R_Month||'-'||R_Year,'DD-MM-YYYY')
3 from test;
set r_date = select to_date(R_Day||'-'||R_Month||'-'||R_Year,'DD-MM-YYYY')
ERROR at line 2:
ORA-00936: missing expression
SQL> update test
2 set r_date = to_date(r_day||'-'||r_month||'-'||r_year,'dd-mm-yyyy');
2 rows updated.
SQL> select * from test;
R_DAY R_MONTH R_YEAR R_DATE
1 1 2007 01-JAN-07
21 11 2007 21-NOV-07
NB:Please test before posting.. -
Automatically populate fields in jsp documents based on other fields
hello guys. I have a jsp document
that has the following
<af:inputText value="#{bindings.SourceDocumentId.inputValue}"
label="#{bindings.SourceDocumentId.label}"
required="#{bindings.SourceDocumentId.mandatory}"
columns="#{bindings.SourceDocumentId.displayWidth}"
binding="#{backing_transactions_editTransactions.docId}"
id="docId">
<af:validator binding="#{bindings.SourceDocumentId.validator}"/>
<f:convertNumber groupingUsed="false"
pattern="#{bindings.SourceDocumentId.format}"/>
</af:inputText>
<af:inputText value="#{bindings.DocumentName.inputValue}"
label="#{bindings.DocumentName.label}"
required="#{bindings.DocumentName.mandatory}"
columns="#{bindings.DocumentName.displayWidth}"
binding="#{backing_transactions_editTransactions.docName}"
id="docName">
<af:validator binding="#{bindings.DocumentName.validator}"/>
</af:inputText>
And I have created the generated the backing beans automatically.
public class EditTransactions {
private CoreInputText docId;
private CoreInputText docName;
public CoreInputText getDocId() {
return docId;
public void setDocName(CoreInputText inputText7) {
this.docName = inputText7;
public CoreInputText getDocName() {
return docName;
I have a method in appmodule that has this
public String getDocName(Number docId)
{String docName;
return docName
on the document Id field I have to input a certain docId after I input the docId I have to populate automatically the docName based on the doc Id being given.
question
1. how can I set the document name automatically w/out submitting the page ?
2. how can I use my backing bean to set the docName using the method in my AppModule.?
Can anyone help me regarding this one.
Thank in advance
alvin.
here is what you need to do:
1. Change the definitions for your fields as following
<af:inputText value="#{bindings.SourceDocumentId.inputValue}"
label="#{bindings.SourceDocumentId.label}"
required="#{bindings.SourceDocumentId.mandatory}"
columns="#{bindings.SourceDocumentId.displayWidth}"
binding="#{backing_transactions_editTransactions.docId}"
id="docId" valueChangeListener="#{backing_transactions_editTransactions.docIdChange}"
autoSubmit="true">
<af:validator binding="#{bindings.SourceDocumentId.validator}"/>
<f:convertNumber groupingUsed="false"
pattern="#{bindings.SourceDocumentId.format}"/>
</af:inputText>
<af:inputText value="#{bindings.DocumentName.inputValue}"
label="#{bindings.DocumentName.label}"
required="#{bindings.DocumentName.mandatory}"
columns="#{bindings.DocumentName.displayWidth}"
binding="#{backing_transactions_editTransactions.docName}"
id="docName"
partialTriggers="docId">
<af:validator binding="#{bindings.DocumentName.validator}"/>
</af:inputText>2. add the followig method to your backing bean:
public void docIdChange(ValueChangeEvent valueChangeEvent) {
getDocName().setValue((String)getDocId().getValue() + "suffix");
}Run your form and enter the value into docId field, then press tab to go to the next field - docName will be populated
here is what you need to do:
1. Change the definitions for your fields as following
<af:inputText value="#{bindings.SourceDocumentId.inputValue}"
label="#{bindings.SourceDocumentId.label}"
required="#{bindings.SourceDocumentId.mandatory}"
columns="#{bindings.SourceDocumentId.displayWidth}"
binding="#{backing_transactions_editTransactions.docId}"
id="docId" valueChangeListener="#{backing_transactions_editTransactions.docIdChange}"
autoSubmit="true">
<af:validator binding="#{bindings.SourceDocumentId.validator}"/>
<f:convertNumber groupingUsed="false"
pattern="#{bindings.SourceDocumentId.format}"/>
</af:inputText>
<af:inputText value="#{bindings.DocumentName.inputValue}"
label="#{bindings.DocumentName.label}"
required="#{bindings.DocumentName.mandatory}"
columns="#{bindings.DocumentName.displayWidth}"
binding="#{backing_transactions_editTransactions.docName}"
id="docName"
partialTriggers="docId">
<af:validator binding="#{bindings.DocumentName.validator}"/>
</af:inputText>2. add the followig method to your backing bean:
public void docIdChange(ValueChangeEvent valueChangeEvent) {
getDocName().setValue((String)getDocId().getValue() + "suffix");
}Run your form and enter the value into docId field, then press tab to go to the next field - docName will be populated
Pricing Condition type triggering based on other condition type
Hello sir,
There are some pricing condition types in our system.
Based on condition records you can trigger one condition type based on other condition type.
For eg: PR00 condition type is there and amount is suppose 1000rs and other condition type is JBED and we made a condition record and put it some percentage so as soon as we some value in PR00 ,JBED condition type is automatically manipulating the value on the base condition record.
Now i want other than condition record can we trigger one condition type based on other condition type through defining user routine under requirement.
Suppose we have condition type ABC and some amount i have given and other condition type DEF , i want that amount of DEF condition type should automatically come from the Condition type and it should manipulate according to my routine .
eg Condition type Amount
ABC 1000
DEF 40
The value 40 should come as 4% of 1000.
I am not maintaing any condition record and i want that this should trigger through some requirement created by me.
i created my routine no 905 and i putted the code inside it.
if komtl-kschl = 'DEF'.
komv-kbetr = ( komv-kbetr * 4) / 100.
endif.
Now problem is that this code is getting trigger when i m giving value in DEF condition type then it is showing 4 % of it.
But i want as soon as i give value for the condition type ABC and some value 1000
then after pressing enter , one condition type DEF should automatically come with value 40 that too in display mode ,not in change mode.
Please suggestions and solutions regarding this matter , I will be grateful to you.
Manish
hi
In V/06 in the calculation type you can see the entries for "D-gross weight" & "E-net weight"
For the required condition type select the calculation type as gross weight or net weight. Save it.
In MM01 - create material master, here in BASIC DATA 1 SCREEN you have fields for gross weight & net weight.
Maintain the condition record in VK11 for the required condition type.
You can also maintain the scales as required like u said
1 to 10 kgs - 100 rupees,
11 to 25 kgs - 1000 rupees.
Another way could be
The BEST practice to do it is, use of VOFM routine for price calculation (VOFM-->Formulae).
Take help from ABAPer and write a routine such that
if weight = 1 - 10
price = 100.
else if weight > 8.
price = 1000.
else
price = 100.
end if
but the maintainnance of routine is big problem as u might be having many records
Hope this will help you
Vishal
Can you dynamically change an LOV on the parameter form based on other params?
Can you dynamically change an LOV on the parameter form based on other parameters? For example, based on a entered purchase order number, create an LOV of the purchase order lines that belong to the entered PO #.
Hi
Accouding to my knoledge you can't do it.
If you want to build lov for that particular
value, you can do it in Forms.
Vijay
Compute total on a field based on change in values in 2 other fields
I have the following requirement
ITAB has fields
PO# PO_LINE# ............ PRICE
100 1 500
100 2 100
200 1 300
300 1 200
300 2 700
300 3 100
and my required output in ALV is
PO# PO_LINE# ............ PRICE
100 1 500
100 2 100
Total 600
200 1 300
Total 300
300 1 200
300 2 700
300 3 100
Total 1000
i want to compute the total price for each PO#.
Can someone please suggest how ?
Thank u so much.
Hello Asha,
It appears that you are looking for the subtotal functionality that is built into ALV. The "sort" table that is accepted by the ALV FM has a field named "subtot" that can be used to flag a field for subtotals. In your case you would flag the PO# field for subtotals.
A bare bones example of entering this information can be seen in the following:
" Fill out the field catalog, layout, etc.
" Now we will populate the sort information
ls_sort-fieldname = 'PONUMBER'.
ls_sort-up = 'X'.
ls_sort-subtot = 'X'. "This is the field that will allow subtotals
APPEND ls_sort TO gt_sort.
" Call the the display ALV FM
Now this comes with a number of conditions:
1. For simple cases, the field you want to subtotal over must be the left-most column. In your example it looks like you meet this requirement as PO# is the first column.
2. You also need to make sure that there is a column that allows totals. In your example you need to make sure price has the proper data type to allow for totals.
If you are still having trouble, I would recommend looking at the following code example: [Display subtotal text in ALV grid|http://wiki.sdn.sap.com/wiki/display/Snippets/DisplaysubtotaltextinALV+grid]. It contains a more complete example of how to use subtotals in ALV.
How to get the total number of occurrences based on the value of a column.
Hello everyone,
This is the first time that I will ask question here on your forum but has been following several threads ever since. I guess that now is my turn to ask a question. So anyway here is the thing, I have a query that should return count the number of rows depending on the value of SLOT. Something like this:
WIPDATAVALUE SLOT N M
1-2 TRALTEST43S1 1 3
1-2 TRALTEST43S1 2 3
3 TRALTEST43S1 3 3
4-6 TRALTEST43S2 1 4
4-6 TRALTEST43S2 2 4
4-6 TRALTEST43S2 3 4
7 TRALTEST43S2 4 4-----
As you can see above, on the SLOT TRALTEST43S1, there are three occurrences so M (Total number of occurrences) should be three and that column N should count it. Same goes with the SLOT TRALTEST43S2. This is the query that I have so far:
SELECT DISTINCT
WIPDATAVALUE, SLOT
, LEVEL AS n
, m
FROM
SELECT
WIPDATAVALUE
, SLOT
, (dulo - una) + 1 AS m
FROM
SELECT
WIPDATAVALUE
, SLOT
, CASE WHEN INSTR(wipdatavalue, '-') = 0 THEN wipdatavalue ELSE SUBSTR(wipdatavalue, 1, INSTR(wipdatavalue, '-')-1) END AS una
, CASE WHEN INSTR(wipdatavalue, '-') = 0 THEN wipdatavalue ELSE SUBSTR(wipdatavalue, INSTR(wipdatavalue, '-') + 1) END AS dulo
FROM trprinting
WHERE (containername = :lotID OR SLOT= :lotID) AND WIPDATAVALUE LIKE :wip
) CONNECT BY LEVEL <= m
ORDER BY wipdatavalue;And that it results to something like this:
WIPDATAVALUE SLOT N M
1-2 TRALTEST43S1 1 2
1-2 TRALTEST43S1 2 2
3 TRALTEST43S1 1 1
4-6 TRALTEST43S2 1 3
4-6 TRALTEST43S2 2 3
4-6 TRALTEST43S2 3 3
7 TRALTEST43S2 1 1-----
I think that my current query is basing its M and N results on WIPDATAVALUE and not the SLOT that is why I get the wrong output. I have also tried to use the WITH Statement and it works well but unfortunately, our system cant accept subquery factoring.
I know you guys will be helping out because you are all awesome. Thanks everyone
Edited by: 1001275 on Apr 19, 2013 8:07 PM
Edited by: 1001275 on Apr 19, 2013 8:18 PM
Hi,
Sorry, it's still not clear what you want.
Are you saying that, given this table:
CREATE TABLE trprinting
WIPDATAVALUE VARCHAR2(255)
, SLOT VARCHAR2(255)
INSERT INTO trprinting (wipdatavalue, slot) VALUES ('1-2', 'TRALTEST43S1');
INSERT INTO trprinting (wipdatavalue, slot) VALUES ('3', 'TRALTEST43S1');
INSERT INTO trprinting (wipdatavalue, slot) VALUES ('4-6', 'TRALTEST43S2');
INSERT INTO trprinting (wipdatavalue, slot) VALUES ('7', 'TRALTEST43S2');you want to produce this output:
WIPDATAVALUE SLOT N M
1-2 TRALTEST43S1 1 3
1-2 TRALTEST43S1 2 3
3 TRALTEST43S1 3 3
4-6 TRALTEST43S2 1 4
4-6 TRALTEST43S2 2 4
4-6 TRALTEST43S2 3 4
7 TRALTEST43S2 4 4? If so, here's one way:
WITH got_numbers AS
SELECT wipdatavalue
, slot
, TO_NUMBER ( SUBSTR ( wipdatavalue
, 1
, INSTR ( wipdatavalue || '-'
) - 1
) AS low_number
, TO_NUMBER ( SUBSTR ( wipdatavalue
, 1 + INSTR ( wipdatavalue
) AS high_number
FROM trprinting
SELECT wipdatavalue
, slot
, ROW_NUMBER () OVER ( PARTITION BY slot
ORDER BY low_number
) AS n
, COUNT (*) OVER ( PARTITION BY slot ) AS m
FROM got_numbers
CONNECT BY LEVEL <= high_number + 1 - low_number
AND low_number = PRIOR low_number
AND PRIOR SYS_GUID () IS NOT NULL
ORDER BY low_number
, n
;Much of the complexity here is caused by storing 2 numbers in 1 VARCHAR2 column, wipdatavalue. Relational databases work best when there is no more than 1 item in any given column of any given row. This is so basic to datbase design that it is called First Normal Form. Also, numbers belong in NUMBER columns, not VARCHAR2. If you stored your data like that in the fist place, then you wouldn't need the sub-query I called got_numbers, which is about 60% of the code above. (That could be reduced by replacing SUSTR and INSTR with the less efficient REGEGP_SUBSTR.)
Goods Issue total should not calculate based on Info price * Quantity
Hi,
The total amount in Goods Issue taken from "Info Price * Quantity" which doesn't ties back to the value posted to Journal Entry. It should calculate according to the actual unit price instead of info price, the info price is meaningless in the Goods Issue, why does the system capture the total based on that? Goods Issue total amount should match with what is posted to journal entry, it will confused the users if it's not the same .
Thanks.
Regards,
Kong Chee Ann
Hi,
I tested in the B1 system 2007A. Yes, the total of row is calculated by Info price * Quantity, not item cost * quantity.
We can see, before really add the goods issue document, the field 'Item Cost' is display blank and only after added the document, you can see the Item Cost is displayed in field 'Item Cost'.
That is because in some cases the item cost only could be known after real added the documents. For example, when the item is managed by FIFO.
Thus, Item cost may not be able to know before real added. The field 'Total' cannot catch cost price and then use a info price to calculate a total and just for your info only.
Can not compute totals on a column based on a summary column
Hi. I'm new in Discoverer.
I have created a worksheet based on the following query:
SELECT O101158.COD_HACIENDA, O101158.NOMBRE, O101266.DESC_UNIDAD, SUM(( NVL(O101501.PESO_NETO,0)/1000 ))
FROM ASISTEN.SAT_HACIENDAS O101158, ASISTEN.SAT_UNIDADES O101266, ROMANA."BOLETO_CA#A" O101501
WHERE ( ( O101158.COD_UNIDAD_OPER = O101266.COD_UNIDAD ) AND ( O101501.COD_HACIENDA = O101158.COD_HACIENDA ) ) AND ( O101501.ZAFRA = '2004-2005' )
GROUP BY O101158.COD_HACIENDA, O101158.NOMBRE, O101266.DESC_UNIDAD
ORDER BY O101266.DESC_UNIDAD ASC
The expression SUM(( NVL(O101501.PESO_NETO,0)/1000 )) is defined in Discoverer as a calculated item.
I have created a total on the sum expression. The idea is to have it compute at the "DESC_UNIDAD".
The problem is that only the label "Sum" is printed at the right level. No total is calculated.
Is this a restriction on totals based on aggregation or am i missing somthing here?
Best regards, Luis ...!
Hi Luis
There have been a number of questions concerning summations of totals in recent weeks.
Take a look at these threads:
Cell sum not working
Calculation shows Blank or NULL in Discoverer Viewer but not in Dis.Desktop
Do either of these help?
Best wishes
Michael
Urgent!!Average calculation based on a characteristic!
Hi guys
I have an average calculation based on a characteritic ..
Example:
This is a SRM Mgmt.It has an Organisation purchasing org,source purchase,PR,etc..
Report is a Survey rpt.
Average Score across Customer responded for each question for the particular PR...
Where weightage is applied for each question & based on which
total weightage of all Qns for a PR
Avg.Score= -
No of Questions.
How do u calculate using the exception aggregation??????????Pls revert ASAP.
thnx
BI Learner
Solving Myself
Running data providers based on other data provider results in webi
Hi,
Thank you all; this is a great place to look for answers whenever you stumble in BO.
I got a specific requirement for a Webi report. The report should display the associated metrics only when the total surveyed members are greater than 25, if not, N/A.
This requirement happens to be a new add on for the already existing report; the report was built with multiple providers, in which one of the providers gives the total surveyed members.
Is there any way that we can control the rest of the data providers based on the first data provider output. I donu2019t want to run the rest of the data providersu2014 as there are too many, and each takes quite a bit of timeu2014 if the surveyed members are less than or equal to 25.
We are on XI3.1 Sp3
Thanks in advance.
Thanks for the quick response!
Vills u2013 Is it query from the results functionality that you are talking about? I tried this approach, but as I am using the measure in the filter of the 2nd data provider (total members > 25),and the resulting SQL is not getting parsed.
Waveryu2014 The report filter that I tried to use is not working. Can you please give me some more details how to use it?
As I would like to leverage the existing report, which perfectly works for the total members> 25 logic, I was asked to find a way to not to run the rest of the data providers to save db resources, provided if the total mbrs participated in the survey from the first data provider <25.
Is there any way that we can embed some case statement in the other data providers to make them run or throw an error message depending on member count?
To give some more understanding, I want to provide you the screen shots of the queries, but I am unable to paste those screen shots here .
Essentially I am looking for is there any way to use one data provideru2019s output as a trigger for the rest of the data providers?
Maybe you are looking for
-
Link to A folder View in a PDF Portfolio - feature no longer working - please advise
Hi, I am no longer able to link to a Folder View of a PDF Portfolio: Within a PDF portfolio i need to link from a PDF to a folder view in the Portfolio. I am using Link Action - Go to Page View. This used to work for me - very important feature that
-
Autocompletion no longer works in address bar
The autcompletion works only with addresses I visited several weeks ago. For instance, when I type 'f', Facebook will be suggested. But it does not work with any newer address, since about two weeks. What can I do to recover this helpful function? Th
-
ESS Team Calendar comming as Table for some users
Hi, When the users navigate to ESS -> working Time -> Leave request -> Team calendar Then for some users it coming as Table, while for other it is coming as proper chart(graphics). We want the it as chart(graph) for all users. Any suggestions? _visha
-
Move icons from one screen to anothe
Move icons from one screen to another
-
Obtaining ConnectionName in an Extension
Trying to write a extension that saves some information based on the ConnectionName that they are running from the SQL worksheet. Since multiple connections can be opened with multiple worksheets I cannot just rely on the connection listeners. I was