Calculations with 0MATERIAL__ARTICLEPRICE on DB Level instead in OLAP
Hi
We have the article salesprice as an attribute (keyfigure) on 0MATERIAL. In a query we use the variable (replacement) to be able to calculate with article salesprice in a formula.
But this means poor performance, because the calculation can only be done before aggregation. So the DB transfers all information on article level into OLAP and makes then the calculation 0MATERIAL__SALESPRICE * QUANTITY in OLAP.
If we could transfer this calculation (formula) into DB select statement it would be much faster. e.g.:
SELECT
/*+ STAR_TRANSFORMATION FACT(F) */
"F"."KEY_101087T" AS "S____025"
,"X10"."S__M_IO_VS" AS "S____024"
,"DU"."SID_0LOC_CURRCY" AS "S____011"
,"DU"."SID_0BASE_UOM" AS "S____027"
, SUM ( "F"."CPGOREDCBU" ) AS "Z____034"
, SUM ( "F"."CPTINCONBU" ) AS "Z____171"
, SUM ( "F"."CPTINCOPBU" ) AS "Z____172"
, SUM ( "F"."RTTINCONST" ) AS "Z____177"
, SUM ( "F"."RTTINCOPST" ) AS "Z____178"
<i><b>, sum ( "F"."CPTINCONBU" * "X11"."/BIC/M_IO_IP" ) AS "Z____179"</b></i> , COUNT( * ) AS "Z____014"
FROM
sapp72."/BIC/E101087" "F"
JOIN
sapp72."/BI0/XMATERIAL" "X10"
ON
"F" . "KEY_1010874"
= "X10" . "SID"
JOIN
SAPP72."/BI0/PMATERIAL" "X11"
ON "X10"."MATERIAL"
= "X11"."MATERIAL"
JOIN
sapp72."/
Is there somehow a way to define this? Are virtual keyfigures a solution for this? If yes, are the virtual keyfigures included in the select statement or just later after reading the DB?
Thank you for some answers
Roger
Hi Olivier
How is life?
I'm looking more for a virtual keyfigure (like a formula) which is generated directly on the infoprovider (like non cumulative keyfigures).
e.g.
I create a new keyfigure and define how this one is calculated. in this example it is calculated by quantity and 0material__salesprice.
Now to include this keyfigure into a cube the two keyfigures have to be in the cube for sure. It's like a attribute with more than one key. but in this case this keyfigure is not physically in the cube.
and when you insert this formula from this cube the select statement could then make the calculations directly on the DB and returns the aggregated result into OLAP instead of all articles and then make a replacement.
I would see here a big advantage in performance issues in this points - I think it would be nice to have such a function / keyfigure.... what do you mean???
Cheers Roger
Similar Messages
-
SSAS Multidimensional Time Intelligence YTD calculation showing BLANK for Date level
Hi there,
I am working with SSAS Multidimensional Cube, basically I have defined a Time Intelligence calculations for just YTD in the Cube, the calculation was created in the Calculations tab of the cube as follows:
/*Year to Date*/
[Dimension Dim Time].[Calendar Dimension Dim Time Calculations].[Year to Date],
[Dimension Dim Time].[Year].Members,
[Dimension Dim Time].[Date].Members
=
Aggregate(
{ [Dimension Dim Time].[Calendar Dimension Dim Time Calculations].[Current Dimension Dim Time] }
PeriodsToDate(
[Dimension Dim Time].[Calendar].[Year],
[Dimension Dim Time].[Calendar].CurrentMember
My Calendar hierarchy is as follows:
Year -> Quarter -> Month -> Week -> Date
The problem I have is that when I am at Date level I am not getting the cumulative YTD value, instead I am just getting blank cells:
Could anyone help me defining a Time Intelligence YTD calculation that works for all levels including the Date (highlighted in yellow above)?
Thanks and best regards,
JossThe only strange thing is the MDX script, I would have used this one instead (sse below) - but if this is not the issue, I would suggest you to isolate the issue in a simpler MDX script removing any other calculation.
Also take a look at the DateTool solution for these calculations - I really don't like the wizard provided by the development environment, it has other issues but not something that should affect your calculation:
http://www.sqlbi.com/articles/datetool-dimension-an-alternative-time-intelligence-implementation
/*Year to Date*/
[Dimension Dim Time].[Calendar Dimension Dim Time Calculations].[Year to Date],
[Dimension Dim Time].[Calendar].Members,
[Dimension Dim Time].[Date].Members
=
Aggregate(
{ [Dimension Dim Time].[Calendar Dimension Dim Time Calculations].[Current Dimension Dim Time] }
PeriodsToDate(
[Dimension Dim Time].[Calendar].[Year],
[Dimension Dim Time].[Calendar].CurrentMember
Marco Russo http://ssasworkshop.com http://www.sqlbi.com http://sqlblog.com/blogs/marco_russo -
Calculating with attributes occurs problems in aggregation ...?
Hi Gurus, I have a question concerning the calculation with attributes:
I have created variables (as replacement path) based on a product attribute. The variables (with the attribute value) do work properly and I get the right numbers in the lowest hierarchy level.
Problem: within my hierarchy structure the query does not aggregate but reports errors ("X") in the upper hierarchy levels. How can I solve this problem?
Thank you for answering.
Greetings from T. DuongHi, I already have tried this but it didn't lead to the required result.
Still thank you for answering. I have seen in SAP Help that the options in extend properties might solve similar problems ... still mine cannot be solved by this. The problem is not the attribute value itself, as I found out.
I have another thread here, where I defined my problem that occurs due to a formula collision between a structure and a hierarchy.
Thank you.
Best regards
T. Duong -
Multiple hierarchies with a shared higher level in OBIEE
Hello all,
I'm trying to create multiple hierarchies for a shared dimension in OBIEE. I have gotten these to work in the past when each hierarchy for the dimension all shares the common “grand total” level at the top, but I now I'd like multiple hierarchies that share a common higher level that isn't the grand total level.
Here's what I'm trying to do with a Customer Geography hierarchy. I want to give the user the option to drill from the customer "Country" and go either into "Cities" or "States":
Grand Total level
--->Country level
------> State level
---------> Customer detail level
------> City level
---------> Customer detail level
So "Country" is the common parent of "State" and "City", and "State" and "City" each have" Customer detail" as the lowest level. The Admin Tool let's me build exactly this in my RPD (with no errors/warnings), but when I go to drill on Country in an Answers report, I don't get the option to navigate down to State or City; it just automatically drills into the underlying states -- never shows cities.
I guess I was hoping there'd be a pop up option to ask the user which path I wanted to drill down on (kind of like what shows up for multiple navigation targets in an Answers request).
Am I missing a setup step in my RPD for this multiple hierarchy? Is a shared higher level multiple hierarchy even possible in OBIEE?
Thanks,
Jeremy
Edited by: OBI Wan on Mar 19, 2009 3:29 PM
Edited by: OBI Wan on Mar 19, 2009 3:30 PM
Edited by: OBI Wan on Mar 19, 2009 11:20 PMThanks mma for the help. I thought I saw in your reply this link as well to RittmanMead, but it's not showing up now?
http://www.rittmanmead.com/files/Advanced%20Development%20using%20OBIEE%20(ODTUG%202008).pdf
Anyway, on slide 37 of Rittman's presentation, that screen shot he has of Country, City, and State is exactly what I am attempting to do. I was hoping my issue would be a bit more straightforward than the recommended ragged hierarchy work arounds, but I may still have to do something like that in the end.
This issue just seems more simple than ragged hierarchies, because I start from the same level and end up back at the exact same level (instead of different destination levels as can be the case in ragged hierarchies). I don't know -- maybe my example is ragged as well.
If Rittman got that hierarchy in his screen shot on slide 37 to work like I'm trying to, then that would be perfect. :) -
Formula variable for date calculations with date-characteristics (2004s)
Hi SDN,
I'd like to calculate the number of days between to date-characteristics. In 3.5, I was used to create 2 formula variables of the type 'replacement path', with 'date' as the dimension indicator. In my formula, I used the 'proces value as date' function for each variable, and I could perform calculations with them.
I'm trying to do the same in 2004s. However, I can't create replacement path's with 'date' as a dimension indicator. So I use 'number' instead, but it doesn't work: my query shows 'x'.
I can use the variables that I created using the 3.5 query designer as a workaround. But I hope there is a better solution.
If other people experience the same problem, please respond. Then I know it's probably a bug.
Kind regards,
DanielDaniel,
Try to look at the formula variables defined before the upgrade and see what is different to the newly defined. I am guessing just the terminology used is different.
If not the date value might be blank or something for one of the f-variables used. Try to display the formula variable values as KF in the query results and check what it is showing.
I hope this helps.
-Bala -
How can I get a pdf. to open in Safari, all i'm getting is a new window with a black, blank page, instead of the pdf., and I don't want to save the file to the desktop, Safari didn't use to do that, and I don't have Adobe in the internet plug in folder.
Hi
Please take a look to this thread Re: Can I refresh the browser rather than open a new tab? -
We want to implement the interest calculation for vendor invoices where
the due date has been exceeded.
As this is a public entity the FM module is also installed and so the
interest calculation of this invoices should go instead of one specific
account,to the expenses accounts of each invoice and in this way, the
money that is has to be cosumpted for the interests, would take the money
from the corresponding funds management document.
The standard process is not detailing the interest of each invoices,
instead is making one post for the whole of the exceeded invoices and
against just one account that does not consume from the funds document.
By this, the funds manage principle is not fullfil.The requirement is
that the program could allow to split this interest calculation for eachinvoice and that consequently consumes from the funds document related to
the expensive account of that invoice.
Any ideas???????????
Thanks in advance
RegardsHi
You can use OBV1 - Interest calcualtion account assignment screen for configuring posting keys and accounts.T You need to check the box Special G/L Indcator here in account determination posting specifications detail screen.
Reg,
Shashi Somani
Edited by: SKSomani on Aug 6, 2009 6:21 PM Tcode OBV1 -
Issue with PO release (multi level approval)
Hi,
Need help regarding PO release. I am working with 4 level approval process.
Information:
it is sequential release as I can see in workflow log, a new workflow gets generated for next level only after previous level executes the workitem.
Facing following issue at 2nd Level :
Level 2 releases item and it goes to Level 3, but workitem doesnt disappear from inbox.Once Level 3 releases item, an acceptance mail goes to Level 2. But along with the mail, updated workitem (i.e. showing release by 3rd level) also appears in inbox of Level2. Now two work items appear in Level2 Inbox.
In Workflow Log, this is how its behaving:
WORKFLOW STARTED-->
1st WF appears in WF log.
Level 1 releases WI ->
2nd workflow appears in WF log +
1st workflow with (in process status)
Level 2 releases WI ->
3rd WF appears +
2nd workflow with (in process status) +
1st workflow with (in process status)
Level 3 releases WI ->
3rd WF appears +
2nd workflow with (in process status) +
1st workflow with (in process status)
ISSUE: As soon as Level 3 sends back acceptance to Level 2, updated WI item appears( i.e. with latest release status which in this case is: released by level1, Level2 and Level3) along with the mail.
Level 4 releases WI ->
4th WF appears +
3rd WF appears (in process status) +
2nd workflow with (in process status) +
1st workflow with (STATUS COMPLETED)
ISSUE: As soon as Level 4 sends back acceptance to Level 2, updated WI item appears( i.e. with latest release status which in this case is: released by level1, Level2, Level3 and Level 4) along with the mail.
Result:
PO gets released.
In workflow log 2nd, 3rd and 4th workflow appear with IN PROCESS STATUS. All of them show process stopped at LEVEL2.Hi Kjetil,
Release strategy is being used. Configuration for release strategy is given as following.
RGroup Rcode Workflow Agent
Z6 R1 1 Blank
Z6 R1 1 Blank
Z6 R1 1 Blank
Z6 R1 1 Blank
Release is sequential.
For column 'Agent' mentioning position or User is not really useful because we are getting agents through Z table. Reason is: current org structure supports 1 position with multiple users from same department. In our scenario we need to find initiators department then find relevant approval levels for that departemnt. So I cannot mention any position in 'Agent' Column as release code will be locked against one position and one departetment.
Agents picked through Z table. Table has fields Agent/ UserID , level, department.
Logic to pick agents( Object and method created ):
When workflow starts, it finds department of the initiator.
For that department-> find approval levels available(L1, L2, L3).
For these levels -> Find Agent mentioned for that level.
Onece Agents are found for all levels -> Pass them to WF container.
In task activity, These agents are passed back to the rule and the task comes to know which agent it should go to.
Result : Four workflows start in sequence. When last level releases, only 1st workflow shows COMPLETED status. Rest three hang at level 2. If I see Me29N , release for that item is shown completed. To me it seems triggering of only first workflow is enough for release. Is there any way I can avoid trigerring of other three workflows?
Edited by: User112 User112 on Jan 25, 2008 6:30 AM
Edited by: User112 User112 on Jan 25, 2008 6:31 AM -
ATP Check at Delivery Level instead of Sales Order
In Standard SAP, whenever a sales order is created the ATP check is done and a Goods movement 601 is done for it and gets blocked.
I want that no movement to be carried out at Sales Order Level and should get blocked only at the Delivery level, instead of Sales order.
Can i do this by not defining any movement type in the schedule line category attached to the Item category of the sales order.hi amit,
u cannot remove MT assignment to SLCAT ,but what you can do is for your checking group and checking rule remove the ATP check relevancy in requirement class defination in spro customising >sd>availibility and TOR.
so that in VOV4 transaction for your SLCAT atp will be deactivated.
only while posting material doc at the time of PGI system would check for availibility and block the goods movement.
reward if helps !!!!! -
Preference calculation with batch management
Hi experts,
I am trying to find any documentation or manuals about how to set-up and use preference calculation in SAP-SD-FT or GTS based on batch management.
Does anyone of you know how to do it and use such kind of "standard"-SAP-solution or is customer-specific programming essential.
Any reply would be much appreciated.
Best regards,
CorinneHi Corinne,
Did you get anything for your requirement specific to Preference calculation with batch management. I am also looking for the same. let me know if you found something useful or if you created an enhancement to resolve this issue.
Regards,
Sumit -
Error with universalis responsive template. Prices appear with 163; code before them instead of £ sign. Does anyone know how to fix this problem?
Error with universalis responsive template. Prices appear with 163; code before them instead of £ sign. Does anyone know how to fix this problem?
-
Planni values at cost element group level instead of at cost element level
Is it possible to plan values at cost element group level instead of at cost element level in BI?
Similary I have another question for financial statements.
Is it possible to plan values at financial statement level instead of at G/ in BPS or SEM?
ThanksHi.
It depends on what you mean "cost element group".
If you mean node (not leaf) in hierarchy so the answer is NO.
If cost element group is regular characteristic so the answer is YES.
Regards. -
Plannig values at cost element group level instead of at cost element lev
Is it possible to plan values at cost element group level instead of at cost element level in BPS or SEM?
Similary I have another question for financial statements.
Is it possible to plan values at financial statement level instead of at G/ in BPS or SEM?
ThanksYou mean that I am on the wrong forum. Which forum is useful for me for this question?
Thanks -
How Achieve timedseries calculations with out using AGO And ToDate function
Hi,,
1)
How Achieve timedseries calculations with out using AGO And ToDate functionion
this question asking in interview ..is it possible..?
if yes please response as soon as possible..
2) i have 2 cloumns Product and value...
client requirement is they need ranks based on Value ..in dashboard .using dashboard prompt..edit box...if user enter any number (ex :5 ) report should show top 5 ranks if he enter 20 should be top 20 ranks..
how to achive this ?
thanks,
rajConsider yor first question:
1. Yes, we can create timeseries measures without using AGO and TODATE
1. Create ALIAS of fact tabe in the physical layer
2. Join the Time id from the ALIAS fact table with the YAGO_MONTH_ID column from your time dimension table (For calculating Year Ago variants) similarly join with MAGO_MONTH_ID column for Month Ago measures.
3.Pull the ALIAS tables as an additional Logical table source in the Lgical layer
4.Keep the mapping of the columns from the ALIAS table as its is
5. For e.g If you pick Revenue from the Year Ago Alias table it will give you the "Prior Year Revenue"
See if this helps you -
How to validate Expiry Stock at Outbound Delivery level instead of checking at Goods Issue?
Hello Everyone,
The client wants us to validate Expiry Stock at Outbound Delivery level instead of checking at Goods Issue?
What is the solution for this?
Regards,
AnwarHi Moazzam Sir,
I'm sorry for not explaining in detail. Actually, I posted the issue in a hurry. I apologize.
Actually, the client has materials which has expiry date. They use Batch Management. They maintain expiry data (90 Days) in Shelf Life Expiration Date. Their requirement is: User is creating sales order in VA01. Then, he creates Outbound Delivery (OBD), then PGI. They want system not to create OBD, if the material has expired. They want some error message to be thrown whenever user is trying to create OBD for expired stock.
Regards,
Anwar
Maybe you are looking for
-
Problems wiht b/b connection
taken from my router log file and pasted below this sort of thing happens several times a day and every time i loose connection it reports that its waiting for the line to become free, i take it that just like the last time this happened it measn the
-
A Compositing / RotoShape Node question
I'm a very new Shake user, and having some trouble getting my mind around Chapter 6: Rotoscoping, in the User Manual. If I have a guy walking across a room and I want to make the top half of his body disappear, can that be done with a Rotoshape? My t
-
Corrupted Picture Files - has anyone found a fix?
I have this problem and it's pretty severe. I also don't know what else has been corrupted on the phone (video, music, other docs?) Several photos have been corrupted some time after I had uploaded them. I have a good copy on my computer, but the ima
-
Windows server 2003 connect to SQl server 2000 problem
my problem D:\Myjava>java connect java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establis hing socket. at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source at com.microsoft.jdbc.base.BaseExceptions.getExce
-
Office 2008 install after Yosemite Clear Install
Just finished a Clear Install of Yosemite IOS. Trying to install Office 2008 but in vain! The installer crashes with the following message " the installer can't extract the files from the package for Office 2008" Any ideas ??