How to exclude null measure values in Chart

Hello Everybody,
I am having a requirement as below.
I have a dimention column ( Month) and a measure column(deviation) in a report.Now the measure column have positive as well as negative values.I have to plot two charts on this same report, where one chart should display the Positive bars, and another only negative bars.
I have actually created two calculated columns as +ve deviation and -ve deviation , as below.
+ve deviation f{x}:
CASE WHEN "fact_table"."Deviation">=0 then "fact_table"."Deviation" END
-ve deviation f{x}:
CASE WHEN "fact_table"."Deviation"<0 then "fact_table"."Deviation" END.
In the chart for displaying only positive bars i am using +ve deviation and vice versa
But in chart i am getting nulls as well in the chart.Is there any other exact solution for this..
An early reply would be appreciated.
Thanks in advance

I have the data in this fashion.see the image in the below link.
http://img13.imageshack.us/img13/5189/deviationreport.jpg
Column Deviation(sec) contains --> +ve as well as -ve values.
in order to plot two charts on this report (one showing +ve values and one showing -ve values) i have created two columns
+ve deviation and -ve deviation.
f{x} of the calculated columns are given above.
Now plz suggest how the is not null filter will work and on what column.

Similar Messages

  • How to trap null return values from getters when using Method.invoke()?

    Hi,
    I am using Method.invoke() to access getters in an Object. I need to know which getters return a value and which return null. However, irrespective of the actual return value, I am always getting non-null return value when using Method.invoke().
    Unfortunately, the API documentation of Method.invoke() does not specify how it treats null return values.
    Can someone help?
    Thanks

    What do you get as a result?I think I know what the problem is.
    I tested this using following and it worked fine:
    public class TestMethodInvoke {
    public String getName() {
    return null;
    public static void main(String args[]) throws SecurityException, NoSuchMethodException, IllegalArgumentException, IllegalAccessException, InvocationTargetException {
    Object o = new TestMethodInvoke();
    Class cls = o.getClass();
    Method m = cls.getMethod("getName", (Class[]) null);
    Object result = m.invoke(o, (Object[])null);
    if (result == null) {
    System.err.println("OK: Return value was null as expected");
    else {
    System.err.println("FAILED: Return value was NOT null as expected");
    However, when I use the same technique with an EJB 3.0 Entity class, the null return value is not returned. Instead, I get a String() object. Clearly, the problem is the the EJB 3.0 implementation (Glassfish/Toplink) which is manipulating the getters.
    Regards
    Dibyendu

  • Urgent: How to exclude a particular value from the selection in the infopac

    How to exclude a particular value from the selection in the infopackage.
    Ex: not load for cost center 10000
    Thank you,
    sam

    Hi Sam,
    You cannot do this directly as exclusion, but you can include all other values, even as ranges and thus exclude the particular value, else you can also try to do this by writing a routine.
    Hope this helps...

  • How to convert a measure value to null when the actual measure value is 0

    Hello Gurus,
    I have year, products, measure 1, measure 2, measure 3. I am added three products into one category by using bin in the analysis i am getting zeros for some of the measure cells when it should be null values, because the actual measure values are null for indivudual product. How can i convert that 0's to null. Please advise.
    Thanks,
    RC

    To answer your immediate question, you can write this:
    CASE WHEN table.column = 0 THEN NULL ELSE table.column END
    Remember though, that any aggregations done on a record that is NULL will not yield a sum. That is why the usual case is to convert NULLs to 0s. But that may not be a concern for what you are doing. Good luck!

  • Is it possible to show single dimension of measure value in Chart

    Hi all,
                  By using BICS connection(BW-Bex Query), developed Application(dashboard) through sap design Studio 1.2 sp01. My requirement is Measure is Purchase OrderValue, and dimensions are x,y,z, and P. When Open application it has to show X-of Purchase Order values in one Chart,Y-of Purchase Order Value in another chart..like we need to show X,Y,Z and P values in different chart. How we can achieve by using single data source.
    Thanks
    Ram

    Hi Tammy,
              Thanks for your quick reply. You are right.. we can create multiple views to show separately. but due to performance issue..is it possible to use single view to finish my requirement?
    Explanation: i have 4 charts
    1 chart: In X-Axis need's to show X-Values and in Y-Axis need's to show PO value
    2 chart: In X-Axis need's to show Y-Values and in Y-Axis need's to show PO value
    3 chart: In X-Axis need's to show Z-Values and in Y-Axis need's to show PO value
    4 chart: In X-Axis need's to show P-Values and in Y-Axis need's to show PO value
                here X,Y,Z,P  are dimensions(fields).
                    unable to add image..
    Thanks
    Ram

  • Hiding measure values line chart

    Hie Guys,
    I have a line chart with measure object "X" and dimension "Month". Now, the measure values are going to be zero for all previous months. I do not want those zero values to be displayed in the line chart. Is there a way to do this in Webi? I tried to create a variable to substitute Measure object X.
    Variable = If (Measure Object =0) Then "" Else Measure Object. This did not work as the chart only takes measures and the variable is text. Anybody have any suggestions? Thanks.

    Jeewan, Consider this as sample data.
    Now create three variables....
    Month 1 = [M1] Where ([M1]<>0)
    Month 2 = [M2] Where ([M2]<>0)
    Month 3 = [M3]  Where ([M3]<>0)
    Now your data will be
    Right Click on it. Turn into Line Chart. Finally your output is as you required.
    Regards,
    G Sujitha

  • How to convert pixel Measurment values to real world cordinate systems ( 2D & 3D)

    Hello  All
    I am very new to Image processing and I stuck in a position where i have to convert the pixel measurement value in the real world X,Y,Z  coordinates, and after then that value can be send to the robot arm.
    For more understanding i have attached the image of my VI and also the Labview VI, you can also suggest if something more is missing then what i already did
    I need help to solve this problem, as i already mentioned i am very new to image processing so answer in a simple explanations would be appreciated
    Thanks in Advance
    Attachments:
    Object_detection_Pixel.vi ‏48 KB

    Hello,
    I would like to help you with this topic.
    I have one question: have you tried to run the VI with highlight mode or with probes to see what happens step by step?
    Concerning the broken wire, as far as I can see it, its just the dimensions of the output array which does not fit.
    The data is an array of the dimension 2 but you connected an array with dimension 1.
    So LabVIEW will not run the VI, I posted a screenshot with the new Array in the BD. As you can see, the wire now has two lines instead of one.
    You can always add suitable FP indicators by right-clicking -> create -> indicator.
    Please let me know if this is useful for you.
    I am looking forward to hearing from you!
    Have a nice day,
    Christopher W.
    Intern Application Engineering | NI Certified LabVIEW Associate Developer (CLAD) | NI Germany
    Attachments:
    array-wire.png ‏24 KB

  • How to skip null ColumnSeries values in a clustered ColumnChart?

    (this is a simple but difficult problem; call-out to clever chart-coders):
    When displaying multiple ColumnSeries in a clustered ColumnChart (3.5 SDK), the default behavior is to allocate a blank space when one of the series has no value in the dataprovider.  Below is a simple example (slightly modified from the base example of ColumnCharts in the help docs): when it comes to "Feb", it shows the values for Profit and Expenses, but also leaves a blank space for "VaryingOccurence".  This only happens when the Chart type is clustered (the default).
    This may seem like nitpicking, but in my context I have about 12 different series, many of which do not occur for each category value - so each of my category values has a whole lot of empty space between the clustered columns.  I just want to tell the Chart, "don't allocate any space for the chartItem in the series if its null" (or even 'if it's zero' would be fine): i.e., "ColumnSeries.showNullValues=false" - but that doesn't exist.
    Overriding updateDisplayList (to draw nothing) in a custom itemRenderer for the series does not work: the chart still allocates space for the row.  I'm thinking there's got to be someplace in ColumnChart where it's allocating space for the series (referring to properties like columnWidthRatio), but I can't find where to tell it "don't bother if the chartItem is null".
    If this is impossible to achieve via subclassing the Chart or the Series, does anyone have any creative ideas to acheive the end-result? To reiterate, the goal would be to show the result of the code below, but without the empty space for the null value in Feb.
    thanks,
    -Ped
    <?xml version="1.0"?>
    <!-- charts/BasicColumn.mxml --><mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
      <mx:Script><![CDATA[
         import mx.collections.ArrayCollection;
         [Bindable]
         public var expenses:ArrayCollection = new ArrayCollection([
            {Month:"Jan", Profit:2000, VaryingOccurence:1750, Expenses:1500},
            {Month:"Feb", Profit:1000, Expenses:200},                                         //no instance of VaryingOccurence
            {Month:"Mar", Profit:1500, VaryingOccurence:750, Expenses:500}
      ]]></mx:Script>
      <mx:Panel title="Column Chart">
         <mx:ColumnChart id="myChart" dataProvider="{expenses}" showDataTips="true" type="clustered" >
            <mx:horizontalAxis>
               <mx:CategoryAxis categoryField="Month" />
            </mx:horizontalAxis>
            <mx:series>
               <mx:ColumnSeries yField="Profit" displayName="Profit" />
               <mx:ColumnSeries yField="VaryingOccurence" displayName="Varying Occurence" />
               <mx:ColumnSeries yField="Expenses" displayName="Expenses"  />
            </mx:series>
         </mx:ColumnChart>
         <mx:Legend dataProvider="{myChart}"/>
      </mx:Panel>
    </mx:Application>

    I have the data in this fashion.see the image in the below link.
    http://img13.imageshack.us/img13/5189/deviationreport.jpg
    Column Deviation(sec) contains --> +ve as well as -ve values.
    in order to plot two charts on this report (one showing +ve values and one showing -ve values) i have created two columns
    +ve deviation and -ve deviation.
    f{x} of the calculated columns are given above.
    Now plz suggest how the is not null filter will work and on what column.

  • How to show Grand total values in Chart view....

    Hi,
    I have a crazy req. like i need to show grand totals values also on the chart view along with the normal metrics.
    column Metric1 Metric2
    AAA 10 20
    BBB 30 15
    CCC 20 15
    TOTAL 60 50
    so here i need the values 60 and 50 also also to be displayed in a line graph
    cheers

    Pretty simple to achieve :)
    In your Pivot view, under Rows section where you have column dimensions like AAA,BBB etc...create a new calculated item say Grand Total with function as 'formula' and formula as sum(*). This will give you a new row with totals. Now Chart Pivoted Results and you are done.
    Hope answered

  • How to exclude the conditions value from base amount passing to tax procedu

    Hi Experts,
    I am having 30 conditions in pricing procedure and tax is calculating on amount of 15th condition but now i am that the amount of the tax should exclude the value of 11th 12th 13th 14th and after excluding the value on the rest the tax needs to be calculated. some people are saying to use Routines. If i use routine what Internal tables are invloved in it. Please help.
    Thanks

    you can give '6' in sub total filed .this way BASB of tax procedure will not pick this amount for excise duty, yet sales tax will be calculated on it.
    if you dont want any tax to be calcualted yet the cost should get added to material, you may use accruals and account key. in OBYC you can define the gl account for the account key valuation class wise

  • How to copy the measured value of digitalcolormeter

    (Farbmesser) to clipboard?
    k.

    Lokanath Giri wrote:
    For your validation check this link
    http://www.techonthenet.com/ascii/chart.php
    Please don't just refer people to other non-oracle websites when the answer is so simple to give here as others have already done.

  • How to exclude certain values in a measure.

    Hi,
    I have fact data something like..
    ID
    MyValue
    MySetValue
    1
    200
    1
    2
    300
    1
    3
    400
    0
    4
    500
    0
    5
    600
    1
    Now I want to create a measure MyValue which would be sum(MyValue). This i can do using SUM aggregation.
    But I also want a measure which is SUM(MyValue) but excludes rows for which MySetValue is 0.
    So first measure should return 2000 and second measure should return 1100.
    I know this can be done by adding a new column in view or in DSV which does the filtering. But is there a way of doing the same in calculated member ?
    Thanks.
    liquidloop[at]live[dot]co[dot]uk

    The best way is going to be creating a calculated column in your DSV (or view) and then defining a stored measure based on that calculated column. When business rules are applicable at the grain of the fact table, the best approach is going to be to include
    that logic at the fact table. There's ways to create it in the Calculation Tab of the Cube Editor but it's almost never the right way to go. The method that Charles uses above is a devastating bad approach as an aggregation function over a Filter clause though
    possible, the SSAS Engine when it sees a statement like those should just raise an error rather than processing the statement. (See point #1 in the following blog:
    http://sqlblog.com/blogs/mosha/archive/2008/10/22/optimizing-mdx-aggregation-functions.aspx )The real issue with the approach that Charles uses in your case above is that a Filter statement applies to the current context in aggregate and WILL NOT apply
    to each row at the source. Therefore, not only inefficient, it's also incorrect.
    To really approach the problem, you would need to create a dimension based on the MySetValue column. In the small example that you have above, that dimension would only have a single attribute hierarchy with  two members but in a real life situation,
    that column could and often would be a non-discrete function. Saying that you only have two possible values, and only the single attribute hierarchy with those two members, you could define the new measure as the following:
    CREATE
    MEMBER CurrentCube.[Measures].[Modified MyValue]
    AS
    IIf(
                  [MySetValue].[MySetValue].CurrentMember
    IS [MySetValue].[MySetValue].&[0],
    NULL,
                  [Measures].[MyValue]
    FORMAT_STRING="#,##0";
    However, the slice, ([MySetValue].[MySetValue].[All],[Measures].[Modified MyValue] would still be exactly equal to [Measures].[MyValue]. You could fix that using a SOCPE statement.
    SCOPE(
           [Measures].[Modified MyValue],
           [MySetValue].[MySetValue].[All]
    THIS = (
                  [MySetValue].[MySet Value].&[1],
                  [Measures].[MyValue]
    END
    SCOPE;
    So as you can see, just do it the right way to begin with. Create a column in your DSV and create a measure from that calculated column. 
    Martin
    Martin Mason Wordpress Blog

  • How to Replace Null Value as 0 in an OBIEE11g Pivot Table? it's working 10g

    Hi,
    How to Replace Null Value as 0 in an OBIEE11g Pivot Table? it's working in obiee10g version.
    We have tried below methods
    1) criteria tab and edit the ‘column properties’ associated with your fact measure. Choose the ‘Data Format’ tab, tick to override the default format and choose ‘Custom’.
    It seems that the syntax for this custom format is positive-value-mask (semi colon) negative-value-mask (semi colon) null-mask. So this means we have a few options.
    E.g. if you want zeros (0) instead of null then enter:
    #,##0;-#,##0;0
    2) in that formula columns we have put it below case condition also ,
    Measure Column: Nom_amt --> edit formulas
    CASE WHEN Nom_amt IS NULL THEN 0 ELSE Nom_amt END
    3) we have uncheked IS NULL check box in the admin tool also
    I tried above formats still it's not working for me..kindly help me on this..
    thanks to do the needfull
    Best Regards,
    R.Devarasu

    Hi,
    Null value in database displaying as 0 in report, I need to keep value as in database, and I have one calculated row which is based on null values should also null in report.
    but it showing 0 for null values also so, my calculated row showing wrong result.
    my report is like
    col1 col2
    ABC 0
    BCD 12
    DEF -12 --this is calculated row.
    I require result like:
    col1 col2
    ABC null
    BCD 12
    DEF null --this is calculated row.
    Please let me know how I can achieve this.
    Thanks,
    Rahul

  • How to Replace Null Value as 0 in an OBIEE11g Pivot Table?

    Hi,
    How to Replace Null Value as 0 in an OBIEE11g Pivot Table? it's working in obiee10g version.
    We have tried below methods
    1) criteria tab and edit the ‘column properties’ associated with your fact measure. Choose the ‘Data Format’ tab, tick to override the default format and choose ‘Custom’.
    It seems that the syntax for this custom format is positive-value-mask (semi colon) negative-value-mask (semi colon) null-mask. So this means we have a few options.
    E.g. if you want zeros (0) instead of null then enter:
    #,##0;-#,##0;0
    2) in that formula columns we have put it below case condition also ,
    Measure Column: Nom_amt --> edit formulas
    CASE WHEN Nom_amt IS NULL THEN 0 ELSE Nom_amt END
    3) we have uncheked IS NULL check box in the admin tool also
    I tried above formats still it's not working for me..kindly help me on this..
    thanks in advance...
    Best Regards,
    R.Devarasu

    Hi Amith,
    I have update your suggested one,but it's working few of the rows only..remainings rows some of cells still NULL only
    Measure colmns is : Nom_SGD
    IFNULL(Nom_SGD,0.00)
    Movment : dynamic date calc by using $2-$1 oracle formula's
    Actually i am doing below things only,
    31/12/2011 31/03/2011 Movment
    Country
    India 100 -50 -150
    Singapore 200 200
    UK 1200 -1200
    USA 0.00 0.00 0.00 (here changed null as 0)
    Helpmeon this...

  • Display -ve Measure Values in Horizontal Bar Chart on right hand side or in bar

    In OBIEE I have an issue where the negative measure values in a horizontal bar chart are displayed on the left and overlap with the Y axis values, how do I force these values to be displayed on the right or in the bar itself ? The measure values are set to always on, hoverover cannot be the solution

    Hi,
    It should not be overlapped. If you are using horizontal bar then 0 will come in center. It should show structure like:
    |
    |
    |
    |
    |
    |-------------------------------------------------
         -4     -2     0     2     4
    May I know in your report, how it is looking and what is your requirement.
    Thanks

Maybe you are looking for

  • Report for vendor - invoices

    What is the report to get a List vendors - total invoiced amounts during a certain period Thanks SK

  • Intrastat report in drop-ship process

    Hi, I have drop-ship scenario where plant country belongs to France ( FR) but actual shipment happens from Taiwan(TW). Butin the sale order we use plant as France(FR) and shipping point as Taiwan(TW).Since these are drop ships dispatched from non EU

  • Error message when trying to empty trash

    I am trying to uninstall realplayer and I have closed the program and moved it from finder to my trash. When I try to empty trash, I get an error message that says, "The operation cannot be completed because the item "RealPlayerDVR.icns" is in use."

  • ORA-39071: Value for INCLUDE is badly formed.

    Hi, in 10g , when exporting by : expdp scott/tiger@mydb directory=dpump_dir1 dumpfile=scott.dmp INCLUDE=TABLE:"IN ('EMP')"  content=DATA_ONLY FILESIZE=1000MI receive : ORA-39071: Value for INCLUDE is badly formedAny help ? I coppied /past the INCLUDE

  • Dark stripes on the inside glass of the screen of 27" iMac

    On my new 27" screen there are stripes on the inside of the glass. It is on the right site of the screen. The right top and like a quarter of the screen. It is like when you clean your windows and you get stripes when the windows dry up. It's not vis