Measure divided by Detail in a Measure Variable

Hey Guys,
I have a measure variable in WEBI report. When i use variable in a table, i get a #Multivalue error in some of the cells.
When i saw the formula for the measure variable, it was something like this.
Variable_Name=Round(([Measure Object]/[Detail Object]);2)
I was thinking whether this formula is right logically. I think we cannot divide a Detail object or vice versa.
Please share your thoughts on this and the error also.
BOXI R3.1
SQL Server
Thanks
Shreyas

A detail has an assumed 1:1 relationship with its owning dimension. If someone has ignored this rule and tried to get round a merged dimension which they logically shouldn't then you'll be stuck with it.
Measure/Measure is the logical option
Measure/Dimension is fine too. Such a scenario would be Total Sales/Unit Price to get Quantity (not that you'd do that, you'd bring Quantity in from the query but it can be done.
The definition of the detail would be useful in this instance together with understanding which queries are from which query and how you get get your solution.

Similar Messages

  • Having to recreate all detail variables to measure variables

    Why am I having to recreate all my variables to a measure variable in order for them to show in my table? (New to WEBI)

    I assume you have multiple queries in your report. Have you merged common dimensions between your two queries? If you merge on enough common objects you should be able to use other objects from you queries with each other.
    However you may still get synchronisation errors, if so you will need to do what you are doing and create them as measures, or define them as a detail of a merged dimension.

  • Manipulating custom measure variable inside a line chart

    Hie Guys,
    I have a line chart in my report that contains 2 custom measure variables & 1 measure object from the Universe in the Y axis and one dimension object - "Month" in the X axis.
    Formula for the custom measure variables are - 
    If [Month] = "Jan" Then 45
    ElseIf [Month] = "Feb" Then 65
    ElseIf [Month] = "Mar" Then 88
    And so on..........
    Now, I have an input control in the report for "Project Type" (Development & Improvement)
    I want the chart to behave as described  below.
    If (Project Type = "Development") Then only display measure object 1 in the chart
    If (Project Type = "Improvement") Then only display measure object 2 in the chart.
    Right now, the input controls are displaying all measure objects in the chart when I click on them.
    Is there a way I can get the above mentioned functionality in my report? I am using Business Objects 4.0  SP6.
    Could anyone please help me solve the problem? Thanks.

    Hi,
    Add Two Line Charts in Report one with [Measure Object 1]
    & another with [Measure Object 2] .
    Now Create Variable for User Selection .
    Selection = ReportFilter([Project Type])
    Now in Hide When Property of chart (Right Click on Chart --> Format Chart )

  • Detail view with bind variable. TreeTable not showing all detail result.

    I’m having trouble with treeTable using detail view with bind variables and where clause defined in VO definition.
    Both, master and detail view objects, base on the same entity and have the same condition in where clause. The view objects also have bind variables, which are set in prepareRowSetForQuery() method.
    Again, these are two different views, that get different result, based on value of one of the bind variable.
    When I show results in two different tables on jsf page, where master table has "RowSelection" set on "single", all results are displayed in detail table.
    But when I use treeTable, only the first result of the detail is shown.

    I tested it in applicationModule and it works, but i think that's the same as two tables on a jsf page.
    This is the order in which overridden methods are called in ADF BC or two tables on jsf page
    when clicking on row in master table.
    PrepareRowSetForQueryDetail
    executeQueryForCollection_Detail user param: 2
       Object 2: class [Ljava.lang.Object;  -> print of the object2[] parameter in executeQueryForCollection
         List 0: Bind_ChildId -> viewLink parameter
         List 1: 400035313 -> viewLink parameter value
    getEstimatedRowCount_Detail
    count: 2
    getEstimatedRowCount_Detail
    count: 2 And when i click on "expand node" in tree table:
    getEstimatedRowCount_Root
    count: 2
    PrepareRowSetForQuery_Detail
    executeQueryForCollection_Detail user param: 2
       Object 2: class [Ljava.lang.Object;
         List 0: Bind_ChildId -> viewLink parameter
         List 1: 400035321
    PrepareRowSetForQueryDetail
    executeQueryForCollection_Detail user param: 2
       Object 2: class [Ljava.lang.Object;
         List 0: Bind_ChildId -> viewLink parameter
         List 1: 400035313
    getEstimatedRowCount_Root
    count: 2
    getEstimatedRowCount_Root
    count: 2
    getEstimatedRowCount_Root
    count: 2
    PrepareRowSetForQueryDetail
    executeQueryForCollection_Detail user param: 2
       Object 2: class [Ljava.lang.Object;
         List 0: Bind_ChildId -> viewLink parameter
         List 1: 400035313
    PrepareRowSetForQueryDetail
    executeQueryForCollection_Detail user param: 2
       Object 2: class [Ljava.lang.Object;
         List 0: Bind_ChildId -> viewLink parameter
         List 1: 400035321
    getEstimatedRowCount_Root
    count: 2
    getEstimatedRowCount_Root
    count: 2Values of user parameters are OK. Is there another method that i should override?
    I also noticed, that if detail view doesn't have user bind variables, the tree works fine and is shown even in ADF BC (aplication module).
    I guess we loose a tree, when using bind variables in detail view object.
    Is there a way around it?

  • Can't subtotal on measure variables from Query 2 in merge dimension report

    I use a query identifying customers (Query1.HH_ID) sold by each salesperson. A second query identifies a subset of those customers who are longtime customers. I merge these queries using the dimension, HH_ID. I project Query1.HH_ID onto the report and create a variable via =If([Query2].[HH_count]=1;1;0) to get a measure which is either 1 or 0 depending on whether a record is retrieved from Query2 with a value for Query2.HH_ID that matches Query1.HH_ID. The report is fine at the detail level, but when I insert a break and try to subtotal the measures, the variable from Query 2 produces a subtotal of 0 even though I can see a mixture of detail records with 1s and 0s. It appears that one cannot subtotal on measures from Query2 in a merged dimension report, or at least not if the merged dimension is not projected onto the report but rather only the dimension from Query1. Is this a known principle?

    Hi Michael,
    I think the issue is that they Query2.HH_Count is being summed first. So if you have a mixture of values, say
    rownumber, value
    1,1
    2,0
    3,1,
    4,0
    you will get 0 as your HH_count will equal 2.
    Try
    =If(Query2.HH_count>=1;1;0)
    Alternatively try
    =If(Average(Query2.HH_count)=1;1;0)
    Hope this helps
    Alan

  • Measure Variable doesn't sum correctly in Crosstab

    I've got quite a bit of data that I would like to sum up at an individual account level.  One of the data points being tracked is number of location changes.  In the universe itself, I've created locationChange as a measure with the sum projection function.  This is nothing more than a reflection of the locationChange field in the source table which contains a 1 if there has been a location change.  Easy enough.
    The complexity comes when there are only certain times that a locationChange truly qualifies as a location change based on business rules which are subject to change often, so, at the report level, I've created a variable measure called RealChange which, based on today's logic sets the value to 1 if the time between changes >15 minutes.
    formula:
    realChange =if(locationChange = 1 and locationtime>15;1;0)
    Here's a for instance
    acct
    locationtime (mins)
    locationChange
    RealChange
    111
    3
    1
    0
    111
    50
    1
    1
    111
    145
    1
    1
    If I use the sum function on the realChange column I get 2.
    However, if I turn this into a crosstab, I get:
    acct
    locationChange
    RealChange
    111
    3
    1
    RealChange should be 2.
    I've tried to edit the formula of RealChange in the crosstab to =sum(RealChange) but no matter what I do, it only ever displays 1.
    I've tried to create a variable that says sum([realchange] in ([acct])) but that still only yields 1
    I would hate to have the users have to export all of the detail to excel to do a pivot but right now that's the only way I can think of to get the correct total per account.
    Can someone help me figure out what I'm doing wrong?
    Thank you in advance!

    Hi Laura,
    Are getting expected result while displaying the result in a vertical table?
    I believe you would be using the dimensions in the table as =[Acct], =Sum([Location Change ]) and =Sum([real change]). Please correct me if I am wrong
    I can see expected data both in vertical table and cross table when tested but I have not tested this on BI 4.0 SP4 as I do not have this currently available but will do test this on SP4 if required. (Tested on BI 4.1)
    Also have you tried using ForEach([location time]) along with Sum([real change])?
    Regards,
    Manpreet

  • Ranking is not working properly on measure variables

    Dear All,
    I am facing a strange issue in my report,i have created a cross tab report with vendor,month,qunatity i have applied rank(Top5) on this table this working fine.
    I need to show quantity share% also in the report so to achieve this i have created two variable in webi:
    Total Qty for share:
    =Sum([Quantity] For All([Vendor Name])
    %Qty share:
    =[Quantity]*100/[Total Qty for share]
    I have used %qty share in the table,now the table contains vendorname,month,%Qty share,i have applied rank(For Top5) in this table but after apply rank the values in the table is not showing properly .
    For example before ranking i have 6 for the month of jan but after applying ranking it is becoming 14 in the table.
    Why it is happening is there any problem in the variables.
    I have tried rank in the both the ways ,the option in webi and the formula by using Rank function:
    Rank([quantity[;Vendorname]) both is giving the wrong values.
    Please suggest me it is very urgent where i need to deliver the report.
    PFA screen shot for the values how it is showing.
    BO Version:
    BI 4.1 sp5
    Regards,
    Mahesh

    Hi Mahesh,
    For
    %Qty share:
    =[Quantity]*100/[Total Qty for share]
    use following formual
    =([Quantity]/[Total Qty for share])*100
    Thanks,
    Swapnil

  • Need a measure variable based on dimension

    Dear Experts,
    I  need a variable based on dimension.This should gives the values from 1 to n based on dimension.
    Suppose i have a column "Wage type".If it has 10 rows,Then for first one it should be 1 and second one it should be 2 and so on.I want to implement break for this dimension,even though the variable should give same values as i mentioned above.
    I try to use RowIndex and Count functions.But i couldnt get my requirement.
    I want to use this values in Xcelsius.
    I hope you can understand issue.
    Regards
    Venkat
    Edited by: Venkat8130 on Jun 23, 2011 7:24 AM

    Hi,
    I worked on the same issue, in my case result in following format
    year........count...month......revenue
    2001........ 1........ jan............100
    .................2.........feb............200
    .................3......... mar...........300
    .................4......... apr............400
    2002.........1...........jan..........500
    .................2..........feb...........600
    .................3..........mar..........700
    If you are expecting the same format, first break the report deportment wise. Create the variable count with bellow formula.
    =RunningCount([Month];Break)
    Regards,
    Shahin.
    Edited by: shahin13 on Jul 19, 2011 8:58 AM
    Edited by: shahin13 on Jul 19, 2011 9:04 AM

  • Who can tell me the details about "JMSJVMOPTS" environment variable of JMSC API

              I have a question about JMS C API.
              When in windows service application, JMSContectCreate return JMS_JVM_ERROR error.
              But in desktop app, it does well.
              I think I may need set the JMSJVMOPTS environment variable.
              But how to set JMSJVMOPTS ?
              

    OK,
              The JMSJVMOPTS are extra options passed to the "java" executable itself
              along with
              "-Djava.class.path=${CLASSPATH}"
              Hence, the actual things you can set with this depend on which java compiler
              you are using. If you are using the Sun JVM for instance, here are some of
              the options you can set (from java -?)
              where options include:
              -client to select the "client" VM
              -server to select the "server" VM
              -hotspot is a synonym for the "client" VM [deprecated]
              The default VM is client.
              -cp -classpath <directories and zip/jar files separated by ;>
              set search path for application classes and resources
              -D<name>=<value>
              set a system property
              -verbose[:class|gc|jni]
              enable verbose output
              -version print product version and exit
              -showversion print product version and continue
              -? -help print this help message
              -X print help on non-standard options
              -ea[:<packagename>...|:<classname>]
              -enableassertions[:<packagename>...|:<classname>]
              enable assertions
              -da[:<packagename>...|:<classname>]
              -disableassertions[:<packagename>...|:<classname>]
              disable assertions
              -esa | -enablesystemassertions
              enable system assertions
              -dsa | -disablesystemassertions
              disable system assertions
              As far as what sort of things can cause a JMS_JVM_ERROR from
              JmsContextCreate the answer is that there are many, many reasons this might
              be happening. Please look for a file named ULOG.<mmddyy> (where mmddyy is
              month/day/year - for example ULOG.081403) somewhere on your system (I am not
              sure where this file would go being run from a W2K service). That "userlog"
              file should contain more information about why the failure occurred.
              Also, you can set JMSDEBUG=y in your environment which will print to stdout
              (again, not sure where stdout goes in a system service) stack traces and
              other debugging information into the ULOG file.
              Hope this helps...
              "Luke" <[email protected]> wrote in message
              news:[email protected]...
              >
              > Hi,John Wells,
              > thanks for your help.
              > But what I really don't know is what value I can set for JMSJVMOPTS.
              > There is not document about the detail of optional values for JMSJVMOPTS.
              > And what reasons can result a JMS_JVM_ERROR in JmsContextCreate() ?
              

  • Use business indicator and measurements

    I'm working with 11g
    I have try to use business indicator (BI) and measurements. I found the istruction on " Getting started" ( and in Oracle documentation too)
    I have created :
    - BI dimension string --> that is associated at string variable typeDocument of the iniziator human task
    - BI mesurament int --> single
    - BI (numberTypeDocument) counter associated at the human task
    I set new dashboard in workspace. In "Data sources" I define :
    - Dimension
    Series --> Revision ( default)
    Group --> with BI dimension
    - Measure
    Variable -->with BI mesurament
    Operation type --> sum
    Value type     --> variable
    - Filter --> Revision(default)
    BUt I don't see nothing
    Can you help me?

    I have find .....
    http://download.oracle.com/docs/cd/E17904_01/doc.1111/e15731/bam.htm
    Go to Tools > Internet Options > Security > Trusted sites and click Sites.
    Uncheck Require server verification (https:) for all sites in this zone if necessary (it is necessary unless you have Oracle BAM set up for SSL).
    Add the Oracle BAM URL to the list:  http://<bam_servername>
    I try at create BAM data object ....
    thanks
    Elena

  • [HELP] Error, Unknown variable or property name '', error. No Details???

    Our production team ran some of our TestStand software when it froze.  Upon exiting the report file contained only one error:
    “Error, Unknown variable or property name ''. [Error Code: -17306, Unknown variable or property name.]”
    This has not happened before with this test sequence.
    Now I have seen this before, during development of other TestStand projects, but there are usually details of the unknown variable in the error.  This one just has empty quotes!  There are around twenty sequences called in this software.  Is this a rouge error, a symptom of the freeze, or do we have an unknown variable issue in these sequences?
    Christopher Povey
    Senior Test Systems Engineer for BAE Systems.

    Hi Christopher,
    As you say as part of the Error Message you should of had the Variable name.
    With this freeze and if you had to force exit of the TestStand, it would seem that to get any report at all you must be doing some sort of 'On the Fly' reporting. If so, can you pin point what the test sequence was doing to try to identify the cause of the freeze.
    Maybe you are obtaining the variable name dynamically and because of the crash this value was not obtained and therefore you were passing an empty string. Hence no variable name in error message.
    Regards
    Ray Farmer

  • Getting null object loaded from local variable error while trying to drag any field

    Hi,
    I am getting the below error while I am trying to drag any field in webi reports. Error message is attached below.
    Can anyone help me on this. Webi is based on two different universe.
    Thanks
    Snehasish

    Thanks Sathish for the reply.
    BO Version is 4.0
    reporting database is oracle 11.2.0.3.0
    I am getting this error when I am trying to drag any field(dimension, measure, variable everything) in the report.
    Universe has been created on top of Bex query. Now the webi is built on top of universe.
    Thanks
    Snehasish

  • Using Formulas and Variables To Count Rows That Meet Certain Conditions

    I have a web intelligence report designed that shows results of shipments that arrived and departed in a given period and the mode of transport (air, ocean, motor).   I've tried building formulas to give me counts for example of the number of shipments arrived via ocean, number of shipments that departed via ocean, and so on.
    I tried various the Count and If functions in different ways but I can't seem to get them to work.  What is the correct logical set of variables or formulas I need to build so that I can display summarized information in my report that shows:
    Shipments Arrived via Ocean
    Shipments Arrived via Air
    Shipments Departed via Ocean
    Shipments Departed via Air
    Key report fields are [Shipment Identifier] , [Mode]=Ocean, Air, Motor, and [Status] = Arrive;Depart

    You should be able to do one of the following:
    1. Create a measure variable ShipmentCount as
    =Count([Shipment Identifier])
    In the report, use Mode, Status and ShipmentCount. This will give an aggregated count per Mode per Status.
    2. Create a formula for each of Mode/Status combination like
    =Count([Shipment Identifier]) where ([Mode] = "Ocean" and [Status] = "Arrive")

  • Problem with variables in formulas when using CrystalReportViewer

    Post Author: Aksu
    CA Forum: Formula
    Hi! I have a problem with variables in Crystal Reports formulas, when using CrystalDecisions.Windows.Forms.CrystalReportViewer class from VS2005-project. ReportViewer always gives error:*************Crystal Report Windows Forms ViewerThis field name is not known.Details: errorKindError in File C:\{dir&#93;}\{file}.rpt:Error in formula <mCustomerAttributes>.'Dim result As String'This field name is not known.Details: errorKind ************* Report without variables works fine with Viewer and in Crystal Reports Designer report with variables works also fine. I have tried with both "formula-syntaxes" - basic and crystal. But Viewer always gives error when trying to define new variable.I think the problem might be with CR -versions, because VS-project has formerly been designed to VS2003 and CR9 or 10. Now I'm using VS2005 and CR11. Though I have changed all references to new CrystalDecisions-asseblies (Ver.11.0.3300.0), when I debug the project and checkout the Viewers ReportSources FormatEngine Shows version CR9_2.... I have no idea where it gets this version...***************DEBUG-view when Viewer is created *******************CrystalReportViewer    |_        ReportSourceClassFactoryName ... , Version=11.0.3300.0 , ...    |_            ReportSource            |_                FormatEngine    {CrystalDecisions.CrystalReports.Engine.FormatEngine}                        |_                        ClientVersionHeader    {CrystalDecisions.Shared.ReportServiceVersionHeader}                            |_                            |    version = 920     (int)                            |_                                Static members                                            |_                                        VER_CR9    = 920    (int)**************************************** Could anyone have any answers or tips for this problem? I'd really appreciate it... ---Aksu

    Has anyone been able to answer this question?
    I am having the same problem:
    I am designing a report in Crystal Reports XI Developer that contains parameters, which are passed to a stored procedure and are also used within formulas ( in Crystal Syntax ie. {?FORMAT_ID} ) in the report itself.
    I can run the report successfully in CRXI Developer.  The formulas use the correct values from the parameters entered during execution and everything looks good.
    I then deploy the report to Business Objects Enterprise XI.  I do all of the things necessary to manage the report including setting up the proper database connection information and default parameter values.
    When I run the report using the Crystal Report Viewer, I get the following error message:
    Error in File Forecasting.rpt:
    Error in formula <Report Format>.
    'if (not isNull({?FORMAT_ID} ) ) then
    This field name is not known.
    Details: errorKind
    This happens when I press the "Preview" button in the Manage Object dialog from Crystal or when I run the report using InfoView.
    I have changed the formulas and it doesn't seem to matter what the specific content of the formula is; other than the existence of a parameter reference in the formula.  If I comment out the parameter and replace it with a hard-coded value, it gets through the formula fine.
    Does Business Objects Enterprise XI support crystal reports with parameter references in the formulas?
    Thanks,
    Tim H.
    Edited by: Tim Haley on Nov 25, 2008 11:11 PM
    Edited by: Tim Haley on Nov 25, 2008 11:12 PM

  • Table for variables of a query

    Hi,
    I want to find the list and details of variables used in all the queries built on a multiprovider. Can any one plz help in giving the table name whcih give the details of
    variable name, Type(userexit/manual input/replacement path), Details(ready for i/p) etc.
    Is there any table which gives the details of such information.
    Regards,
    Geetha

    Hi Srini/Shanti
    Thanks for your valuable inputs. The above table gives me the details of a particular variable if i know the variable name.
    But my requirement is something different, Let me be more clear on it,
    I have some 70 queries built on my multiprovider. Now there is some requirement where i have to take the list of all the variables used in those 70 queries. I have limited time to open each n every query and search n make a list of variables and their types.
    So i need some help on the table whcih can give me the details of all the list of variable used in the queries.
    Thanks,
    Geetha

Maybe you are looking for