How to create a simple calculated measure ?
Hello,
I'm having difficulties creating a very simple calculated measure within OBIEE administrator. Let's say I have a dimension "product" with attribute "product price" and a measure "sales count". I'm trying to define in the "Business Model" layer the calculated measure "total sales". In order to do that I defined it as as a Logical Column with expression "product price" * "sales count".
However OBIEE doesn't compute what I'm expecting, it does in fact a cartesian product of the products and the grand total sales, which doesn't make sense. To alleviate that I tried to define the measure as associated to the Product level, then I get the computations right but the sales by product are not summed into a grand total.
Anyway this seems like a very basic thing to do but I've not been able to find any documentation about it; the internal "Help" documentation is extremely limited. Is there another source of documentation that I'm not aware of ?
Thanks for your help,
Chris
Hi there again,
I'm coming back to you regarding the calculated measure above. As advised, I defined it using physical columns and am - almost - able to get the correct results. However I notice that the measure is not correctly aggregated over the "product" dimension. More specifically what happens is that the products are organized into a level-based hierarchy; only the leaf elements have an attibute "price"; the upper nodes in the hierarchy group different products together with different prices.
The "total price" measure for such a node should be the sum of "product price" * "sales count" for all underneath nodes in the hierarchy, which is the way it is done for instance in AWM. However with the measure defined as above, I only get NULL values for upper nodes, due to the fact that "product price" is NULL for those levels and thus yields a NULL result.
I've tried to circumvent the problem by associating the measure to the leaf level of the "product" hierarchy in the Properties -> Levels tab, however this doesn't seem to do what I want, it only forces the computation to happen at the lowest level of the hierarchy. What I would like is for the measure to aggregate to upper levels just as it would were it defined directly in AWM.
Do you know how to do that ?
Thanks for your help!
Chris
Similar Messages
-
How to create a simple idoc in practice? can you provide an example?
how to create a simple idoc in practice? can you provide an example with full source code?
Try with the follwoing steps
Sending System(Outbound ALE Process)
Tcode SALE ³ for
a) Define Logical System
b) Assign Client to Logical System
Tcode SM59-RFC Destination
Tcode BD64 ¡V Create Model View
Tcode BD82 ¡V Generate partner Profiles & Create Ports
Tcode BD64 ¡V Distribute the Model view
This is Receiving system Settings
Receiving System(Inbound ALE )
Tcode SALE ³ for
a) Define Logical System
b) Assign Client to Logical System
Tcode SM59-RFC Destination
Tcode BD64 ¡V Check for Model view whether it has distributed or not
Tcode BD82 -- Generate partner Profiles & Create Ports
Tcode BD11 Getting Material Data
Tcode WE05 ¡V Idoc List for inbound status codes
Message Type MATMAS
Tcode BD10 ¡V Send Material Data
Tcode WE05 ¡V Idoc List for watching any Errors
1)a Goto Tcode SALE
Click on Sending & Receiving Systems-->Select Logical Systems
Here Define Logical Systems---> Click on Execute Button
go for new entries
1) System Name : ERP000
Description : Sending System
2) System Name : ERP800
Description : Receiving System
press Enter & Save
it will ask Request
if you want new request create new Request orpress continue for transfering the objects
B) goto Tcode SALE
Select Assign Client to Logical Systems-->Execute
000--> Double click on this
Give the following Information
Client : ERP 000
City :
Logical System
Currency
Client role
Save this Data
Step 2) For RFC Creation
Goto Tcode SM59-->Select R/3 Connects
Click on Create Button
RFC Destination Name should be same as partner's logical system name and case sensitive to create the ports automatically while generating the partner profiles
give the information for required fields
RFC Destination : ERP800
Connection type: 3
Description
Target Host : ERP000
System No:000
lan : EN
Client : 800
User : Login User Name
Password:
save this & Test it & RemortLogin
3)
Goto Tcode BD64 -- click on Change mode button
click on create moduleview
short text : xxxxxxxxxxxxxx
Technical Neme : MODEL_ALV
save this & Press ok
select your just created modelview Name :'MODEL_ALV'.
goto add message type
Model Name : MODEL_ALV
sender : ERP000
Receiver : ERP800
Message type :MATMAS
save & Press Enter
4) Goto Tcode BD82
Give Model View : MODEL_ALV
Partner system : ERP800
execute this by press F8 Button
it will gives you sending system port No :A000000015(Like)
5) Goto Tcode BD64
seelct the modelview
goto >edit>modelview-->distribute
press ok & Press enter
6)goto Tcode : BD10 for Material sending
Material : mat_001
Message Type : MATMAS
Logical System : ERP800
and Execute
7)goto Tcode : BD11 for Material Receiving
Material : mat_001
Message Type : MATMAS
and Execute --> 1 request idoc created for message type Matmas
press enter
Thanks & regards
Sreenivas
Here Master Idoc set for Messge type MATMAS-->press Enter
1 Communication Idoc generated for Message Type
this is your IDOC
Take a look at this guide.
http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
http://www.allsaplinks.com/idoc_sample.html
http://www.sappoint.com/abap/ale.pdf
http://www.sappoint.com/abap/ale2.pdf
http://www.sapgenie.com/ale/configuration.htm
http://www.sappoint.com/abap/ale.pdf
http://www.sappoint.com/abap/ale2.pdf
http://www.sapdevelopment.co.uk/training
http://www.sappro.com/downloads/OneClientDistribution.pdf
http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
Create The Extension Segment
Transaction: WE31
The first step in extending an IDoc is to create the new segments that will go into that IDoc. There are some rules that you need to follow when creating the segments:
- The name of each segment type must start with Z1
- For each field in the segment you need to define a field name and a
data element.
- The data element for the segment structure must be of data type CHAR.
How to create new segments:
Run the segment maintenance transaction WE31.
Type your new segment name, and click on Create.
Define the fields of your segment:
Field name
Data Element for the field (from the ABAP dictionary).
Do not change the Export length!
Save the segment
Run Segment -->Check to check the segment for consistency.
Release the segment for transport. Select Edit -->Set Release. Note that the Release column now has a check mark.
Create the Extension IDoc Type
Transaction: WE30
After you create the segments to be added to the extension type, you can create the extension type itself. Execute transaction WE30, enter the extension name, select Extension type, and click Create. You now have three options:
Create new type: Does not refer to other extension types
Create copy: Copies info from an extension type that already exists
Create successor: Extends an extension type from a previous release
of R/3. You can only have one version of an extension type for
each release.
Enter the Basic IDoc type that this extension type will extend.
The screen now shows the structure of the IDoc type you used as
a reference.
Position the cursor on one of the segments and click Create. This will insert an extension segment as a child of the selected segment.
NOTE: A segment cannot appear more than once in an IDoc type! You must control the use of duplicate segments with the segment attributes (the next screen).
The segment attribute screen appears. Enter the information and save.
Extension segments should not be mandatory (for future upgrades), and will need to have minimum and maximum number of instances defined. This answers the question, for each instance of the parent segment, how many instances of the child segment may we have?
You can press the Segment Editor pushbutton to view or change the segment definition.
Create the new Message Type
You can only use an extension IDoc type by assigning it to a message type. You can create a new message type for this.
First the message type itself needs to be created.
Transaction: WE81
Create a new entry and save. Use SAP established customer naming conventions (good form is to start with a Z and retain the rest of the related SAP message type, so, for example, MATMAS becomes ZMATMAS).
After creating the message type, associate it with the corresponding Basic IDoc Type and Extension Type. This relationship is used when IDocs are sent to or received from a partner to determine what segments are valid and what the hierarchy for those segments is.
Transaction: WE82
Create a new entry and enter the Message type, Basic IDoc type, Extension type, and Release, and save your data. Note: the release assignment is not valid for prior SAP releases.
One message type can be associated with many basic IDoc types; however, you need a one-to-one relationship for distribution via ALE.
regards,
srinivas
*reward for useful answers*</b> -
How to create a specific calculation
Hi all
I would like to create a calculation using the sales amount as measure and the geography as dimension
The hierarchy of the geography is:
ALL
-Region
--Country
---Store
And the calculation I want is:
Sales of a Country/ SUM(sales of its Region)
using level based measures allows me to create
Sales of store / SUM(sales of Country)
Sales of store / SUM(sales of Region)
Sales of store / SUM(sales of ALL)
because the sales are aggregated at the lowest level wich is 'Store'
Any one knows how I can create this in the repository?
RegardsHi,
I don't really see the problem, because the solution is quite easy:
1. Create one level based measure: Sales by Country
2. Create another level based measure: Sales by Region
3. Create a logical column with the calculation Sales by Country / Sales by Region based on the logical columns from 1 and 2.
Regards,
Stijn -
Creating a TEXT calculated measure
Is it possible to create a calculated measure of data type TEXT using AWM ?
I want to do the equivalent of defining an OLAP DML formula which returns a text value, but I want to be able to store the formula in the OLAP metadata.
I'm familiar with creating "dummy" calculated measures in AWM, saving to an XML template file, then editting the XML and reimporting, to define more complex calculated measures than the AWM wizard provides for, but I still haven't been able to successfully create a calculated measure which returns TEXT.
I've tried changing the XML from DataType="Decimal" to DataType="Text", but there are other sections in the XML such as:
CalcStep StepClass='oracle.dss.selection.calcStep.SimpleMathCalcStep
and:
CalcValue DataType='java.lang.Double'
which I think are also having an impact.
Any examples would be much appreciated.
Thanks,
Andy WhiteI have succesfully created text-valued measures with the AWM graphical interface. You need to make sure when you define the data cube that it does not have the "compressed" option checked, then you will get TEXT as one of the choices of data when you create a measure.
-
How i create a simple sequence in OWB (Example)
Hi,
i want create an simple sequence in OWB. But how i make a simple sequence in the oracle data Warehouse Builder.
Until now i goes into expression Builder of the sequence.
where already written is:
*"SEQ_ACCOUNT".NEXTVAL*
so my idea was to write behind this start with 1 increment by 1
also looks it practically so
*"SEQ_ACCOUNT".NEXTVAL start with 1 increment by 1*
but this doesn´t work. But was is wrong?
Can me give anyone an concrete example for a simple sequence or show how it must write that it will be correct.
I look forward for your replies :)I have found the solution for this problem :) To create a seqeunce goes to sequences in project explorer ---> new sequences ---> give name and bla bla bla --> right click on to created sequence and choose confiugre. Here you can under sequence parameter configure things as Increment By and Start with But how goes it into expression builder of a sequence?
-
Basic help with Flash v10 (creating a simple calculator)
I have Adobe CS4 Pro with Flash v10. I'm trying to create a simple, basic calculator that adds 2 numbers. I followed the tutorial at http://layersmagazine.com/flash-design-calculator.html. At first, I was unable to assign variables to any objects, but got that cleared up by selecting ActionScript 2.0 (was set to 3.0). At this point, the calculator accepts the two numbers, but when I select the "add" button with the associated code as shown in the tutorial, nothing happens. Does anyone have a suggestion as to what I might be doing wrong? Thanks.
This is all the code there is:
on(release) {
total = Number(firstnumber)+Number(secondnumber);
There's really not an error--I just don't get any output. I've created two 'Input Text' boxes, and on the properties tab for each I have defined the "Variable:" field as either 'Number(firstnumber)' or 'Number(secondnumber)'. I've also created a 'Dynamic Text' box and defined the "Variable:" field as 'Number(total)'.
Note: the example I was following did not specify to include the 'Number()' function in the "Variable:" fields. However, when I don't, and I run 'Test Movie', the 3 boxes are automatically filled with "_level0.firstnumber", "_level0.secondnumber" and "_level0.total". When I type 2 numbers in to the 2 'Input Text' boxes, and then select my button that has the above code associated with it, I get "NaN" in the output ('Dynamic Text') box.
Thanks again for your help! -
Hi all. I realize this might fall into the dumb question category, but I can't find any tutorials or walkthroughs on it.
I want to make a simple calculator. The user inputs the variables and that changes the values displayed.
I have all of the formulas as a table in Excel. I imported the data source (Excel), created a gallery and connected the various input and text boxes to the corresponding column labels in Excel.
But when you change the values in the text input box the other fields don't change. It's almost like Siena forgot the formulas and is just displaying the text.
Any help or directions to a tutorial would be greatly appreciated.
Thanks!Hi,
When importing data from Excel, Siena retains the values not the initial formula. So you will need to create these formula using Siena expressions.
As a simple example, let's assume you want to add the values of two input visuals and display the result in a lablel, the text expression of that label would be:
label: InputText1!Text+InputText2!Text
Olivier -
How to create a simple app using the MVC approach?
Hello gurus i'm trying to learn the SAPUI5 and i'm trying to create a simple app using the MVC i created the app and trying to add a lable to the view but there is nothing appear when i run it the code for the HTML page
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv='Content-Type' content='text/html;charset=UTF-8'/>
<script src="https://sapui5.hana.ondemand.com/resources/sap-ui-core.js"
id="sap-ui-bootstrap"
data-sap-ui-libs="sap.m"
data-sap-ui-theme="sap_bluecrystal">
</script>
<!-- only load the mobile lib "sap.m" and the "sap_mvi" theme -->
<script>
sap.ui.localResources("mytestapp");
var view = sap.ui.view({id:"idshell1", viewName:"mytestapp.shell", type:sap.ui.core.mvc.ViewType.JS});
view.placeAt("content");
</script>
</head>
<body class="sapUiBody" role="application">
<div id="content"></div>
</body>
</html>
the code for the view
sap.ui.jsview("mytestapp.shell", {
/** Specifies the Controller belonging to this View.
* In the case that it is not implemented, or that "null" is returned, this View does not have a Controller.
* @memberOf mytestapp.shell
getControllerName : function() {
return "mytestapp.shell";
/** Is initially called once after the Controller has been instantiated. It is the place where the UI is constructed.
* Since the Controller is given to this method, its event handlers can be attached right away.
* @memberOf mytestapp.shell
createContent : function(oController) {
var oLabel = new sap.ui.commons.Label("l1");
oLabel.setText("Test label");
oLabel.placeAt("content");
i dont know what is wrong or if i should use a container to display my controls
any help will be appreciated
thanks in advanceHi,
Instead of oLabel.placeAt("content"); use return oLabel;
so it will as below,
createContent : function(oController) {
var oLabel = new sap.ui.commons.Label("l1");
oLabel.setText("Test label");
return oLable;
Regards,
Chandra -
How to create a simple input form in BPC 10.0 and the details are below
Hi Experts,
I would like to know how to create attached input form and what are the dimension would require to use in order to populate correct report
Please provide your comments and the sample report has been attached.
MGA Index
Column
Head Count Planning Required
Approver authority
Asset
Row_Cost Center
Business Development
Finance
Procurement -
C&P
Legal
HSS & Environment
Petroleum Engg
Drilling
Subsurface
Thanks in advance.
Regards,
SK.Hello,
The new update of Muse allows you to use the Webforms widget with a non Business Catalyst host as well.
However, Captcha is something which currently cannot be used via Muse without using Business Catalyst as host.
This document might be of some help : http://forums.adobe.com/docs/DOC-3581
Regards,
Sachin -
How I create a simple instaltion to Oracle 10g Client
Firstly I dont know where I post about this... So Post here. I need create a Simple instalation to Oracle Client...
example: Next, next and conclude. when I define the parameters previously... this is possible?Hi;
You need to use response file
http://docs.oracle.com/html/B13804_02/advance.htm
http://docs.oracle.com/cd/B19306_01/install.102/b14312/advance.htm
Also please use search mechanism which we discussed similar issue many times. Also notice 10g not supported anymore.
PS:Please dont forget to change thread status to answered if it possible when u belive your thread has been answered, it pretend to lose time of other forums user while they are searching open question which is not answered,thanks for understanding
Regard
Helios -
Need help on how to create the simple mapping using ORACLE DATA INTEGRATOR
Hi guys,
am new to learn odi.. please share me or steps how to develop the simple mapping using ODI...Hi,
I am a newbie to Oracle Data Integrator as well. You should have a look here first; http://www.business-intelligence-quotient.com/?p=379
Try to play around with ODI and then come back if you have specific questions. You should better move to this ODI-forum; Data Integrator
Good Luck,
Daan Bakboord
http://obibb.wordpress.com -
How to create the simple EJB Applications.
Hi
I have asked about the what are the necessary softwares required for creating the Simple EJB Applications.
I have
Jdk 1.6,
Netbeans 5.5,
J2EE5 ,
Apache Tomcat 5.5
what are other necessary softwares?please tell me From where i get the source code samples?
Please Tell me it is necessary for me..Hi U,
Tomcat is only JSP/Servlet container -- no EJB support.
Easiest is to download the Netbeans 6.1 bundle including Glassfish and JavaDB, thats all you need + JDK and Java EE of course.
Glassfish has both web/JSP/Servlet-container and EJB-container, so Tomcat is not needed then.
( If for some reason you really want to use Tomcat, you can use it together with OpenEJB for example, to add EJB-support. ) -
How can create a Simple Flash Preloader
Hi ,
How can create preloader in flash (AS2).
Please help me.put a textfield on stage in frame 1. assign its instance name to be tf in the properties panel. change your code to:
kglad wrote:
stop();
this.onEnterFrame=function(){
var bl:Number=this.getBytesLoaded();
var bt:Number=this.getBytesTotal();
tf.text=Math.round(100*bl/bt);
// you can use bl and bt to animate your movieclip, if you have one
if(bl==bt){
delete this.onEnterFrame;
play(); -
How to create a simple program
I downloaded JBuilder Foundation and it looks very complicated. I thought I could start a new project like you can in C++ Builder and choose "console application" and it would bring you to the code window with nothing in it or perhaps just a header file or two. But when I create a new project it brings me to a code window with a whole bunch of complicated code already there. And I don't understand any of it. Really what I want to be able to do is start a new project and just type this into the code window:
public class Welcome1 {
public static void main(String args[ ])
System.out.println("Welcome to Java!");
And then click Run and it outputs:
Welcome to Java!
But I don't know how to do that in this JBuilder. I may need to switch to another IDE or maybe just download a text editor and the Java SDK. If you can tell me what I should do that would be good. Thanksdownload a text editor and the Java SDK.I'd recommend that. It's easy to learn an IDE afterwards, but many people are incapable of writing and compiling code without an IDE because they don't know how javac works etc.
For simple programs a text editor is more than enough, then once you get your head around the classpath, you're home free! -
How to Create a SIMPLE Flex Tree?
Hi,
Okay Im pretty new to flex and i have a uni assignment where
i need to use it.
A tree list would be perfect for one part of the site,
otherwise it would have heaps and heaps of links.
I want a tree that has four clickable parents (nodes) and
then inside each parent i want 14 leafs. When a leaf is clicked on
i want an image and some text to appear next to it.
Similar to the tree example in the Adobe Flex Explorer -
http://examples.adobe.com/flex3/componentexplorer/explorer.html
While i can figure out how they are creating the tree, and
naming the nodes etc, i don't' know how to edit it to display and
image and content into the right side box?
If someone could tell me, explain it, or has source code to a
simple example that would be awesome!
Thanks in advance,
Tarahey thanks for replying. i eventually found a tute of what i
wanted and got it all working. didn't realize how easy xml is lol
^-^
would you be able to help me with something else though? i
posted another topic just above.
what i want to do (this is separate form the tree) is have
one image and when i click on it have it change to another image.
essentially it will be the back of a playing card and then
when it's clicked on it will swap to the front of the image card.
so i have a back image and a front image. how can i swap
them?
Maybe you are looking for
-
On clicking browse I am getting [bold]Warning:[bold] To avoid potential deadlock, operations that may block, such as networking, should be performed in a different thread than the commandAction() handler. Can anybody help? for the following code * Ma
-
Error message when burning to Sony DVD-r discs
Just bought 200 Sony DVD-R printable discs from Costco, and I am trying to burn a 15 minute short film in DVD studio pro. The DVD just spins in Formatting and I get this message:The recording device reported the media error: Unknown device error. I h
-
I can't change anything on my ipod through itunes what might be the problem? I stransfered everything, I authorized my computer but I cant use the apps page on itunes all the apps inside the ipod picture and on the side are faded and I cant click on
-
Read password Policy at different OUs in a Active Directory domain
HI, 1. Can I apply password polices at OU levels? I could apply password polices at OU level, [I set minPwdLength=8 for a GPO at an OU]. But when I tried creating a user with 7 characters in password. It did not respect the policy at the OU level. a
-
Startup config error after upgrading to ASA from PIX
Hey guys. I get the following startup-config errors when reloading our ASA. A pix->asa conversion was just done on it. The ASA is currently running 8.2(5), and I am trying to get ready to update it to the most stable release, and wanted to make su