Show Calculated Row/Field on Chart

I have a table which shows 3 rows and 2 columns and a sum row at the end. I have turned it to a chart I find the 3 rows on x-axis. My question is it possible to show the sum/ calculated row also as an element on the charts x-axis.
Example
Col1----
> Col2
Gross Sales----
> 4
Discount----
> 1
Return----
> 1
Sum (Net Sales)----> 2 (4-1-1)
When I turn this table to a chart I get the 3 rows (gross sales, disc, ret) on the x-axis. Is it possible to get the 4th calculated row on the x-axis of the chart .?
Thanks & Regards
Ishaq
Edited by: Ishaq Baig on Jun 21, 2010 4:34 PM

One trick that has worked well for me in the past is to create a union query with a dummy value for the Total. So you get this:
select Y, sum(Z) from tables
union
select 'Total', sum(z) from tables
This creates data in four rows, rather that treating your total as a sum it becomes part of the data. Then you can chart it.

Similar Messages

  • Can we put calculated row in Chart

    Hi experts
    we have calculated one calculated item in pivot view. Now we want to show this calculated item in our chart. So how can we achieve it.
    Thanks in advance
    Regards
    Frnds

    Hi...
    You need to close the threads if answered, for future reference to everybody

  • WEB chart showing result rows?

    Hi,
    I need to present result rows from a query in a Web Application Designer-chart, anyone that knows how to do that?
    Best Regards
    /Daniel

    Hi, I've checked the documentation... without any luck; here is a more precis issue-description. Thanks for your comments - I'm rellay greatful!!! This quesiton is also referenced in another thread with another issue-subject.
    Here is a description of my problem:
    I have a query which returns values for materials grouped by purchasing groups:
    Group 1 Material A KyeFigure
    Group 1 Material B KyeFigure
    Result:  KyeFigure       
    Group 2 Material C KyeFigure
    Group 2 Material D KyeFigure
    Result: KyeFigure
    I'm using a Web application designer chart to present the values graphically. I would like only to present the result rows in the chart, not item values. But since the chart picks all KFs presented in the table (items as well) this is not the case. I've tried to find a way in the chart-settings without any luck - it seems not possible. The documentation states that you're supposed to design your table the way you want it to show in the chart. However, I'm not allowed to redesign the cube or the report.
    My question is: Is there a way to extract the result rows into a new table and then base my chart on that one or simply somehow present only the result rows in a chart?
    Best Regards
    /Daniel

  • I want to create an ALV  with two row fields name

    Hi
    I want to create an ALV  with two row fields name. please suggest how to do it or send some sample code
    thanks

    Hi,
    see this link
    http://****************/Tutorials/ALV/ALVMainPage.htm
    http://www.alvrobot.com.ar/tutorial.php
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b09ac4d5-e3ad-2910-6a81-96d1b861928c
    http://abapprogramming.blogspot.com/2007/11/alv-check-boxes-sample-code.html
    REPORT zalv5 NO STANDARD PAGE HEADING.
    Description----
    TOPICS INTRODUCED:
    1. Learn about the u2018Standardu2019 PF-Status that comes as default.
    2. Exclude function codes from u2018Standardu2019 PF-Status and customize it.
    TYPE-POOLS: slis.
    DATA: BEGIN OF i_data OCCURS 0,
    qmnum LIKE qmel-qmnum,
    qmart LIKE qmel-qmart,
    qmtxt LIKE qmel-qmtxt,
    ws_row TYPE i,
    ws_char(5) TYPE c,
    chk,
    END OF i_data.
    DATA: report_id LIKE sy-repid.
    DATA: ws_title TYPE lvc_title VALUE 'An ALV Report'.
    DATA: i_layout TYPE slis_layout_alv.
    DATA: i_fieldcat TYPE slis_t_fieldcat_alv.
    DATA: i_events TYPE slis_t_event.
    DATA: i_header TYPE slis_t_listheader.
    DATA: i_extab TYPE slis_t_extab.
    SELECT qmnum
    qmart
    qmtxt
    INTO TABLE i_data
    FROM qmel
    WHERE qmnum <= '00030000010'. LOOP AT i_data. i_data-ws_row = sy-tabix. i_data-ws_char = 'AAAAA'. MODIFY i_data. ENDLOOP. report_id = sy-repid. PERFORM f1000_layout_init CHANGING i_layout. PERFORM f2000_fieldcat_init CHANGING i_fieldcat. PERFORM f3000_build_header CHANGING i_header. PERFORM f4000_events_init CHANGING i_events. CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING * I_INTERFACE_CHECK = ' ' * I_BYPASSING_BUFFER = * I_BUFFER_ACTIVE = ' ' i_callback_program = report_id * I_CALLBACK_PF_STATUS_SET = ' ' * I_CALLBACK_USER_COMMAND = ' ' * I_CALLBACK_TOP_OF_PAGE = ' ' * I_CALLBACK_HTML_TOP_OF_PAGE = ' ' * I_CALLBACK_HTML_END_OF_LIST = ' ' * i_structure_name = ' ' * I_BACKGROUND_ID = ' ' i_grid_title = ws_title * I_GRID_SETTINGS = is_layout = i_layout it_fieldcat = i_fieldcat * IT_EXCLUDING = * IT_SPECIAL_GROUPS = * IT_SORT = * IT_FILTER = * IS_SEL_HIDE = * I_DEFAULT = 'X' i_save = 'A' * IS_VARIANT = it_events = i_events * IT_EVENT_EXIT = * IS_PRINT = * IS_REPREP_ID = * I_SCREEN_START_COLUMN = 0 * I_SCREEN_START_LINE = 0 * I_SCREEN_END_COLUMN = 0 * I_SCREEN_END_LINE = 0 * IT_ALV_GRAPHICS = * IT_ADD_FIELDCAT = * IT_HYPERLINK = * IMPORTING * E_EXIT_CAUSED_BY_CALLER = * ES_EXIT_CAUSED_BY_USER = TABLES t_outtab = i_data EXCEPTIONS program_error = 1 OTHERS = 2 . IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    *& Form F1000_Layout_Init
    FORM f1000_layout_init USING i_layout TYPE slis_layout_alv.
    CLEAR i_layout.
    i_layout-colwidth_optimize = 'X'.
    i_layout-edit = 'X'.
    ENDFORM. " F1000_Layout_Init
    *& Form f2000_fieldcat_init
    FORM f2000_fieldcat_init CHANGING i_fieldcat TYPE slis_t_fieldcat_alv.
    DATA: line_fieldcat TYPE slis_fieldcat_alv.
    CLEAR line_fieldcat.
    line_fieldcat-fieldname = 'QMNUM'. " The field name and the table
    line_fieldcat-tabname = 'I_DATA'. " name are the two minimum req.
    line_fieldcat-key = 'X'. " Specifies the column as a key (Blue)
    line_fieldcat-seltext_m = 'Notification No.'. " Column Header
    APPEND line_fieldcat TO i_fieldcat.
    CLEAR line_fieldcat.
    line_fieldcat-fieldname = 'QMART'.
    line_fieldcat-ref_tabname = 'I_DATA'.
    line_fieldcat-hotspot = 'X'. " Shows the field as a hotspot.
    line_fieldcat-seltext_m = 'Notif Type'.
    APPEND line_fieldcat TO i_fieldcat.
    CLEAR line_fieldcat.
    line_fieldcat-fieldname = 'QMTXT'.
    line_fieldcat-tabname = 'I_DATA'.
    line_fieldcat-seltext_m = 'Description'.
    APPEND line_fieldcat TO i_fieldcat.
    CLEAR line_fieldcat.
    line_fieldcat-fieldname = 'WS_ROW'.
    line_fieldcat-tabname = 'I_DATA'.
    line_fieldcat-seltext_m = 'Row Number'.
    APPEND line_fieldcat TO i_fieldcat.
    CLEAR line_fieldcat.
    line_fieldcat-fieldname = 'WS_CHAR'.
    line_fieldcat-tabname = 'I_DATA'.
    line_fieldcat-seltext_l = 'Test Character Field'.
    line_fieldcat-datatype = 'CHAR'.
    line_fieldcat-outputlen = '15'. " You can specify the width of a
    APPEND line_fieldcat TO i_fieldcat. " column.
    CLEAR line_fieldcat.
    line_fieldcat-fieldname = 'CHK'.
    line_fieldcat-tabname = 'I_DATA'.
    line_fieldcat-seltext_l = 'Checkbox'.
    line_fieldcat-checkbox = 'X'. " Display this field as a checkbox
    line_fieldcat-edit = 'X'. " This option ensures that you can
    " edit the checkbox. Else it will
    " be protected.
    APPEND line_fieldcat TO i_fieldcat.
    ENDFORM. " f2000_fieldcat_init
    *& Form f3000_build_header
    FORM f3000_build_header USING i_header TYPE slis_t_listheader.
    DATA: gs_line TYPE slis_listheader.
    CLEAR gs_line.
    gs_line-typ = 'H'.
    gs_line-info = 'This is line of type HEADER'.
    APPEND gs_line TO i_header.
    CLEAR gs_line.
    gs_line-typ = 'S'.
    gs_line-key = 'STATUS 1'.
    gs_line-info = 'This is line of type STATUS'.
    APPEND gs_line TO i_header.
    gs_line-key = 'STATUS 2'.
    gs_line-info = 'This is also line of type STATUS'.
    APPEND gs_line TO i_header.
    CLEAR gs_line.
    gs_line-typ = 'A'.
    gs_line-info = 'This is line of type ACTION'.
    APPEND gs_line TO i_header.
    ENDFORM. " f3000_build_header
    *& Form f4000_events_init
    FORM f4000_events_init CHANGING i_events TYPE slis_t_event.
    DATA: line_event TYPE slis_alv_event.
    CLEAR line_event.
    line_event-name = 'TOP_OF_PAGE'.
    line_event-form = 'F4100_TOP_OF_PAGE'.
    APPEND line_event TO i_events.
    CLEAR line_event.
    line_event-name = 'PF_STATUS_SET'.
    line_event-form = 'F4200_PF_STATUS_SET'.
    APPEND line_event TO i_events.
    ENDFORM. " f3000_events_init
    FORM F4100_TOP_OF_PAGE *
    FORM f4100_top_of_page.
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
    it_list_commentary = i_header.
    ENDFORM.
    FORM F4200_PF_STATUS_SET *
    FORM f4200_pf_status_set USING i_extab TYPE slis_t_extab.
    REFRESH i_extab.
    PERFORM f4210_exclude_fcodes CHANGING i_extab.
    SET PF-STATUS 'STANDARD' OF PROGRAM 'SAPLSALV' EXCLUDING i_extab.
    ENDFORM.
    *& Form f4210_exclude_fcodes
    FORM f4210_exclude_fcodes USING i_extab TYPE slis_t_extab.
    DATA: ws_fcode TYPE slis_extab.
    CLEAR ws_fcode.
    ws_fcode = '&EB9'. " Call up Report.
    APPEND ws_fcode TO i_extab.
    ws_fcode = '&ABC'. " ABC Analysis.
    APPEND ws_fcode TO i_extab.
    ws_fcode = '&NFO'. " Info Select.
    APPEND ws_fcode TO i_extab.
    ws_fcode = '&LFO'. " Information.
    APPEND ws_fcode TO i_extab.
    ENDFORM. " f4210_exclude_fcodes
    thanks
    karthik
    reward me if usefull

  • How to use javascript in a calculated column field in SP2013

    Hi All,
          I'm trying to use the code below in a calculated column but i can't get it to work.
    any time i add it in it strips out all the quotes etc..and it doesn't show the open dialog.
    Any ideas how i can use this in a calculated column field?
    Thanks in Advance
       ="<div><a href='#'
    onclick='openInDialog(500,600,true,true,false,'http://www.SharePoint.com');'>MS
    SharePoint Site</a></div>"

    Your problem is with the single quotes which both open de onclick event and are used for the javascript string variable.
    You want " and need to escape those in a SharePoint string as ""
    So this
    ="<div><a href='#' onclick=""SP.UI.ModalDialog.OpenPopUpPage('https://office.microsoft.com/en-us/sharepoint/');"">MS SharePoint Site</a></div>"
    Evaluates to:
    <div><a href='#' onclick="SP.UI.ModalDialog.OpenPopUpPage('https://office.microsoft.com/en-us/sharepoint/');">MS SharePoint Site</a></div>
    Once SharePoint dumps the HTML code in the Client Browsers
    (provided you have set the Datatype of the Calculated column field to Number!)

  • Value of Multiple-Selection List box is not appearing "calculated value" field of it

    Hello,
    We have created one selection list box using control "Multiple Selection List Box", where user can select one or more values.
    We have created one view in InfoPath form, which have calculated value of fields(just showing purpose and printing purpose this view has ben created).
    In this when we try to show calculated value of field is of Multiple Selection List Box, it's showing as "Off".
    Could you please help us out.
    Thanking you in advance.
    Regards,
    Jayashri

    Hi,
    Thanks for your sharing! It will be beneficial to others in this forum who meet the same issue in the future.
    Wendy
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Calculating Row wise %

    Hi Experts,
    I am unable to find a solution on calculating row wise percentage.
    My requirement goes like this
    CUSTOMER---------VALUE----------------PERCENT
    CUSTA------------------7--------------------(7/21)*100
    CUSTB------------------5--------------------(5/21)*100
    CUSTC------------------9--------------------(9/21)*100
    TOTAL-----------------21
    I am unable to do calculate the PERCENT.
    I am using a pivot view...
    Please let me know your views on how to achieve this...
    Appreciate your immediate response...
    -Thanks!

    Hello,
    go to pivot view,
    Duplicate the VALUE column in measures block. Now you find 2 columns with the same name.
    And for duplicated column (the 2nd one) go to More Options.. > Show Data As > Percent of > Column.
    You find automatically it calculates the % value...
    Ad if you want you can change the 2nd column heading to precise manner.

  • Drop Column Field and Drop Row Fields in the Details Field area in the Cube Browser of BIDS/SSDT 2012

    Hello. When I right click a cube in the solution explorer and click browse, I am presented with a Details field area which doesn't have "Drop Row Fields" area like in BIDS 2008, and doesn't have "Drop Column Fields" area like in BIDS. It just has one details
    area with the message "Drag levels or measures here to add to the query".
    How do I include the  "Drop Row Fields" area and the  "Drop Column Fields" area in this Details area so it can be like 2008? 

    I am using MDX query to build SSRS report.
    How do i get MDX query from Excel ?
    Hi Vishal,
    We can use "OLAP PivotTable Extension" to get MDX query in Excel, please download it from:
    http://olappivottableextend.codeplex.com/
    In addition, I would suggest you open a new case if you have any more questiosn.
    Regards,
    Elvis Long
    TechNet Community Support

  • Report Region show all rows?

    Hi,
    I have a report region in which I want to show all rows. Setting the pagination scheme to No Pagination doesn't
    seem to do the trick. I have set Number of Rows and Maximum Row Count both to NULL. Nothing seems to work.
    Is there some trick to get all rows to be displayed?
    Thanks in advance!

    Hi,
    I have two report regions on different pages. On both I have set 'Number of Rows' and 'Maximum Row Count' to null. One report will return all the records in a query (~800), the other report will only return 500. I can't see any other differences in the reports that would cause this behaviour.
    I didn't really want to restrict my reports to a set number of rows, is this really the only option?
    Thanks,
    Rochelle.
    Edited by: Rochelle K on Nov 5, 2009 10:13 AM

  • MB5B - Stock on posting date doesn't show Storage Location field

    Hi All,
    I run report MB5B - Stock on posting date with Stock Types = Storage Loc/Batch Stock, but the report doesn't show
    Storage Location field in result.
    How can I see it in this report?
    Thank you very much for your kind support!
    Cao Huy.

    hi
    what i think i sthis report is only for the OPENINGand CLOSING stock for the period or day
    now whenu give SL field then system will only concider stock from that SL
    the filed of SL will not be viewable in report as it is just opening and closing balance
    regards
    kunal

  • How can I display a specified row from a chart in a 2nd chart in Numbers?

    I have a chart in Numbers '09, which contains tasks with their due dates. This chart is rather large and is divided into several categories (i.e. home, work, taxes, etc.). Each row in the chart has a task name and due date in addition to other information in columns. Since it has many tasks and they are divided into categories, it's difficult to check what tasks are due this week. I have been trying to add a small chart to display only the task name and due date from all categories due in the next 10 days.
    I assume I should add a chart in the work sheet and use some string of functions to find tasks due this week, and copy them to the 2nd chart. If someone could suggest a string of functions, or tell me an easier way to do this I would be grateful.
    Jim

    Hi Jim,
    Welcome to Apple Discussions and the Numbers '09 forum.
    Using the correct vocabulary would make your request much easier to read. A "chart" in Numbers is a bar graph, a line graph, or a pie chart.
    What you're referring to as a "chart" is a "table."
    So:
    You have a table listing tasks and their due dates, plus other information (presumably all separate columns).
    You want a separate table listing only those tasks whose due date falls within the next ten days.
    Here are two ways to make those tasks stand out. The first uses conditional formatting to change the fill colour of the Date cells on the first table; the second uses an index and VLOOKUP to transfer the urgent tasks to a second table.
    The conditional formatting rules shown are applied to all cells in column A. Dates within 5 days of "today" (January 13, 2011 in the example) get a red fill and white type; dates within 10 days a yellow fill.
    The same rules, with effective periods reduced to 2 and 4 days, are applied to dates in the Urgent table below.
    Here a column is added to the left of what was column A to hold an index created by the formula below, entered into the new cell A2 and filled down to the bottom of that column. As noted in the header cell, this column may be hidden.
    =IFERROR(IF(DATEDIF(TODAY(),B,"D")<11,DATEDIF(TODAY(),B,"D")+ROW()/10000,66000), 66000)
    The formula provides a unique numerical value in each row where the date is less than 11 days from today, and a large fixed value in rows where the date is before today or more than 10 days away.
    On the second table, "Urgent" the formula below, entered in A2 and filled down the full column and right to column B transfers the dates and tasks due within ten days from the table "All tasks" in order of 'days to complete,' with the earliest ones at the top of the list.
    =IF(SMALL(All tasks :: $A,ROW()-1)<66000,VLOOKUP(SMALL(All tasks :: $A,ROW()-1),All tasks :: $A$2:$C$21,COLUMN()+1,FALSE),"")
    Descriptions of all the functions used, including examples, may be found in the iWork Formulas and Functions User Guide. Details on Conditional formatting may be found in the Numbers '09 User Guide. Both guides may be downloaded through the Help menu in Numbers '09. Both are recommended.
    Regards,
    Barry

  • How to show a time field in a form portlet

    Hi,
    I am not familiar with PL/SQL and I was wondering how I could show a time field on a form portlet.
    I have a date column in my database that stores the time and date together, but I do not know how to separate them into date and time fields. I also do not know how to concatenate them when a user inserts a new record, or how to query on a date alone.
    At present, the user has to type the date and time following this format mask hh:mi am DD/Mon/RR
    I also have a problem with one of my hidden id fields. I have set the default to a sequence.nextval (#qtc_app.seq_visitor.nextval) and then hidden it since
    it is irrelevant to my users. However, I can no longer use the query function since the sequence is always generating a new value. How would I only generate
    a new sequence no. when a user inserts a record??
    Thank you!
    cheers, Kim

    Hi,
    Each colunm in the form has a format mask associated with it. For the date column make the format mask like this DD-MON-RR HH.MI. This will show the date along with the hours and minutes.
    Thanks,
    Sharmila

  • How to show alternate rows in different colors?

    How to show alternate rows in different colors?
    Thanks

    you should put these kind of stmt in the if condition for even row and odd row
    <xsl:attribute xdofo:ctx="block" name="background-color">yellow</xsl:attribute>
    this should help you
    Re: About highlight row
    http://blogs.oracle.com/xmlpublisher/2007/08/09
    http://garethroberts.blogspot.com/2007/09/bi-publisher-color-list-and-cell.html

  • Itunes app no longer showing genres or the top charts/genius bar in the top bar ... it only displays a faint music in the centre with just the search box..why? i need them back:-(

    itunes app no longer showing genres or the top charts/genius bar in the top bar ... it only displays a faint music in the centre with just the search box..why? i need them back:-(

    The iTunes Store listing of your podcast is simply reflecting the contents of your podcast feed. Make sure all of the content you want displayed in the iTunes Store is still contained within your feed.
    Are you able to supply your feed for reference?

  • "Mission Control" does not show space row and I cannot add a new space (27 inch screen)

    Firstly, "Mission Control" does not show upper row with spaces. I have configured Dashboard as space, but it is not showed either.
    Second, I cannot add a new space because the upper right corner wont show an empty space.
    In system I have configured (Mission Control) the upper right corner as "mission control".
    I do run a 27-inch screen

    I'm having the exact same problem. I have a Macbook Pro that I connect to a 27inch iMac through the mini display port. Whenever I attempt to launch Mission control to move a program to a different space, the "Spaces" dont appear at the top of the screen. Is anyone have an answer for this?
    Also, does anyone know of a 3rd party program to bring "Spaces" back? That was my #1 favorite thing of Snow Leopard, and I need to get that functionality back.
    Thanks

Maybe you are looking for

  • Officejet Pro 8600 Plus won't print or scan wirelessly using Mac OS 10.

    Mac OS 10.9 Wireless My printer was working fine until today.  Then when I used the control panel to scan a page I went through the steps and got to scanning and got the message I needed to enable "Scan to Computer" in the HP Utility.  I went there a

  • Why does Norton Utilities fail to run if Firefox 4.0.1 is running on Win XP

    Platform: Windows XP Firefox: 4.0.1 After upgrading to 4.0.1, the Norton toolbar was declared incompatible so I no longer have Norton site certification. Today (5/13/2011) I was running Firefox and tried to run Norton Utilities. It would not display

  • Cannot load previous purchases in iTunes 10.3

    In iTunes 10.3.1 I cannot download anything from the cloud. Whenever I go to the "download previous purchases" section it always tells me " temporarily unable to load your purchased items". It's been like this since 10.3 beta was released. Is there s

  • No retirements/deactivated assets in Asset History Sheet?

    Dear all, My customer has made a lot of retirements of assets the latest month. When doing retirements the status on the asset is "deactivated" and also I can see the deactivation date. All retired and deactivated assets can be seen in the Asset Hist

  • Navigation from within a custom component ???

    Hi All I am working on a new project in Flex 4 and i have a Viewstack on my main page.  Then i have 6 custom components in the viewstack, the first being the home page.  In this homepage custom component i have linkbuttons which i want the user to cl