Reporting Services :: Expression For Parsing Out Values From XML Stored In Column
Nov 25, 2015
I'm new to SSRS (We are using SQL 2014) and have been asked to create a report from SharePoint list data. One of the columns in my list contains XML data. I need to pull three different fields from this XML. I see lots on using xml as a datasource but I'm using a SharePoint list as my datasource. Before I get too far down the wrong road I thought I'd ask here if there was a built in means of parsing XML or if I should look at using the Text Function under Common Functions in the Epression builder?
We have SharePoint list which has, say, two columns. Column A and Column B.
Column A can have three values - red, blue & green.
Column B can have four values - pen, marker, pencil & highlighter.
A typical view of list can be:
Column A - Column B red  - pen red - pencil red - highlighter blue - marker blue - pencil green - pen green - highlighter red  - pen blue - pencil blue - highlighter blue - pencil
We are looking to create a report from SharePoint List using SSRS which has following view:
          red   blue  green   pen       2    0    1   marker    0    1    0   pencil      1    3    0   highlighter  1    1    1Â
We tried Sum but not able to display in single row.
I have a stacked column with 2 series("phones", "no phones") on the categories, What I am trying to do is to show only one of the series in each category,I used the visibility option in the series properties, and chose show or hide based on an expression using the expression below if(Fields!PENETRATIONSERIES. Value="no phone",FALSE,TRUE) i get no graph , But when I switch the true and false value, the graph show with the two series there.
My report has two data sets that hold inventory from two different departments. Â Â
ds_DeptA and ds_DeptB
I have a table, that pulls the DeptB status of DeptA record and displays it. This returns empty when the lookup fails to make a match, which is fine. Â Typically means DeptB does not have the record yet. Â I need to count these empty (null) feilds and populate it in a Text box outside of the table. Â I just can't figure out the syntax with multiple datasets. I can't use the lookup expression as part of the count expression since the count expression is not contained in a table that has a dataset.Â
table: ds_DeptA fields: ID Name date_set_to_DeptB <<Expr>> =Lookup(Fields!ID.Value,Fields!DeptA_ID.Value,Fields!DeptB_Status.Value, "ds_DeptB")
I have created 1 report with 2 datasets. This report is attached to the 1st dataset.For example,1st one is "Smallappliances", 2nd is "Largeappliances".
I created a tablix and, the 1st column extracts Total sales per Sales person between 2 dates from 1st dataset (Small appliances). I used running values expression and it works fine.
Now, I would like to add another column that extracts Total sales per sales person between 2 dates from 2nd dataset (Large appliances). I am aware that I need to use Lookup expression and it is giving me the single sales value rather than the total sales values. So, I wanted to use RunningValue expression within lookup table to get total sales for large appliances.
This is the lookup expression that I added for the 2nd column.
I get this error when I preview the report.An error occurred during local report processing.The definition of the report is invalid.An unexpected error occurred in report processing.
I have integrated sharepoint list data to SQL Server reporting services. I am using the below to query sharepoint list data using sql reporting services.
<Query>Â Â <SoapAction>http://schemas.microsoft.com/sharepoint/soap/GetListItems</SoapAction>Â Â <Method Namespace="http://schemas.microsoft.com/sharepoint/soap/" Name="GetListItems">Â Â Â Â Â <Parameters>Â <Parameter Name="listName">Â Â Â Â Â Â Â
[Code] .....
By using this query, I am getting a dataset which includes all the columns of sharepoint list. Among these columns, I wanted to display only 2 columns (i.e Region and Sales type) using chart. I have created a Region parameter but when I click preview, the drop down box is giving me all the repeatative values of region like
RG1,RG1,RG1,RG2,RG2,RG2,RG2,RG3..........
I wanted to display only distinct values of Region parameter so that whenever end user select region from the parameter drop down, it will display the respective value of Sales type column.Also when I select only RG1 parameter, it is giving me a chart including the sales type of all the Regions. (it should display me only the sales type of RG1) How can I link these 2 columns so that they will display the values respectively. Â
A Fact table <<Company Revenue>> 2 Dimension <<Month.Dim>> , <<Company>>
I have 4 company say (A,B,C,D) but i have record for only company A & D that too only for December month .
 When I create a SSRS report out of the cube i want a matrix where all the company names to be displayed in the rows & all the months in the columns and company's revenue in data
