Chart web part - lookup columns corrupted

Hello,
I am using the chart web part, and if I reference the lookup column, which is last names, it posts both the last names and the number, such as:
42; #LASTNAME
How do I not have it display that number, semicolon and #?
Thanks,

Lookup field contains both title and ID, and to get title only, you need to use Look
var lookupItemValue = new SPFieldLookupValue(item["lookupfield"].ToString());
value = lookupItemValue.LookupValue;
or you can use substring function to fetch value after semicolon (;)
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfieldlookup.aspx
Adnan Amin MCT, SharePoint Architect | If you find this post useful kindly please mark it as an answer :)

Similar Messages

  • Chart Web Part - Stacked Column Chart and the Y Field

    I am trying to create  a stacked chart in Sharepoint. 
    I am encountering a problem at the "Bind Chart to Data" Step. Retrieval of Data goes without a hitch - all rows and columns are captured and shown, but then when it comes to adding series, the "Y Field" drop down menu only shows one of
    my columns. So of course, the final chart only has one data series visible - a normal column chart instead of a stacked one.
    What could be the cause of this, and how do I fix it?

    Yes, that's right. That is exactly what I want to do.
    But, the problem I'm facing is that when it comes time to select the second series settings as:
    The second Series settings:
    Series Name: Oranges
    Series Type: StackedColumn 
    Series X-Axis Type: Primary
    Series Y-Axis Type: Primary
    X Field: Day
    Specifically >>>>Y Field: Oranges
    The Y-field option which appears as
    a drop-down menu on the page, does NOT show the option "Oranges". It shows only "Apples" again, and also a blank setting (selecting this also does not cause desired graph to get created).
    I want to know HOW to be able to select "Oranges" as the Y-field because I am unable to do so!

  • Error in Creating a Chart Web Part Connected to a List-Column named "" already belongs to this DataTable

    Hi,
    I am trying to create a Chart Web Part that is connected to a list. 
    I inserted a Chart Web Part on the page.
    In Step 1, I chose, Connect to a List.
    In Step 2, I chose the List, "QPAPForm"
    After I connect to the list (QPAPForm), and I get to step 3 to Retrieve and Filter Data, I have the following error message:  "Please correct the following: A column named "Update Policy Tasks" already belongs to this Data Table.
    "Update Policy Tasks" is a Workflow used on this list (QPAPForm), but it is not a column value per se.
    How do I correct this issue?
    Thanks,
    Jan

    Hi,
    I have done a test, and I can’t reproduce your issue.
    I created a custom list and an approval workflow which generated an column in the custom list. Then created a Chart Web Part which was connected to the custom list, I didn’t meet any error.
    Let’s verify the following:
    What template is your List template? what columns does the list has?
    What kind of workflow has generated the “Update Policy Tasks” column?
    I suggest you re-create the list without workflow and do a test, compare the results.
    Best Regards
    Lisa Chen

  • SP2010: Different colors for chart bars in Chart Web part with single data series?

    Hello,
    I've been asked to create a chart for visual display and summary of Status values within a SharePoint list of job positions. The list of positions includes a Status field with the only values being Open and Closed. I created a page that shows the list, and
    at the top I inserted a Chart Web part that displays two bars - one showing the number of Open positions and one showing the Closed positions. Because I was having difficulty getting the totals for each Status value to show up in the chart, I followed
    the instructions at
    http://highbrowse.wordpress.com/2012/07/04/chart-counts-from-sharepoint-lists/ and pointed my chart at the new "Status values" list - this worked well to display the sum counts for each of the two Status values in separate bars.
    This was all fine and good, except that because I am only using one data series for my chart, both of the bars (for Open and Closed) show up as the same color. I've been asked to make them different colors but cannot figure out how to do so. Can someone
    provide guidance on how I could make the two bars different colors? Thank you so much.
    cheers

    Hello,
    as far as I know, the chart web part does not have any settings to change the color of individual data points or plot data points of a series in different colors. If you only have two values in the series, you could use a pie chart instead of the column
    or bar chart. In a pie chart, the different slices have different colors.
    cheers, teylyn

  • In-Depth Chart Web Part References

    I have look at the available chart web part online manuals such as the one below and but it does not provide in-depth answers about the various chart options or how best to use web charts part.
    I would appreciate the title of a publication that really explains the web chart part and how to construct charts. I thought it would allow building charts like in XL but not so. The help below is one-dimensional forcing one to play and play with the part
    to attempt divine how it works. Thanks.
    http://social.technet.microsoft.com/Forums/en-US/65e38032-5a27-47a1-a2e8-81a38c5c6bab/chart-web-part-manual?forum=sharepointgeneralprevious
    http://office.microsoft.com/en-us/sharepoint-server-help/introduction-to-the-chart-web-part-HA101889216.aspx#_Toc268792246

    Basic details of chart webpart
    http://office.microsoft.com/en-in/sharepoint-server-help/introduction-to-the-chart-web-part-HA101889216.aspx
    http://office.microsoft.com/en-in/sharepoint-server-help/create-a-chart-by-using-the-chart-web-part-HA101889211.aspx
    Some advance option in chart webpart
    http://blogs.technet.com/b/ken_prices_sharepoint_blog/archive/2012/02/08/sharepoint-2010-s-chart-web-part.aspx

  • Pie - Chart Web Part - Label Alignment empty

    Hello all,
    I create lots of Dashboards to display KPIs for my company and I always struggle with the pie chart labels as the always end up overlapping unless I rotate them but that just looks naff.
    My frustration and question is that the "Label Alignment" option is empty and therefore does not allow me to select "Open" which is the feature I seek.
    Does anyone have an idea why this might be and if there is a work around?
    Thank you in advance
    Jessica

    You would potentially run into this with lookup fields as well, I believe. I would make a column that is single line of text for the purpose of the chart. That would make sure the NUM;# is removed.
    Andy Wessendorf SharePoint Developer II | Rackspace [email protected]

  • Chart Web Part to not plot zeros on a line graph

    Hi all,
    Is it possible to not plot zeros on a line graph?
    I have a line chart with days of the current month along the x-axis and a value on the y-axis. I have a series representing a forecast as a line that will show what the values along for the whole month should be and a second
    line chart series representing the actual. This tells the reader how the actual is tracking against the forecast. The data is based on an excel table.
    Currently when the latest value is set the line skews back to 0. I don't want this shown, I just want it left blank. On excel you can change the zeros to na() and the line graph will not plot, however, if I leave them as na() in the source data, the whole
    column wont be imported in the chart wizard.
    Any ideas?
    Thanks
    Andy

    It's true -- the RangeBar chart type only has two field options (X and Y) while the RangeColumn correctly has an addtional Y field. The RangeBar chart should obviously have two X fields if it's supposed to plot a range, as the name and example image indicate.
    Neither this thread or the one linked has led to an answer. Can this be fixed?

  • Orginization Chart web part seeing duplicate users

    Doing a People search, then viewing their profile, the Org Chart shows a persons name twice
    The user does not have a My Site.
    No duplicates in User Profile Service.
    User was not migrated.
    People Search shows one result.
    2 Accounts in Active Directory. One is disabled.
    Clicking on each of them shows a different url path.
    /Person.aspx?accountname=EUR%5Chm018512
    /Person.aspx?accountname=EUR%5Chm011634
    NOTE: Clicking on 011634 url link does nothing.
    Any fixes to this one? Thoughts?
    Chris

    Disabled user accounts appear by default I believe. You can get around this by configuring the synchronisation settings in the UPS and setting up a exclusion filter.
    This kb article gives a good set of guidelines on how to achieve this
    http://support.microsoft.com/kb/827754/en-gb
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • Web Part Chart Help

    I have set up a Web Part Chart as a bar chart based on Desk Utilisation. Does anyone know if there is a way I can change the colour of an individual bar if the value is greater that a preset figure say 100%.

    I don't believe so. Honestly the Chart Web Part is not very good (removed in 2013). I'd suggest exporting the list to excel and saving the .iqy (query) file and use it as a data connection. Then create a PowerPivot chart and save that. Set it to refresh
    the data on open. Now you have a better tool for charts.
    Andy Wessendorf SharePoint Developer II | Rackspace [email protected]

  • Hide column header in a SharePoint list web part view ?

     Hi ALl,
    I have a links list in SharePoint 2010 and created a custom standard view to show links on home page.
    I want to hide header column for that particular created list web part view.I have used following css but it's hide all list
    and libraries header column.
    .ms-viewheadertr
      display: none;
    I want to hide specific list web part view column hide.
    Following is a snap in this i want to hide URL column in this view.
    Thanks,
    Balaji More

    You can add the following to an .xsl file and link to it in the "Miscellaneous" options when you edit the web part. By doing it this way, you can reuse the same style sheet over and over.
    This xsl basically overrides a couple of templates located in the "vwstyles.xsl" file, and removes the lines that add the header.
    (This code works in production, but I may not have replicated it properly in this forum, so please test first.)
    <xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema"
    xmlns:d="http://schemas.microsoft.com/sharepoint/dsp" version="1.0" exclude-result-prefixes="xsl msxsl ddwrt"
    xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime"
    xmlns:asp="http://schemas.microsoft.com/ASPNET/20"
    xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:msxsl="urn:schemas-microsoft-com:xslt"
    xmlns:SharePoint="Microsoft.SharePoint.WebControls"
    xmlns:ddwrt2="urn:frontpage:internal"
    xmlns:o="urn:schemas-microsoft-com:office:office">
    <xsl:include href="/_layouts/xsl/main.xsl"/>
    <xsl:include href="/_layouts/xsl/internal.xsl"/>
    <xsl:template match="View" mode="full">
    <xsl:apply-templates select="." mode="RenderView" />
    <xsl:apply-templates mode="footer" select="." />
    </xsl:template>
    <!-- Boxed and Boxed No Labels -->
    <!-- Issues Boxed and Boxed No Labels -->
    <xsl:template match="View[ViewStyle=/@ID='12' or ViewStyle=/@ID='13' or ViewStyle=/@ID='18' or ViewStyle=/@ID='19']" mode="full">
    <xsl:apply-templates select="." mode="RenderView" />
    </xsl:template>
    </xsl:stylesheet>
    DH

  • "What's Happening" Web Part

    Hey there.
    i'm working on SharePoint13 platform.
    I would like to create my own "What's Happening" Web part.
    it looks the same as the default web part but I want to change the values and critiria out of a sharepoint list.
    how can I do it?
    p.s is there any way I can create a dynamic chart/graph out of sharepoint list?
    thanks

    Hi,
         I presume you want to create a web part similar to What's Happening but get the values from SharePoint list? If that is the case you can develop a custom web part and can use css referred by What's Happening web part to give same look
    and feel. 
    Microsoft has discontinued the chart web part in SharePoint 2013, However, the available option is a custom web part using any of the option mentioned below
    1) Custom Web part using JQuery/SilverLight : Please refer to the url http://www.lucknowz.com/SitePages/Chart.aspx for JQuery to be used to draw chart with SharePoint List
    2) Use PowerPivot with SharePoint List : http://technet.microsoft.com/en-us/library/hh230322.aspx
    Hope this helps!!!
    Thanks,
    Ajeet
    If my post is helpful - please click on the green arrow to mark it as answer

  • XSLT List View Web part with Inline Editing changing value for one field changes the other lookup field

    Hi
    It's a bit of a weird one. In an XSLT List View web part when Inline editing is enabled if I change the date column, it changes the lookup field column as well. This behavior only occurs if the lookup list has more than 20 entries. Below 20 and we are
    OK.
    Let me explain by example:
    MileStones List - Having more than 20 items
    Tasks List - having a lookup to the Title field from MileStones list. Also having a due date field.
    Simple web part page with one XSLT List View web part for Tasks having inline editing enabled.
    When I edit the first record's due date and press enter (which saves the changes and moves onto next record) and change the due date on second record without even touching the MileStone field. Press enter to commit changes and you see the milestone changing
    on first record!
    The wierd thing is that if the MileStone list has less than 20 items all works as expected.
    Any pointers will be appreciated
    Thanks

    Hi,
    This is a known limitation when working with complex fields like Lookup field.
    A workaround is that we can avoid using the inline edit feature when there are
    complex fields in a list.
    You can take a look at this KB from Microsoft Support to get more details:
    http://support.microsoft.com/kb/2600186/en-us
    A similar thread for your reference:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/3d369611-ee79-4b5c-86bb-c0f3878cd746/standard-list-view-with-inline-editing-lookup-column-copies-preceding-or-following-items-related?forum=sharepointgeneralprevious
    Thanks
    Patrick Liang
    TechNet Community Support

  • Issue with web part connections : won't display data when the lookup field is a calculated field

    Hello,
    I have a list A with a calculated field named A.A. I have a list B that has a lookup field to list A, to field A.A, named B.A. I add the two lists in a wiki page and I try to connect them - I.E., select a row from A and the rows from B would be automatically
    filtered.
    The B\Connections\get filtered values from A and select Provider:A.A, Consumer B.A doesn't bring any results. If I do the exact opposite: A\Connections\get filtered values from B and select Provider:B.A, Consumer A.A  works fine. But, this is not what
    I want.
    If the A.A isn't calculated field, everything works fine. So, it looks like there's an issue with calculated fields acting as consumers.
    Is this a known issue and are there any know workarounds? A workaround is to abandon calculated field and  use sharepoint designer workflow.
    Thank you
    Christos

    Hi,
    According to your post, my understanding is that you had issues about connecting web parts.
    I try to reproduce the issue, however, everything works well.
    Create a custom list named List A, add a caculated column named A.A(Formula: =Title).
    Create a custom list named List B, add a lookup column named B.A(List A: A.A).
    Create a page and then insert the two list view web parts.
    Edit page, select List B->Connections->Get Filtered Values From List A.
    Then I can filter the List B.
    I recommend to create another caculated column and get filter value form it to check whether it works.
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • How to populate data for SharePoint Team Foundation Server web part burndown, bug progress chart

    Hi,
    We are configuring the Team Foundation Server web part to show dashboards associated with burndown, user stories, etc. I added some active but when I click on the Bug Progress link, the chart does not display any data. I click on the Burndown link to
    add some issues data. When I click on the Task burndown or the  user story progress, I get the following message
    "The error occured during an attempt to establish a connection to the external data source. The following connections failed to refresh:
    TfsOlaReport"
    I would like the see the data correctly populated in the chart. Any help is greatly appreciated.

    Hi Comicrage86, 
    Thanks for your post.
    What’s the version of your TFS and SharePoint?
    Do you mean the burndown report and bug progress chart in team project site? If yes, your current team project created using which process template?
    As far as I know team project Release Burndown report shows in team project site by default. How did you add the active to show Bug Progress chart and did you custom your Burndown in team project site? Please share the detailed steps here. And you can share
    your screenshots here, it will help us provide the better response.
    If reports cannot show correctly in your team project site, please check the default reports in your team project>>Reports, ensure that default team project reports working fine in your Reporting Service site first. Then follow the
    steps in this
    article to troubleshooting the SharePoint Dashboards data source issue.
    Or refer to the solution in this post:
    https://social.msdn.microsoft.com/Forums/en-US/af054ca3-110b-4414-85d8-f36ea2416b0c/new-sharepoint-portal-excel-refresh-issues?forum=tfssetup.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • List view threshold error in list view web part, column indexing not working

    Hello all,
    I have a list with about 8000 items and the list view threshold is set at 5000. I want to filter the list by a certain column ("Title", single line of text) so I indexed that column. I can filter the list (AllItems.aspx) however if I put the list
    on a web part page (in the form of a list view web part), I can't filter by that column. Shouldn't the indexed column allow this?
    Note that the threshold will not be increased and a daily time period to bypass the threshold is in place, but I'm looking for a solution for any time of they day.
    Thanks!

    Thanks for your response. Your suggestion did work! It got me thinking and I took some time to investigate this column indexing stuff a little closer. I had an "ah-ha" moment.
    Regardless of whether the column has an index or not, dynamic drop down filtering in a list view web part will only work if the list view has fewer items than the threshold. This is the critical point I was missing. I was assuming the index would allow for
    drop down filtering.
    Thanks again!

Maybe you are looking for

  • Adobe Standard 9 software

    i have the adobe standard 9 software - purchased it in a store.  I changed PC's and need to install the software on my new computer but don't have the CD anymore, although i have the serial number. How do i get the software installed on my PC?

  • Problem: Can't edit any table values

    Hi, I'm using the latest version of Oracel SQL Developer in XP and cannot edit any table values (ie: the actual data). I've tried the reset of Accelerators as previously suggested to no effect. I know the user has access since TOAD and DreamCoder all

  • Image control with a movieclip source

    I have an image control sitting inside a panel. The images source is a movieclip. When I change the change the size of the movie clip (scale X, scale Y) the movie clip exceeds the boundary of the image and the panel, so no scroll bars are shown. Can

  • Oracle 9i instlllation probs on 2000 advance Server

    Sir, i used fresh system with 2000 advance server. when cd ran it required jre i provided i used General Purpose. But after finishing upto 100% database configuration assistant was not configuured. no pre configured datbase was visible as it gave Ora

  • WRT54G time filter issue

    A buddy of mine has successfully setup time-based access filtering at his house based on the MAC address but his son has figured out that if he changes the time zone on his PC he can circumvent the filtering. I believe he is running v5 and the latest