BW and Calculation Contexts
Hi All,
I have a Universe on top of a BW cube and in my report definition I get data for the object supplier, supplier group (which is a detail object to supplier), a few other dimensions and a measure revenue.
A table in the report shows columns supplier group, supplier and revenue. If I add a column with the formula = sum([revenue]) ForAll ([supplier]) I get the total revenue for all suppliers in each row of the table instead of the revenue for each supplier group. It looks as if the formula ignores the additional dimensional context of the supplier group.
Releases: BOE XI 3.0, BI 7
Ideas?
Thanks, Martina
Hi
In Business Objects, a Detail object has a particular characteristic: if its associated dimension is part of the axis context, it doesnt participate to this axis context as a key.
ForAll clause makes total aggregation.
Workaround consists in creating a variable (alias) with Dimension qualification as shown in the following example in which the [Age] is a detail associated to [Customer] and [Revenue] = sum([revenue]) ForAll ([customer]):
Original Table
Customer
Age
Revenue
Arai
18
3286524
Baker
64
3286524
Brendt
19
3286524
Diemers
18
3286524
Durnstein
36
3286524
Goldschmidt
55
3286524
Kamata
24
3286524
Kamimura
38
3286524
Larson
45
3286524
Makino
45
3286524
McCarthy
29
3286524
Mukumoto
59
3286524
Okumura
74
3286524
Table using Age_Dim
Now, create a variable Age_Dim on [Age] with the qualification Dimension
Customer
Age_Dim
Revenue
Arai
18
19012
Baker
64
441594
Brendt
19
8420
Diemers
18
19012
Durnstein
36
4400
Goldschmidt
55
18715
Kamata
24
748332
Kamimura
38
4700
Larson
45
782250
Makino
45
782250
McCarthy
29
400899
Mukumoto
59
37050
Okumura
74
22576
I hope you this example would help you
See you next
Similar Messages
-
I've a table including 4 columns as Prod Category, A, B, Ratio.
Ratio = 100*A/B.
If I created a new column named as
Prod Cat (80-20 pareto) = case when rsum(Ratio < 80) then Prod Category else 'All Other Products' end.
I can get the first %80 Ratio Products with its name and the resting is as 'All Other Products'
The problem is If I use Prod Category in my table/pivot table the ratio is being calculated correctly but when I use Prod Cat (80-20 pareto) instead of Prod Category then the ratio is repeat for all rows as 100*sum(A)/sum(B).
The question is for a run-time calculation how can I define its calculation context. I mean how can I tell OBI to calculate the ratio for the following alternatives
1-) row by row ->A/B for each Product category
2-) A/sum(B) -> Ratio for each product category by for all products
Edited by: BIEXP on 30-Mar-2010 10:46Hi ravi,
But some times it will work correctly even though i right click---> create column , i don't think that might be the issue...
Need one more info :
MaxSales=MAX( [SAELSREVENUE] FOREACH [ QUARTER] )
IN ([YEAR]).
what is the main use of IN ( [ YEAR ] ) ( output context ) . is it mandatory to get the output.
can u pls explain a little bit about the output context that we give to get the output.
calculation context -
Contextoperators in bo 4.0(calculation context using sum)
All,
I am using Webi 4.0 version.I have a scenario in my webi report wherei need to sum up revenue.i want to sum up the sales revenue generated by each employee for a store irrespective of the month.
What i mean is even if the months are different i want to sum the revenuebased on the branch and employee in column G.
My webi report looks pretty much like the below sample.I dont want to apply any breaks or sections,Can i achieve this using context operators or calculation context.
i have tried personally applying context opearators on totalevenue column by applying sum but its not summing up as in column g.
for ex: sum(revenue for each(branchcode))
i want to achieve the totals as shown in column totalrevenue(last column) without applying break or section.
Can any one helpme out.
*Branch>>>>Employee>>Store>>>>Region>>>>>>>Month>>>>>>Revenue>>>>>>TotalRevenue
*A>>>>>>>Dave>>>>>>>D>>>>>>>North>>>>>>>Jan-09>>>>>>>100$>>>>>>>>>
A>>>>>>>Dave>>>>>>>E>>>>>>>south>>>>>>>Jan-10>>>>>>>200$>>>>>>>>>>300$
B>>>>>>>Andrew>>>>>F>>>>>>>east>>>>>>>Feb-09>>>>>>>10000$>>>>>>>>
B>>>>>>>Andrew>>>>>G>>>>>>>west>>>>>>>Feb-10>>>>>>>100000$>>>>>>>110000$
Regards,
Reji.
Edited by: reji2011 on Dec 13, 2011 5:23 PMHi Reji,
Yes, there is a reset function for RunningSum() which is something like:
RunningSum([My Measure];([My Dimension]))
and I think the reset dimension has to be in parentheses. You don't have to use the reset part, but it is there if you need to.
Thanks -
Difference between aggregation and calculation tab in BEx Query Designer
HI,
I am using BEx Query Designer for my report, for the key figures in the coloumn area i slected one numeric key figures, in the properties tab i found aggregation tab and calculation tab.
I need to sum up the total values for that particualar coloumn, when i used calculation tab i found to sum all the values for a particular coloumn, then what is the use the aggreagation tab?
I not able to used that Aggregation tab it is showing as a hidden fields...
can any one tell me whats the exact difference between these tabs and when we need to use which tab?
With Regards,
Thanesh Kumar.Hi Thanesh Kumar,
I moved this thread from forum Data Warehousing to Business Explorer since it is a query related question (as SDN moderator).
I could explain to you the difference between these two tabs.
For "calculation" tab, it changes the display of result and does not change the calculation logic.
It means that, if this key figure is used further in formula, still the original number (without "calculation" tab setting) is used for further formula calculation.
For "aggregation" tab, it changes the real calculation logic.
The system takes the setting as the aggregation rule for records.
The most common aggregation rule is of course summation. If you set to e.g. Average here, the system does the
Average instead of summation when aggregating records. And the Average value will be taken for calculation
in further formulas or other calculations.
For "aggregation" tab, you could only use it for CKF (calculated key figure) or formula and you could not use it for
a basic key figure. That should be the reason why you see it greyed-out.
Regards,
Patricia -
Using Search Help with ALV and Dynamic context node
The topic subject already describes my situation.
I have to create, populate and remove context nodes at runtime, and bind them to an ALV, to let user display the data or modify the data. The nodes I create are always typed with a table name, but the table name is of course, dynamic.
This is all working: what's not working is help for entries inside the ALV; since the table has foreign keys and domains with check tables or fixed values, I expected that search helps were detected and managed by the framework.
Instead, no help search is displayed except the input help based on data-type of the one "Date" input fields.
I think I have to work on the dynamic node creation, and not on the ALV itself, since the latter only takes the node/attributes information, but i could be wrong. I tried with both the two following codings:
CALL METHOD lo_nd_info_root->add_new_child_node
EXPORTING
static_element_type = vs_tabname
name = 'SAMPLE_NODE_NAME'
* is_mandatory = abap_false
* is_mandatory_selection = abap_false
is_multiple = abap_true
is_multiple_selection = abap_false
* is_singleton = abap_false
is_initialize_lead_selection = abap_false
is_static = abap_false
RECEIVING
child_node_info = lo_nd_info_data .
cl_wd_dynamic_tool=>create_nodeinfo_from_struct(
parent_info = lo_nd_info_root
node_name = 'SAMPLE_NODE_NAME'
structure_name = vs_tabname
is_multiple = abap_true ).
The result is the same...is there any way to let the ALV know what search helps it has to use, and doesn't force me to manually build a VALUE_SET to be bound on the single attributes? There are many tables, with many fields, and maintaining this solution would be very costly.I have checked with method GET_ATTRIBUTE_VALUEHELP_TYPE of interface IF_WD_CONTEXT_NODE_INFO, on an attribute which i know to have a search help (Foreign key of a check table).
The method returns 'N', that is the constant IF_WD_VALUE_HELP_HANDLER~CO_VH_TYPE_NO_HELP. So, the framework was not able to find a suitable search help.
Using method GET_ATTRIBUTE_VALUE_HELP of the same interface, on the same attribute, returns me '111', which is constant C_VALUE_HELP_MODE-AUTOMATIC.
Therefore, the WD framework knows it has to automatically detect a value help, but fails to find one.
Also, this means in my opinion that the ALV and the dynamic external mapping are not the culprits: since node creation, no help is detected for any attribute but the date. Honestly, I don't have a clue on what's happening. -
Hello. I recently pieced together a late 2008 MacBook Pro 15". Everything works fine except the battery constantly goes between "not charging" and "calculating" or, rarely "charging". It does charge after a long while and will report that it is charged.
I have reset the NVRAM and the SMC a couple of time but that didn't work so I ran an Apple Hardware Test and while testing the logic board it gives the following error:
4SNS/1/40000000 LB1T
I've done some research and found this is a temperature sensor related to the battery, but cannot find where the sensor is located in the computer. Would you know how I can find the sensor to test it? Could my battery problem be related to something else? Would a fresh install of Lion help?
Thank you!
Mike
Two pieces of information that may or may not b helpful, the hard drive is from my early 2008 MBP and the only test disc I have access to is from an iMac.Why do you have LION installed on that older machine?
So you say you built a macbook from a bucket of parts eh? Kudos
heres a pic of the battery temp sensor -
Using oracle's connection pools and transactional context
Hi!
I have an implementations of existing interfaces ( let's call this layer as
data access layer) which abstracts the connection and transactional session
from the calling application. This implementaion makes use of Oracles JVM
inside the oracle database (8.1.7) to create and maintain the connection
pools and the transactional session (transactional context). I would like
to create differenent implementation, if the calling application is a
session bean running inside the weblogic application server. is there way I
can still use the connection pools and transactinal context that I got from
the oralce if the calling application is a session bean running inside the
weblogic app.. server?
do I have to change any configuration settings in weblogic?. there might
be two scenarios..
the data access layer (the classes which deal with the connection pools and
transactions) might be running inside the oracle's JVM..
the data access layer might be running inside weblogic application server...
thanks...
SrinivasCertainly this from SPAM. Now from anothe user :). Note sure whether I should mark you as you as SPAM as you're posting questions which are available in stackoverflow
http://stackoverflow.com/questions/26531161/biztalk-and-odp-net-connection-pools-and-connection-strings
Details provided in the other forum should provide you the answer.
I don’t want to duplicate this thread just for the sake of giving reply.
If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply. -
Sql query with conditions and calculations???
Hi,
how I can build a query with conditions and calculations?
E.g. I've got this table
Start | End | Working Place | Mandatory
01-JAN-13 | 11-JAN-13 | Office | 1
14-JAN-13 | 25-JAN-13 | Home Office | 0
04-MRZ-13| 15-MRZ-13 | Office | 0
11-FEB-13 | 22-FEB-13 | Office | 1
Now if column working place=Office and column mandatory=0
the new column "price" has to calculate: (End-Start)* $25.00
and if working place=Office and column mandatory=1
the "price" column has to calculate: (End-Start)* $20.60
else $0.00
I tried it with the case statement but I didn't know how
to calculate my values and display it to the virtual column "price".
Something like
case
when Working_Place = 'Office' and Mandatory=1
then ...
else '0.00'
end as PRICE
Or is it not possible?
Edited by: DB2000 on 12.03.2013 05:09Use CASE:
select start_dt,
end_dt,
working_place,
mandatory,
case
when working_place = 'Office' and mandatory = 0 then (end_dt - start_dt) * 25
when working_place = 'Office' and mandatory = 1 then (end_dt - start_dt) * 20.60
else 0
end price
from tbl
START_DT END_DT WORKING_PLA MANDATORY PRICE
01-JAN-13 11-JAN-13 Office 1 206
14-JAN-13 25-JAN-13 Home Office 0 0
04-MAR-13 15-MAR-13 Office 0 275
11-FEB-13 22-FEB-13 Office 1 226.6
SQL> SY. -
Report with characteristic and calculation in the rows
Hi,
I need to do a report that has to have in the rows a characteristic, a selection and calculation based in the result line of the characteristic, as presented following:
Column X Column Y ...
Characteristic
Result line
Selection (hided)
Calculation (Selection / Result line *100)
Then its necessary to be possible to drill down to another characteristic.
Please if you have done some report like this one please give me some ideas on how to do it.
I'm thinking to make a workbook with two queries but this arise some issues in terms of the layout because I would need to put the query with the calculation above the other because otherwise it would be overwrote.
I have some doubts also on how to make the drilldown possible???
If you can help me I would be very grateful and I will assign points...
Best regards,
AnaHi Ane,
It seems little tricky here.
Try this way to see all your values of Asset class in single selection(Hope it works!!)
Rows -> First Drag Asset Class
Then create a structure jsut below this Char -> In New selection,define the name as you want & Use Asset Class as Restriction
It should look like this in rows:
Asset Class (Char)
Structure
Asset Class (Name of your selection - restricted with Asset class)
Please check n lemme know if it works
Sriman -
Model Binding and Calculated Field Syntax for "class" Attribute
Hi,
I tried to use the calculated field syntax from SAP UI5 to change the CSS class attribute of an element based on some model property, i.e., I wanted to change the class in the corresponding formatter function based on the currently bound value. However, my formatter function is not called. When I use the same syntax on a text attribute, it works.
I also tried to use normal property binding, but it did not work on the class attribute either (it just put class="{property}" in the rendered HTML).
Is there anything I missed or is it just not possible to use property binding and calculated field syntax for class attributes? Did anybody try something like this before?
I think it is a standard use case to change the CSS class based on some model property. So, if anybody knows how to do that, could you give a short example?
Best regards
SvenjaThey have a class property. At least, I can do the following in an XML view:
<Button
icon="sap-icon://add"
press="onButtonPress"
class="my-button-class" />
I would expect the following to work as well, but for me it did not:
<Button
icon="sap-icon://add"
press="onButtonPress"
class="{/customClass}" />
This renders the following HTML (cropped to the important parts):
<button type="button" class="sapMBtn {/customClass}">
</button>
It seems like the class attribute is something special although I don't see a reason why. Other HTML templating engines, for example, support things like that. -
Difference between Consolidation Process and Calculation process
Hello everybody,
I need to understand what's the difference between the two process : consolidation && Calculation and why we apply consolidation only to the entity dimension?
Thanks in advance.this is a basic concept.
calculation is to calculate all the calculated data for a particular child entity. you right click on an entity and choose "calculate" and it performs calcs on that entity only. when the data is calculated, then it is ready to be consolidated to the parent entities. at this point your calculations have not changed the data in the parent entity, merely done the ground work so that the child entity has executed the Sub Calculate() rules and contains the correct adjusted results (numbers) based on the combination of the source input data, the journals, and the applied rules. the child entity calculation status changes to "OK" to show it is complete, and the parent entities calculation status will change to "CN" indicating a consolidation is required (the parent entity is said to be "impacted" by the change in the data to the child).
then you right click on a parent entity and choose "consolidate" and it consolidates all the data from all the children of that parent to come up with the consolidated results of that parent entity. so the consolidation includes the translation, elimination, parent-level journals and calculation of the final contribution to the parent entity or whatever is written in the Sub Consolidate() rules if using custom rules. then the total of all the contributions is what is written to the data input level of the parent entity (<Entity Currency> value member). when the consolidation process has finished, the parent calculation status changes from "CN" to "OK".
then you repeat the process further up the tree until you reach the top level parent entity.
if you choose "consolidate" on a top level entity where the children have not yet been calculated, the children will be calculated first automatically, before the consolidation can start. if you add "write to file" rules to the rules file, to log the consolidation process to a file, you will begin to understand the order of operations. HFM merely provides both "calculate" and "consolidate" choices in the user interface, as a convenience to separate the two operations in those cases where only one or the other is desired to be performed. since the consolidation cannot proceed until the calculation is completed, a consolidate of a parent that contains not-yet-calculated child entities will launch a calculate of those child entities automatically first. if you have a parent that has many children, it is sometimes beneficial to do the calculate separately so you can do small portions of the entity at a time, and then only when all the calculates are complete, to go ahead and launch the consolidation of the parent.
an explanation of what happens in the consolidation process step by step, is provided in the Oracle HFM documentation. you should also consider to attend the Oracle University courses ("Create and Manage Applications" and the "Create Rules" courses, before you fully understand the concepts of HFM and can market yourself to potential clients as a consultant or competent user.
also there is at least one book available on the subject of HFM.
please mark the thread as answered/helpful if you can understand the above explanation. -
Split By Value and Collapse context
Please give me the business requirement in your project that leads to work on split by value and collapse context?
I read so many documents but i am still confusing with above mentioned node functions?Hi praveen,
Check these links
http://help.sap.com/saphelp_nw04/helpdata/en/43/c4cdfc334824478090739c04c4a249/content.htm
Message Mapping Simplified - Part I
/people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii
New functions in the Graphical Mapping Tool XI 3.0 SP13
http://help.sap.com/saphelp_nw04/helpdata/en/ef/df564b6aa24fc9ab0d685460747de5/frameset.htm
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/b9af5e71-0701-0010-d0b8-f612fb6593dd
regards
srinivas -
I need to reinstall Dictionary and Calculator - Lion
I accidentally deleted Dictionary and Calculator with a third party app, and I'd like to get them back.
After trying a few things, I decided to just reinstall Lion, but the OSX recovery mode -- restart with command-r, or with command+option+r doesn't work, probably because the wireless keyboard connection is glitchy and holding down the keys may be pointless. I have to reset the keyboard each time I login.
I wish I just had a Lion install disk.
I do have Time Machine backups, but I don't know how to get those Apple Apps back, I get a message that say's I can't copy from the Library because the “Dictionaries” can’t be modified or deleted because it’s required by Mac OS X."
Any suggestions?I just serched for OS X 10.7.5, OS X 10.7.2, and OS X 10.7 (which provided hits for a course and a tutorial)
I wonder if everything has been scrapped but Mavericks. I don't want to leave Lion because I can't replace expensive software. -
Condition class and calculation type missing for conditions downloaded from
Hi All,
I have downloaded all the condition types from R/3 using dnl custcndall
I have even downloaded the following using r3as
dnl_cust_cnd
dnl_cust_prc
dnl_cust_price
But I have noticed that for the downloaded condition types, condition class and calculation types are missing. Please suggest.I have faced the same issue recently.
The solution is in adapter object DNL_CUST_CNDALL for table T685 and other tables for T685 in that objet put the filters for condition type
for ex: KSCHL eq PR00
This sure will work.
But you have to set this filter for all tables T685*
Thanks
Sarabjeet -
CENVAT postings and calculations.
We maintain the tax code with the help of which system calculates the taxes on items.
In tax code we maintain the condition types for calculation of taxes.How can i check how much amount has been paid as BED for example and other taxes on purchase of various items in a specific period.
Also how G/L accounts are assigned to various taxes or condition types.What is the significance of account keys in calculation schema?
Also how does sytem calculates the CENVAT amount( from where does the system get all information about calculation of CENVAT) and post it to the system.
Also in PO whether we have to mention the tax code everytime ,and is there any direct relation of tax code > material, taxcode> vendorHi Deepika
Here i am giving you snap shot of CIN in SAP first you understand following example
Suppose you have purchase raw material so for this whatever excise duty you have paid is recordinf Separately in the register named RG23A. Similarly in case of Capital its known as RG23C.
The only difference between them is that in case of RG23A full value of excise goes to regaister.Suppose on total value of PO 100rs you pay excise 16% i.e. 16 and education cess is 2% i.e. 0.32.
In this case RG23A will updated as follows at the time of MIGO
Excise Entries
RG23A BED 16.00
RG23A Ecess 0.32
Cenvate clearing account -16.32
Stock Enteries
Stock account 100
Gr/IR account -100
In case of capital only 50% of duty goes to the register rest of Excise amount goes to hold.If we take above example then following transaction happens
Excise entries
RG23C BED 8.00
RG23C Ecess 0.16
Cenvate on hold 8.16
Cenvat Clearing account -16.32
Stock Entries
Stock account 100
Gr/IR account -100
After one year of this excise transaction on hold amount of capital goods can be transferred to registers according to excise law.For this transaction code is j2i8.
in PART1 entries also there is excise invoice details ?
Ans --> In excise invoise qty you are reciving are treated as part 1 entries at the time of capturing invoice part1 of respective excise register gets updated.
afetr posting excise invoice, what about invoice verification ?
At the time of invoice verification
following entries passes on if we take above example
Vendor account - 116.32
GR/IR account 100.00
Cenvate clearing acc 16.32
I hope this would clarify doubts regarding entries
Another regsiters used are
RG1 --> For Finished good means at the time of sending them out this registe updates
Now next
<b>Also how G/L accounts are assigned to various taxes or condition types.What is the significance of account keys in calculation schema</b>
These are assigned according to Excise transaction Type for example for goods recipt we use GRPO so we assigne GL codes w.r.t. Excise Group Excise TT and Company Code at
IMG--> Logistic General --> Tax on Good Movement --> India --> account Determination --> Specify GL codes to excise Transaction Type
Then Excise Transaction type are determined according to Movement type which can check here
IMG--> Logistic General --> Tax on Good Movement --> India --> Business transaction >Incoming Excise Invoice> Specify which Movement type Involve Excise Invoice
I hope now you can get clear picture of CENVAT postings and calculations
Regards
Vivek
-- Reward for the Efforts
Maybe you are looking for
-
Do I have to manually uninstall 10.42.34? Then download 10.0.45.2? Or if I just go to http://get.adobe.com/flashplayer/ and download version 10.0.45.2 will remove the older version? It confuses me because on this page http://kb2.adobe.com/cps/191/tn_
-
How to view po number in sap into t -code f.13
how to view po number in sap into t -code f.13
-
I just want to check if the iTunes email gift card has been redeemed (without directly asking the recepient themselves). Is there a way to check that? Would I get an email notificaiton when the gift card is redeemed?
-
firefox says I must install flash player ...I have the most current flash player...it works fine when using IE. I have the most current version of firefox.....it gives me the update plug in message. when i try and do that it just takes me to some pag
-
IMP-00033 (table not found) but WAS exported
Oracle 8i on Tru64 I did a full EXPORT on a DB and saved the log file along with the export. I am now trying to import a certain table using... "imp <db connect stuff> file=my.exp tables=RTL_INSTS". The import pumps out some header info (Import relea