What my report is displaying :
Company  |  December ------------------------------------------------------- A         |  20000 ------------------------------------------------------- D         |  3900  -------------------------------------------------------
what is needed :
Company  |  January  |  February | March |  ........... | December ----------------------------------------------------------------------------------- A         |           |          |        |   |  20000 ---------------------------------------------------------------------------------- B         |           |          |        |   |  ---------------------------------------------------------------------------------- C         |           |          |        |   | ---------------------------------------------------------------------------------- D         |           |          |        |      |  3900  -----------------------------------------------------------------------------------  How do i achieve this either in SSAS or SSAS.
In SQL server Reporting service we need to export excel formula for summing column values. scenario : After generating report we are exporting report to excel file using report viewer.when user will modify a column value we need to calculate(update) automatically sum of the column values.Basically we are setting excel formula.
I have both positive and negative values in a single column, where I want sum total of positive values & negative values. Is there any Expression for this to sort out.
I have an SSIS package that imports data from an Excel file, replaces any value in Excel that reads "NULL" to "", then writes the data to a couple of databases.
What I have discovered today, is I have two columns of dates, an admit date and discharge date column, and what I need to do is anywhere I have a null value in the discharge date column, I have to replace it with the value in the admit date column.Â
I have searched around online and tried a few things using the Replace funtion in Derived columns but no dice so far.Â
Hi, how are you? I'm having a problem and I don't know if it can be solved with a derived column expression. This is the problem:
We are looking data in a a sql database.
We are writting the SQL result in a flat file.
We need to transform data in one of the columns.
For example: we can have 3 digits as value in a column but that column must be 10 digit length. So we have to complete all the missing digits with a zero. So, that column will have the original 3 digits and 7 zeros. How we can do that tranformation? We must do it from de the flat file or it can be a previous step? Thanks for any help you can give me. Regards,
I have a table in my report which shows sales values for each month by looking at the month number
so for Jan i use
=IIf(Fields!period_.Value=1,Fields!nett_.Value,0)
for Feb
=IIf(Fields!period_.Value=2,Fields!nett_.Value,0)
this is all good and I get a series of rows per customer with the correct value in the correct column
JAN FEB Mar
Customer A 250
Customer A 350
Customer A 5000
.
However I want to create a summary a line
JAN FEB Mar
Customer A 250 350 5000
I tried using SUM but this doesn't give all of the values in the summary line. It might just give the first and the rest are zeros. Or if the customer didn't have a value in Jan, but did in Feb and March, Feb's value is shown, but March is at 0 etc.
Have spent far too long on this today, so if anyone as any suggestion (come back Crystal all is forgiven ) on any approach I could take to this I'd appreciate it.
Hi all,I wrote the following expression in one cell in my table if there is no value for fields i am getting the following out put in that particular cell. I am calculating percentage. I have more than one datasets in my report.
Below is my query, it output's a percentage based on some calculations that i've had to make to fit in with requirements.The trouble is that it is also coming with NaN values which i need set to 0%,modify the below query to accomplish this?
I have a ssrs report R1 having a button B1 and a another report R2. On the click of B1 i want to download R2 in excel format.I have used action->Go to url property on B1 and have used the below expression to fetch the url for downloading R2 in excel format.  =Globals!ReportServerUrl &"?" & Globals!ReportFolder & "/" & "ReportName" & "¶m1=" & Parameters!param1.Value & "¶m2=" & join(Parameters!param2.Value,",") & "&rs:Format=excel"
The above expression is working.But if the parameter values contain "&" then i need to handle it in the url so i used the below expression.
but it is not working and giving the below error.The path of the item ' ' is not valid. The full path must be less than 260 characters long; other restrictions apply. If the report server is in native mode, the path must start with slash. (rsInvalidItemPath).
@StartDate is a report parameter and CustomerNo is the field I want to render on the report,I want to combine the sql ,but it display the error message below when I preview the report.If I query in the design form and input the value of the parameter ,it run correctly . --------------------------------------------- Data sql: declare @sql nvarchar(4000) declare @sqlWhere nvarchar(4000) set @sql='select CustomerNo from table1 ' set @sqlWhere=''
if @StartDate<>'' begin set @sqlWhere =@sqlWhere + ' StartDate=''' +@StartDate + '''' end if ltrim(rtrim(@sqlWhere))<>'' begin set @sqlWhere =' where ' + @sqlWhere end set @sql=@sql+@sqlWhere
exec sp_executeSQL @sql ------------------------------------------ Error message: [rsFieldReference] The Value expression for the textbox €˜CustomerNo€™ refers to the field €˜CustomerNo€™. Report item expressions can only refer to fields within the current data set scope or, if inside an aggregate, the specified data set scope.
I have a report with an expression to give a calculated field value (VoidDays) as follows:=DateDiff("d",Fields!Void_Start.Value, IIf(Fields!Void_End.Value is nothing, today, Fields!Void_End.Value))I have a number of different codes in the output such as VLOSS, VMAINT, VHOUS etc.When I run my report my days total for VLOSS is always correct but all other values are one day short. In the example shown in image below VMAINT should be 6 days and VHOUS should be 20 days which would then both add up to the VLOSS of 26 days  I cant currently fix these days at source for a number of reasons hence I need to fix these on the report output.How can I add one day onto each of my Void Days Total for every code except VLOSS which is always correct.
Which works except when there is no actual discharge date. it will not see the current date that the first expression adds but still shows a huge negative value.
Is there a way of taking a result from a query and pulling out a certain account number and displaying those account numbers - as fred? Eg. I have a drop down of account number (s) however they pull from a table that only displays them as account numbers. I would like to give more a description to certain account numbers that are pulled. Eg. account number 234 will be fred and account number 555 will be sam etc. Trying to add it to the query on the dataset is complicated, so I was wondering if I created an additional blank field with an expression to be able to do this?Â
I have a situation in SSRS to get the common values between the two columns where the values are sorted comma separated as below.Ex:
ColumnA :  abc,cde,efg   ColumnB : cde,xyz,abc  Â
the result in  Â
ColumnC : cde,abc
similarly Column A and B will have n number records. I need to right an expression or the Code function to get the required result in ColumnC. I am using SharePoint Lists as Datasource. Cannot write SQL query to achieve this requirement.
I am SSRS user, We have a .net UI from where we want to pass multi select values, but these values are comma separated in the database. how can I write a sql query such that when I select multi values on my UI, the comma separated values are take care of.
Is there any way to default to the first day of the month in a SSRS expression. I'm looking to do the reverse of the EOMONTH() function.The date value is coming from a parameter @BegDate and formatted YYYY-MM-DD. So if the parameter is set to 2015-08-31 it would show 2015-08-01
Is it possible to use a IIF IsNothing expression and check another condition? For all the values that are blank, I want it to check another column if  "Disposition" = 2 then I want to show "Inactive"
Report 1:Â This report has a tablix and a pie chart which displays member counts for genders.Dataset is written such that the gender names are always displayed in the tablix even when the count is Zero for Female and Male
Report 2:Â This report has a tablix and a pie chart which displays member counts for category Age.Dataset is written such that the age category names are always displayed in the tablix even when the count is Zero for age categories
Both Report 1 and Report 2 are place in separate rectangles and then these 2 rectangles are place in one single rectangle.Now I want to hide this main rectangle with an expression.