SSRS Clustered Column Report with SharePoint List

Hi Guys,
I have a SharePoint List which has 3 columns: Team Status Date and i want to generate clustere column chart using SSRS report. Could you please provide me steps for the same?
X Axis - All the teams
Y Axis - Count
Legends
1. Pending - status <> "Completed"
2. Task Overdue - status <> "Completed" && (Date == Today between Date == Today - 30
please find attached sample of report.
This is what I have tried so far...
I just need help on forming  expression.
Thanks, Nilesh

Hi Nilesh,
According to your description, you want to use a SharePoint list as datasource then create a chart.
In your scenario, we can add a calculated field which includes “pending” and  “Task Overdue”. Then add the calculated field to the Series Groups panel. Please refer to the steps and results below:
1. Add a calculated field and specify the value with the expression below:
=switch(Fields!status.Value <> "Completed" and Fields!Date.Value <= now() and Fields!Date.Value >= dateadd("d",-30,now()),"TaskOverdue",Fields!status.Value <> "compeleted","pending")
2. Design the report like below and preview the report.
If you have any question, please feel free to ask.
Best regards,
Qiuyun Yu
Qiuyun Yu
TechNet Community Support

Similar Messages

  • SSRS reporting with sharepoint list using Distinct and Multivalue parameters

    i want create ssrs report with sharepoint list using ms-vs(2008). i want create Distinct multivalue parameters by using CAML query. There is any way we put CAML query where we use Distinct keyword and IN clause in CAML query... i hope all experts will
    understand my poor English... sorry for poor English.. plz help me

    Hi AsifMehmood,
    Per my understanding you have create an SSRS report with SharePoint list, now you don’t know to create the distinct parameters by using CAML query,  right?
    For the CAML language doesn’t have any reserved word (or tag) to set this particular filter to remove duplicate results, but we can use the custom code to do this function. I have tested on my local environment and we can do that by create one hidden parameter(Param1)
    to get all the values from the fields which will  add the filter and then create another parameter(Param2) to get the distinct values based on the Param1, we use the custom code to do the deduplication.
    Step by Steps information in below thread for your reference to create the parameters and the custom code:
    "How to get distinct values of sharepoint column using SSRS"
    Other similar thread for your reference:
    https://audministrator.wordpress.com/2014/02/17/sharepoint-list-add-distinct-parameter-value/
    If your problem still exists, please feel free to ask and also try to provide us more details information.
    Regards
    Vicky Liu

  • How to select column dynamically with sharepoint list as data source in ssrs report

    Hi all,
    I am creating reports from SharePoint list but i have requirements to select the column name dynamically with SharePoint list as data source. I didn't find any way of doing this.. 
    Can anyone help me to resolve this issue..
    There is no way of specifying column name dynamically here in data set query
    <RSSharePointList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <ListName>test list</ListName>
      <ViewFields>
        <FieldRef Name="ID" />
        <FieldRef Name="ContentType" />
        <FieldRef Name="Title" />
        <FieldRef Name="Modified" />
        <FieldRef Name="Created" />
        <FieldRef Name="Author" />
        <FieldRef Name="Editor" />
        <FieldRef Name="_UIVersionString" />
        <FieldRef Name="Attachments" />
        <FieldRef Name="Edit" />
        <FieldRef Name="LinkTitleNoMenu" />
        <FieldRef Name="LinkTitle" />
        <FieldRef Name="DocIcon" />
        <FieldRef Name="ItemChildCount" />
        <FieldRef Name="FolderChildCount" />
        <FieldRef Name="test_x0020_date" />
        <FieldRef Name="title2" />
      </ViewFields>
    </RSSharePointList>

    Hi MNRSPDev,
    Sorry for the delay.
    According to the current description, I understand that you want to specify column name in dataset query designer dynamically when using SharePoint list data source.
    Based on my research, this is not supported by default. As a workaround, you can use XML data source. The XML content can be embedded directly within the query. This lets you use the expression capabilities within the processing engine to build queries and
    data dynamically within the report. And it can be used for retrieving XML data directly from an external data source, passing it using parameters, and embedding it within the query.
    Reference:
    http://www.codeproject.com/Articles/56817/Dynamic-Reports-with-Reporting-Services
    Hope this helps.
    Regards,
    Heidi Duan
    Heidi Duan
    TechNet Community Support

  • How to create a SSRS report with SharePoint 2013 team site's calendar?

    Hi I have sp13 and SQL Data Rool (that brings up VS Shell 2010).
    I need to build a report where the top part is to have a SP Team site's calendar for up coming week. The 2nd half would be a table with data from that same site.  This report would then need to be embedded in a email that automatically sent to several
    users  on weekly basis.
    I have the table data report created form the SP list.  How can I get the calendar(display as a calendar that I see in the team site) on to the top part of this report? 
    Thank you.

    Please follow this article to write SSRS reports with data source as SharePoint list/calendars etc. All document libraries, list and calendars are derived from base list class so you can use any of this type as a data source
    http://www.mssqltips.com/sqlservertip/2068/using-a-sharepoint-list-as-a-data-source-in-sql-server-reporting-services-2008-r2/
    Once your SSRS report is developed, you have multiple ways to show it in SharePoint
    - upload to SSRS server and show in sharepoint in a page viewer web part or simply open it as a link in new window
    - configure SharePoint environment with integration to SSRS and upload report to SharePoint library. Display report in a web part page using SSRS web part.
    Moonis Tahir MVP SharePoint,MCTS SharePoint 2010/2007, MCPD.net, MCSD.net, MCTS BizTalk 2006,SQL 2005

  • Use parameters in SQL Server reporting services with sharepoint lists

    I want to make report from sharepoint 2010 list and forms library in sql server reporting services.
    but also want to apply parameters.
    I tried but parameters but it is not working.
    How I can apply sharepoint lists parameters in sql server reporting services ?
    How to run or view report of sharepoint lists or form library in sqlserver reporting services with required parameters?

    Hi John,
    When we use SharePoint list as datasource in SSRS it has two method to add parameter. Suppose we have a dataset (DataSet1) get data from SharePoint list. Please refer to the methods below.
    Method 1: We can add parameter in the Query Designer dialog box to add parameter.
    Click “Add Filter” icon in the “Applied filters” dialog box in Query Designer.
    Select the corresponding field (Title), fill with specific conditions, and select Parameter option in the end of the row.
    Create a dataset (DataSet2) fill with Title field.
    Double click the parameter we create above, set the available values from DataSet2 field Title.
    (Note: In the situation, we are get the single-value parameter.)
    Method 2: It is a general method to add parameter in SSRS report.
     Create another dataset (DataSet2) in the report fill with Title field.
    Add a parameter (Title) get available values from DataSet2 Title field.
    Add filter in the DataSet1.
    (Note: This method, we can configure multi-values parameter.)
    Reference:
    http://technet.microsoft.com/en-us/library/aa337432(v=sql.105).aspx
    If you have any questions, please feel free to let me know.
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • How to integrate SSRS Reports with Sharepoint

    Hi Friends,
    I just wanted to know the steps to integrate our SSRS Reports with Sharepoint.
    What are the prerequisite for integration of ssrs 2008 reports with sharepoint.
    Thanks in Advance...
    Regards,
    LuckyAbdul

    see
    http://technet.microsoft.com/en-us/library/bb326356(v=sql.105).aspx
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Excel Services with SharePoint List Data in SharePoint 2013 - Chart is not refreshing automatically

    Hi Everyone,
    This is My req: I m going to display pie chart and Bar chart in share point 2013.
    Steps I have follwed:
    1. Export the list to excel.
    2.Using the Power Pivot table I have done the chart.
    3. Uploaded into document Library.
    4. Added into the web part. 
    Chart are displaying. But When ever user added the data into the list chart is refreshing.
    Is there any option to refresh the data in chart? Waiting for valuable replies.
    Regards, Manoj Prabakar

    SharePoint lists as data sources in Excel Services is not supported.That's the reason refreshing is not working. There are some work around you can use  -
    Export as Data Feed - Export your SharePoint list as Data Feed , use this data feed to a PowerPivot for Excel workbook and publish this PowerPivot using Excel Services.
    User-defined functions  - write UDF in C# and extend the Excel Services functionality to work with SharePoint lists.
    https://msdn.microsoft.com/library/bb267252(office.12).aspx#Office2007ExcelServicesUnlimited_SharePointLists
    Web Services API -
    The Web Services API can be used to push data from a database and then refresh the data in a SharePoint Server list by using Excel Services.
    JavaScript Object Model - The JavaScript Object Model for Excel Services in Microsoft SharePoint Server 2010 provides many solutions for Excel Services.
    More details  - 
    https://technet.microsoft.com/en-us/library/gg576960.aspx
    Thanks
    Ganesh Jat [My Blog |
    LinkedIn | Twitter ]
    Please click 'Mark As Answer' if a post solves your problem or 'Vote As Helpful' if it was useful.

  • How create animated power view reports using sharepoint list as a data source in sharepoint 2010?

    Hi All,
    I got a client requirement to create reports using SharePoint List as data source. The report should show reflection depends on values changed (I mean animation).
    I have heard about the power view/power pivot which does this kind of animations in reports.
    Can someone please guide me on creating reports which shows animations
    In power view/power pivot using SharePoint List as data source in SharePoint 2010.
    Thanks in advance.
    MercuryMan

    Hi MercuryMan,
    Yes, Power View, a feature of SQL Server 2012 Reporting Services Add-in for Microsoft SharePoint Server 2010 or SharePoint 2013 Enterprise Edition, is an interactive data exploration, visualization, and presentation experience.
    It provides multiple views featuring tiles, slicers, a chart filter, and a number of visualizations, including cards, small multiples, and a bubble chart. So, we can use Power View to do intuitive ad-hoc reporting for business users such as data analysts, business
    decision makers, and information workers.
    Currently, Power View report only supports two types of data models: PowerPivot Worksheet, and data models based on Analysis Services Tabular Model or Multidimensional Cube.
    In your scenario, you can create PowerPivot worksheets using SharePoint List as data source, deploy the PowerPivot worksheet to a SharePoint Library or PowerPivot Gallery, and then generate Power View reports based on the PowerPivot worksheets on the SharePoint
    site.
    To use SharePoint List as data source in Excel PowerPivot, you can refer to the following resource:
    http://blogs.technet.com/b/excel_services__powerpivot_for_sharepoint_support_blog/archive/2013/07/11/excel-services-using-a-sharepoint-list-as-a-data-source.aspx 
    http://technet.microsoft.com/en-us/library/hh230322.aspx 
    To create a Power View report based on PowerPivot model, you can refer to the following links:
    http://technet.microsoft.com/en-us/library/hh231522.aspx 
    http://technet.microsoft.com/en-us/library/hh759325.aspx 
    Regards,
    Mike Yin
    If you have any feedback on our support, please click
    here
    Mike Yin
    TechNet Community Support

  • Perfomance issue with SharePoint List.

    Current System:
    Our application (for submitting and publishing articles) is using WSS 3.0
     to store content and host workflows.
    Article content like PDFs, Images & Videos are stored in a SharePoint document library.
    There is also a list in which we have configured a custom state machine workflow. While creating an list SP item from the UI, instance of the configured workflow instance will be triggered and start monitoring.
    Each article belongs to a Journal.  We have TBs of data stored in content databases. Initially there was only one site collection (“http://<myweb:8080>/ArtcleLibrary”) and entire article data was storing it the same document library.
    Later we decided to split the document library based on journal.  
    To achieve better scalability, we have now changed the application architecture by creating site collection for each journal and keep article content (there are many articles in a journal) in corresponding site collections. We have added more content databases
    and sites collections are equally distributed among these Dbs.
    Now it is like (“http://<myweb:8080>/<journalID>/ ArtcleLibrary”)
    Actual Problem:
    We have achieved scalability in the case of content management by splitting document libraries among different site collections and content databases.
    But still the SP list for managing workflow is in the initial site collection (“http://<myweb>:8080/WorkflowTasks”). This single list contains now 60,000 items (=60,000 workflow instances) even if we deleted completed list items older than 3 months.
    We have performance issues with the current workflow list. It is taking time (avg 20s) to create/read list item from the SP List. Sometimes items are not getting created in the list item.
    From MSDN I came to know than there are recommended count for items in SPList (2000
     or 5000 items).
    What is the best solution to solve the above performance issue with SharePoint list?
    Whether the above mentioned our approach to document library will work for SP list also (means split current SP List and keep in each Journal site collection)?
    Please advise.

    Hi Andrew,
    Thanks for your post.
    I still have some doubts.
    If we go like this, will OWSTIMER be able to handle workflows (custom workflow is attached to SP List) of these many site collections. We have now more than 600 site collections.

  • Excel 2010 Synchronize List with SharePoint List using VBA

    I have used and loved the interaction between Excel and SharePoint for many generations of both solutions.  It's a wonderful opportunity to integrate the familiarity and simplicity of Excel (formatting, ease of use, availability) with the data storage
    and centralized list capabilities of SharePoint.  Right?
    When upgrading to Excel 2010, I have noticed with much dismay that much of the inherent easy to use features of previous versions were effectively stripped from this newest version.  Much research, time and energy has been spent working around and resolving
    the deficiency.  One Microsoft based article,
    http://support.microsoft.com/kb/930006, has provided the mechanics behind utilizing the "hidden" functionality... although, this capability to use VBA to create the synchronized list was available in previous versions.  However, once Microsoft
    published this article to this "hidden" functionality... I feel that the behavior should be supported by Microsoft in some way.  OK?
    Revised instructions to reproduce the problem:
    1. Create a SharePoint list with 20 dummy records.
    - Note the List Name  ##LIST_NAME##
    - Note the View GUID  ##VIEW_GUID##
    - Note SharePoint Base URL  ##BASE_URL##
    2. REVISED... In Excel 2010, save the file as Compatible "Excel 97-2003 Workbook".  Close the file and reopen.  Create a connected table (ListObject) in Excel using the article above to the SharePoint list.  Use Sample VBA code
    below:
    Sub LinkedSharePointList()    
    ActiveSheet.ListObjects.Add SourceType:=xlSrcExternal,_
        Source:=Array(##BASE_URL## & "/_vti_bin", ##LIST_NAME##, _
        ##VIEW_GUID##), LinkSource:=True, Destination:=Range("A1")
    End Sub
    3. OOPS REVISED this item.  The problem is actually with ROW 21... So, update record on row 21... (no matter where the table is located... (if the "Destination" is "A1", then the problem is with ID=20, but if the Table is
    shifted down to say A12, then ID=9 on row 21).  Anyway... make a simple change to that record... and you'll see the ID immediately change.... as if it's a NEW record.  WEIRD!  Note: If the sheet is protected, then an error is displayed
    indicating that a "read-only" record cannot be updated (referring to the ID cell in column A for the current row). 
    4. Now "synchronize" the list with excel.  The former record is still in the list unchanged AND there is a NEW record in the list holding the changes.  There are a number of problems that seem to ONLY occur when something changes to ROW
    21.... Next, try to copy/paste multiple records across multiple rows that intersect with ROW 21.  Yikes!! 
    I look forward to hearing others' experience!
    Thanks!
    Mark

    Here are some things that you can try (change the code, where appropriate):
    Private Sub CreateList()
        Dim folder As folder
        Dim f As File
        Dim fs As New FileSystemObject
        Dim RowCtr As Integer
        RowCtr = 1
        Set folder = fs.GetFolder("http://excel-pc:43231/Shared Documents/Forms/") '<=Variable Location
        For Each f In folder.Files
           Cells(RowCtr, 1).Value = f.Name
           RowCtr = RowCtr + 1
        Next f
    End Sub
    Sub ListAllFile()
     Dim objFSO As Object
     Dim objFolder As Object
     Dim objFile As Object
     Dim pth As String
     Dim WBn As Workbook
     Dim ObCount As Long
     Dim FileNme As String
     Application.ScreenUpdating = False
     Set objFSO = CreateObject("Scripting.FileSystemObject")
     'Get the folder object associated with the directory
     Set objFolder = objFSO.GetFolder("\\excel-pc:43231\Shared Documents\Forms\")
    '** You'll need to specify your path here. By removing the http: from the path, the code liked it & found the folder. It wasn’t working previously ***
     pth = "http://excel-pc:43231/Shared Documents/Forms/"
    '** You'll need to specify your path here. The reason I’ve done this separately is because the path is not recognised otherwise when trying to specify it with workbook.open & using the value set for objFolder **
     ObCount = objFolder.Files.Count
    '** counts the number of files in the folder
     'Loop through the Files collection
     For Each objFile In objFolder.Files
     Nm1 = Len("http://excel-pc:43231/Shared Documents/Forms/")
    '** You'll need to specify your path here **
     Nm2 = Len(objFile) - Nm1
     FileNme = Right(objFile, Nm2)
    '** I’ve done this part to find out/set the file name**
     Set WBn = Workbooks.Open(pth & FileNme, , , , Password:="YourPassword")
    '** opens the first file in the library – if there is no password, the remove everything from - , , , , Password:="Password1" – leaving the close bracket ‘)’
     Application.ScreenUpdating = False
    '** optional – you can leave the screen updating on
    '<< Your coding here>>
    '** The file is now open. Enter whatever code is specific to your spreadsheets.
     Next
    '** goes to next file within your sharepoint folder
    End Sub
    Sub SharePoint()
    Dim xlFile As String, xlFullFile As String
    Dim xlApp As Excel.Application
    Dim wb As Workbook
    xlFile = "\\excel-pc:43231\Shared Documents"
    'http://excel-pc:43231/Shared Documents/
    '****----denotes the path.(i.e) u give the path as windows search.Don't use "\" at the end.
    'In the sharepoint path %20 denotes space.so u remove that and use space .
    Set xlApp = New Excel.Application
    xlApp.Visible = True
    xlFullFile = GetFullFileName(xlFile, "Book") 'ANZ denotes starting characters of the file.
    xlFile = xlFile & "\" & xlFullFile
    Set wb = xlApp.Workbooks.Open(xlFile, , False)
    'Once the workbook is opened u can do ur code here
    wb.Close False
    End Sub
    Function GetFullFileName(strfilepath As String, _
    strFileNamePartial As String) As String
    Dim objFS As Variant
    Dim objFolder As Variant
    Dim objFile As Variant
    Dim intLengthOfPartialName As Integer
    Dim strfilenamefull As String
    Set objFS = CreateObject("Scripting.FileSystemObject")
    Set objFolder = objFS.GetFolder(strfilepath)
    'work out how long the partial file name is
    intLengthOfPartialName = Len(strFileNamePartial)
    For Each objFile In objFolder.Files 'Instead of specifying the starting characters of the file you can directly loop through all files in the folder .
    'Test to see if the file matches the partial file name
    If Left(objFile.Name, intLengthOfPartialName) = strFileNamePartial Then
    'get the full file name
    strfilenamefull = objFile.Name
    Exit For
    Else
    End If
    Next objFile
    Set objFolder = Nothing
    Set objFS = Nothing
    'Return the full file name as the function's value
    GetFullFileName = strfilenamefull
    End Function
    Sub SrchForFiles()
    ' Searches the selected folders and sub folders for files with the specified (xls) extension.
    'ListTheFiles 'get the list of all the target XLS files on the SharePoint Directory
    Dim i As Long, z As Long, Rw As Long, ii As Long
    Dim ws As Worksheet, dd As Worksheet
    Dim y As Variant
    Dim fldr As String, fil As String, FPath As String
    Dim LocName As String
    Dim FString As String
    Dim SummaryWB As Workbook
    Dim SummaryWS As Worksheet
    Dim Raw_WS As Worksheet
    Dim LastRow As Long, FirstRow As Long, RowsOfData As Long
    Dim UseData As Boolean
    Dim FirstBlankRow As Long
    'grab current location for later reference, for where to paste final data
    Set SummaryWB = Application.ActiveWorkbook
    Set SummaryWS = Application.ActiveWorkbook.ActiveSheet
    y = "xls"
    fldr = "\\excel-pc:43231\Shared%20Documents\Forms\AllItems.aspx"
    FirstBlankRow = 2
    'asd is a 1-D array of files returned
    asd = ListFiles(fldr, True)
    Set ws = Excel.ThisWorkbook.Worksheets(1) 'list of files
    ws.Activate
    ws.Range("A1:Z100").Select
    Selection.Clear
    On Error GoTo 0
    For ii = LBound(asd) To UBound(asd)
    Debug.Print Dir(asd(ii))
    fil = asd(ii)
    'open the file and grab the data
    Application.Workbooks.Open (fil), False, True
    'Get file path from file name
    FPath = Left(fil, Len(fil) - Len(Split(fil, "\")(UBound(Split(fil, "\")))) - 1)
    'Get file information
    If Left$(fil, 1) = Left$(fldr, 1) Then
    If CBool(Len(Dir(fil))) Then
    z = z + 1
    ws.Cells(z + 1, 1).Resize(, 6) = _
    Array(Dir(fil), LocName, RowsOfData, Round((FileLen(fil) / 1000), 0), FileDateTime(fil), FPath)
    DoEvents
    With ws
    .Hyperlinks.Add .Range("A" & CStr(z + 1)), fil
    '.FoundFiles(i)
    End With
    End If
    End If
    'Workbooks.Close 'Fil
    Application.CutCopyMode = False 'Clear Clipboard
    Workbooks(Dir(fil)).Close SaveChanges:=False
    Next ii
    With ws
    Rw = .Cells.Rows.Count
    With .[A1:F1]
    .Value = [{"Full Name","Location","Rows of Data","Kilobytes","Last Modified", "Path"}]
    .Font.Underline = xlUnderlineStyleSingle
    .EntireColumn.AutoFit
    .HorizontalAlignment = xlCenter
    End With
    .[G1:IV1 ].EntireColumn.Hidden = True
    On Error Resume Next
    'Range(Cells(Rw, "A").End(3)(2), Cells(Rw, "A")).EntireRow.Hidden = True
    Range(.[A2 ], Cells(Rw, "C")).Sort [A2 ], xlAscending, Header:=xlNo
    End With
    End Sub
    Function ListFiles(ByVal Path As String, Optional ByVal NestedDirs As Boolean) _
    As String()
    Dim fso As New Scripting.FileSystemObject
    Dim fld As Scripting.folder
    Dim fileList As String
    ' get the starting folder
    Set fld = fso.GetFolder(Path)
    ' let the private subroutine do all the work
    fileList = ListFilesPriv(fld, NestedDirs)
    ' (the first element will be a null string unless the first ";" is removed)
    fileList = Right(fileList, Len(fileList) - 1)
    ' convert to a string array
    ListFiles = Split(fileList, ";")
    End Function
    ' private procedure that returns a file list
    ' as a comma-delimited list of files
    Function ListFilesPriv(ByVal fld As Scripting.folder, _
    ByVal NestedDirs As Boolean) As String
    Dim fil As Scripting.File
    Dim subfld As Scripting.folder
    ' list all the files in this directory
    For Each fil In fld.Files
    'If UCase(Left(Dir(fil), 5)) = "MULTI" And fil.Type = "Microsoft Excel Worksheet" Then
    If fil.Type = "Microsoft Excel Worksheet" Then
    ListFilesPriv = ListFilesPriv & ";" & fil.Path
    Debug.Print fil.Path
    End If
    Next
    ' if requested, search also subdirectories
    If NestedDirs Then
    For Each subfld In fld.SubFolders
    ListFilesPriv = ListFilesPriv & ListFilesPriv(subfld, NestedDirs)
    Next
    End If
    End Function
    Finally . . .
    Sub ListFiles()
        Dim folder As Variant
        Dim f As File
        Dim fs As New FileSystemObject
        Dim RowCtr As Integer
        Dim FPath As String
        Dim wb As Workbook
        RowCtr = 1
        FPath = "http://excel-pc:43231/Shared Documents"
        For Each f In FPath
        'Set folder = fs.GetFolder("C:\Users\Excel\Desktop\Ryan_Folder")
        'For Each f In folder.Files
           Cells(RowCtr, 1).Value = f.Name
           RowCtr = RowCtr + 1
        Next f
    End Sub
    Sub test()
        Set objFSO = CreateObject("Scripting.FileSystemObject")
        Set objFolder = objFSO.GetFolder("C:\Users\Excel\Desktop\Ryan_Folder")
        'Set colSubfolders = objFolder.SubFolders
        'For Each objSubfolder In colSubfolders
           Cells(RowCtr, 1).Value = f.Name
           RowCtr = RowCtr + 1
        'Next
    End Sub
    Ryan Shuell

  • SharePoint Designer 2010 Error occurs when accessing Edit Form: "The server returned a non-specific error when trying to get data from the data source ..." This occurs when using "" in a calculated column in a SharePoint List

    I created a calculated column "Expiration Date" in SharePoint 2010 with formula, =IF([Contingent Hire]=TRUE,(Created+90),(IF([Contingent Hire]=FALSE," ")))
    This works in the SharePoint list but when I go to edit the Edit Form in Designer. I get the error specified in the title of this post. I'm trying to make it so the Expiration Date is blank when another column, "Contingent Hire" (a YES/No
    column) is FALSE.
    The Edit Form is essentially a DataViewWebpart. If I remove the " ", like so, "(IF([Contingent Hire]=FALSE,))" from the calc column, the error goes away; however, the Expiration Date field does not
    remain blank like I want it to.
    Does anyone have any suggestions? (Below is the error generated when I open Designer and then try to open the Edit form for the corresponding list containing the calc column)
    JackSki123

    Hi Jack,
    Could you provide a screenshot about this issue?
    As Dimitri suggested, you can install the update for your SharePoint Designer and check again.
    And you can also check if you can display "NA" instead of " " in your calculated column per the following post.
    http://rajeshspillai.blogspot.in/2012/03/server-returned-non-specific-error-when.html
    Thanks
    Daniel Yang
    TechNet Community Support

  • Build Report using sharePoint list datasource for EPM projects.

    Hi all,
    I am using Project Server 2010. 
    When project is created using EPT then for that project a site will be created and each site has sharePoint Lists. 
    I want to build SSRS report that uses this sharepoint list as datasource. 
    My connection string to the site URL must be dynamic as each project site URL will be different. 
    Your help will be appreciated!!!
    Thanks,
    Rohit

    Hello,
    Look to use an expression and pass in the Project Site URL, see the example below:
    SharePoint Web Services (XML) version but gives you the idea for using an expression:
    http://nearbaseline.com.au/blog/2010/02/reporting-workspace-lists-directly-from-sharepoint/
    Paul
    Paul Mather | Twitter |
    http://pwmather.wordpress.com | CPS |
    MVP | Downloads

  • How to get and set the column order in SharePoint list forms

    Hi,
    I want to read the column order of the SharePoint list forms in SharePoint 2003 sites using any of the available web services and need to set the same order
    in the newly created list in SharePoint 2010.
    I am able to read the fields from SharePoint 2003 and creating the list with same fields in SharePoint 2010, but the column order is not maintaining in
    list forms.
    Also, I need to created the views from 2003 site to 2010 site.
    Please help me...
    Thanks in advance...

    Hi,
    Please try to use the following code to programatically change the order.
    SPList list = web.Lists["Example List"];
    if (list.ContentTypes.Count > 0)
    SPContentType ct = list.ContentTypes[0];
    string[] names = {"Example_x0020_One", "Example_x0020_Two", "Example_x0020_Three"};
    ct.FieldLinks.Reorder(names);
    ct.Update();
    Here is a similar thread for your reference:
    https://social.technet.microsoft.com/Forums/en-US/ce66fd65-2882-4bda-8142-89e116d8b90f/how-to-set-the-order-of-the-fields-in-list-forms?forum=sharepointdevelopmentprevious
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Report with Select Lists problem

    Hi all,
    I have a sql report with this query:
    select
    'Hello World' Col1,
    apex_item.select_list_from_lov_xl(1,'Data 1','TEST_LOV') lov1,
    apex_item.select_list_from_lov_xl(1,'Data 2','TEST_LOV') lov2,
    apex_item.select_list_from_lov_xl(1,'Data 3','TEST_LOV') lov3,
    apex_item.select_list_from_lov_xl(1,'Data 4','TEST_LOV') lov4
    from dual
    Where TEST_LOV is a LOV that return 400 rows. The problem is that this report gives me an error:
    report error:
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    I am able to create a workarround using ajax, but I don't think this is the best way.
    Does anyone knows why this happens or any solution??
    Thanks,
    Alejandro.

    Hi,
    OK - My page is defined as:
    The report is based on the following SQL:
    select
    "EMPNO",
    "EMPNO" EMPNO_DISPLAY,
    "ENAME",
    "DEPTNO"
    from "#OWNER#"."EMP"The DEPTNO column is the one that I need a select list for. I have not used the APEX_ITEM package to handle this, but I expect it could be done that way as well.
    On the DEPTNO column, I have the following settings:
    Display As: Select List (query based LOV)
    Named LOV: -Select Named LOV-
    Display Extra Values: Yes
    Display Null: Yes
    List of values definition: SELECT NULL d, NULL r FROM DUAL
    Note that it is important that you use these exact settings.
    I have then created a new PL/SQL region on the page below the tabular form. The region should use the "No Template" template to keep it hidden from view. The Region Source is:
    DECLARE
    vSEP VARCHAR2(1);
    BEGIN
    vSEP := '';
    htp.p('&lt;script type="text/javascript"&gt;');
    htp.p('var sMaster = new Array(');
    FOR c IN (SELECT DNAME d, DEPTNO r FROM DEPT ORDER BY UPPER(DNAME))
    LOOP
      htp.p(vSEP || 'new Array (' || c.r|| ',"' || c.d|| '")');
      vSEP := ',';
    END LOOP;
    htp.p(')');
    htp.p('&lt;/script&gt;');
    END;This defines a hidden select list as a javascript array using the actual values from the DEPT table.
    I then have an HTML region underneath that, again using "No Template", that has the following as the Region Source:
    &lt;script type="text/javascript"&gt;
    function updateList(sChild)
    var o;
    var sChildValue = sChild.value;
    sChild.options.length = 0;
    o = new Option('-Select-', '');
    sChild.options.add(o);
    var k;
    for (k = 0; k &lt; sMaster.length; k++)
      o = new Option(sMaster[k][1], sMaster[k][0]);
      sChild.options.add(o);
    sChild.value = sChildValue;
    if (sChild.selectedIndex == -1)
      sChild.selectedIndex = 0;
    function updateLists()
    var lists = document.getElementsByName("f03");
    var k;
    var x;
    if (lists)
      for (k = 0; k &lt; lists.length; k++)
       updateList(lists[k]);
    updateLists();
    &lt;/script&gt;For this example, you will note that I am refering to "f03" (in the updateLists() function) - my DEPTNO column's SELECT tags have "f03" as their NAME attributes. This may need to be changed for your page.
    And that's it!
    When the page is loaded, the tabular form is constructed. Due to the settings I've applied to the DEPTNO column, each list will actually consist of a NULL entry and the value on the record (that's due to setting Null/Extra Values to Yes).
    Then, a hidden select list is constructed as a javascript array. And, finally, we loop through each of the "f03" items on the page, take a note of the value already there, replace the contents of the dummy select list with the contents of the array and then select the original value again.
    Andy

  • Integrating Tableau server report with SharePoint

    Hi 
    The requirement is to have Tebleau server report to be integrated with SharePoint. We can integrate the report using a page viewer web part but in the web part it asks for log in credentials, also Tableau server is installed on a different server with local
    authentication mechanism. What I want is the report be available to all the domain users on SharePoint available on a different server. I see an option - to use Secure store service but then it requires the authentication mechanism to be changed in Tableau
    server by uninstalling it first and then install it again (which we consider is not feasible) so that using the secure store credentials the report automatically logs in and shows the report to all the authenticated SharePoint users.
    How can we implement the auto log in feature for Tableau report in the page viewer web part so that the report is available already (Secure Store) and the SharePoint logged in user does not have to go and log in.
    Any pointers or suggestions to accomplish this using any other method also would be highly appreciated.
    Thanks

    Did you check this 
    http://www.jenunderwood.com/2014/03/03/how-to-integrate-tableau-with-microsoft-reporting-services/
    http://maxderungs.wordpress.com/2013/01/29/workaround-display-tableau-report-in-sharepoint/
    Let us know if this helps, thanks
    Regards,
    Pratik Vyas | SharePoint Consultant |
    http://sharepointpratik.blogspot.com
    Posting is provided AS IS with no warranties, and confers no rights
    Please remember to click Mark As Answer if a post solves your problem or
    Vote As Helpful if it was useful.

Maybe you are looking for