Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all 28687 articles
Browse latest View live

SSRS two datasets in one report

$
0
0

I have a SSRS report with two datasets. My report has one table with all fields from dataset 1. Is it possible to show the field from dataset 2 if the id field from dataset 1 = the id field from dataset 2?

I've tried using an expression on the field in the table to point to the field in dataset 2 but there is no link between the 2 datasets which I think I need. are you able to do a select clause within the expression on the report?

I have tried the below as the expression but it doesn't work :

=iif Sum(Fields!ID.Value, "DataSet2")=Sum(Fields!ID.Value, "DataSet3") then First(Fields!total.Value, "DataSet3")



SSRS 2016- Bind 443 port without '/Reports'

$
0
0

Hello All,

We are using SSRS 2016 reporting services. Currently, the port 443 is bound to virtual directory "Reports" and the URL using SSL is working when we give the URL as https://machinename.domainname/reports and it prompts for username and password. However, I would like to only use  https://machinename.domainname without the "/reports". What should I do to make this work?

Also, is there a way for not prompting the username and password?

Please see below screenshot.

Nested Sum If statements?

$
0
0

Hello all, I am new to SSRS, but not to coding. I am finding a few things a bit tricky!  :)

I have a report that has a parameter, based on this parameter fields are chosen.

I have some summary data at top, and details below. 

So, I have one column that has the expression...

=Sum(IIf(Fields!P_S.Value="P",Fields(Parameters!FY.Value & "__K").Value, Nothing), "DataSet1")

Another that has...

=Sum(IIf(Fields!P_S.Value="P",Fields(Parameters!FY.Value & "_FTE").Value, Nothing), "DataSet1")

And a third that has...

=Sum(IIf(Fields!P_S.Value="P", IIF(Fields(Parameters!FY.Value & "_FTE").Value<>0,Fields(Parameters!FY.Value & "__K").Value/Fields(Parameters!FY.Value & "_FTE").Value,0),0), "DataSet1")

This third one is not working, I am getting a value, but it is not the correct "average".

If I remove the second IIf statement (just so no dividing by 0 occurs) I get a NaN, meaning of course that it encountered null values. I really need the second IIf statement to be a Sum(IIf, but I cannot seem to get that working.  Basically I need to use column #2, but that cannot reside in a report header so I cannot use ReportItems.

I am sure this is very basic for most of you, but any assistance would be appreciated!

AlfaistaHR

report builder date parameters disappear

$
0
0

Hi,

I have 2 pc, 1 with Windows 7 and the other with Windows 10.

Both pc have the same SQL Server 2014 version and the same  reporting builder version (12.0.2000.8).

When I run the same report from report builder , it works well in Windows 7 but in Windows 10 I have problem with date parameters.

When I set a date and pass to next parameter, the date disappears and return to blank.

The report in IE works well.

Can you help me ?

Dumb question on SSRS reports

$
0
0

I'm new to the SSRS and wondering how this works for the reports that have already sent out.

Meaning, after the report has been emailed to the business, down the road, after 1 month if the business access the same report that was delivered 30 days back, would that show the exact data that they have seen 30 days back or since the data has been updated on the day they are accessing it again, will they see the updated data even they have opened the old report ?

also, does the report pull the data from the tables every time the report has been opened ?

Hide rows that are displayed as #Error

$
0
0
I am getting rows that display #Error. Is there a way to altogether hide rows that have any column that displays #Error.

Images in Bar Chart

$
0
0

Hi Everyone,

Is there anyway we could add images in stacked bar chart? It is something close to "Call out". I'm open to explore other horizontal charts as well as if its something close to this.

Reproduce chart:

Stacked bar chart. 

Bar color expression -  

=Switch(Fields!Type.Value = "Road","Blue",
        Fields!Type.Value = "LampPost","Red",
Fields!Type.Value = "Sewage","Yellow",
        Fields!Type.Value = "ElectricLine","Lime")



Please find the sample data:

select * from 
(select 'Road' as Type,1 as SequenceNo, 0
    as SectionBeginFootage,  1.25
as SectionEndFootage, 1.25  as SectionLength
union select 'Sewage' as Type,2 as SequenceNo,  1.25 as SectionBeginFootage,  2.69
as SectionEndFootage, 1.44  as SectionLength
union select 'Road' as Type,3 as SequenceNo,  2.69 as SectionBeginFootage,  5.15
as SectionEndFootage, 2.46  as SectionLength
union select 'Road' as Type,4 as SequenceNo,  5.15 as SectionBeginFootage,  33.35
as SectionEndFootage, 28.2  as SectionLength
union select 'Road' as Type,5 as SequenceNo,  33.35 as SectionBeginFootage,  77.53
as SectionEndFootage, 44.18 as SectionLength
union select 'Road' as Type,6 as SequenceNo,  77.53 as SectionBeginFootage,  121.5
as SectionEndFootage, 43.97 as SectionLength
union select 'Road' as Type,7 as SequenceNo,  121.5 as SectionBeginFootage,  162.79
as SectionEndFootage, 41.29 as SectionLength
union select 'Road' as Type,8 as SequenceNo,  162.79 as SectionBeginFootage,  205.15
as SectionEndFootage, 42.36 as SectionLength
union select 'Road' as Type,9 as SequenceNo,  205.15 as SectionBeginFootage,  247.92
as SectionEndFootage, 42.77 as SectionLength
union select 'Road' as Type,10 as SequenceNo,  247.92 as SectionBeginFootage,  257.62
as SectionEndFootage, 9.7   as SectionLength
union select 'Road' as Type,11 as SequenceNo,  257.62 as SectionBeginFootage,  290.48
as SectionEndFootage, 32.86 as SectionLength
union select 'Road' as Type,12 as SequenceNo,  290.48 as SectionBeginFootage,  335.12
as SectionEndFootage, 44.64 as SectionLength
union select 'Road' as Type,13 as SequenceNo,  335.12 as SectionBeginFootage,  377.1
as SectionEndFootage, 41.98 as SectionLength
union select 'Road' as Type,14 as SequenceNo,  377.1 as SectionBeginFootage,  419.58
as SectionEndFootage, 42.48 as SectionLength
union select 'Road' as Type,15 as SequenceNo,  419.58 as SectionBeginFootage,  462.78
as SectionEndFootage, 43.2  as SectionLength
union select 'Road' as Type,16 as SequenceNo,  462.78 as SectionBeginFootage,  505.84
as SectionEndFootage, 43.06 as SectionLength
union select 'Road' as Type,17 as SequenceNo,  505.84 as SectionBeginFootage,  547.91
as SectionEndFootage, 42.07 as SectionLength
union select 'Road' as Type,18 as SequenceNo,  547.91 as SectionBeginFootage,  591.17
as SectionEndFootage, 43.26 as SectionLength
union select 'Road' as Type,19 as SequenceNo,  591.17 as SectionBeginFootage,  629.81
as SectionEndFootage, 38.64 as SectionLength
union select 'Road' as Type,20 as SequenceNo,  629.81 as SectionBeginFootage,  672.65
as SectionEndFootage, 42.84 as SectionLength
union select 'Road' as Type,21 as SequenceNo,  672.65 as SectionBeginFootage,  714.03
as SectionEndFootage, 41.38 as SectionLength
union select 'Road' as Type,22 as SequenceNo,  714.03 as SectionBeginFootage,  757.34
as SectionEndFootage, 43.31 as SectionLength
union select 'Road' as Type,23 as SequenceNo,  757.34 as SectionBeginFootage,  792.07
as SectionEndFootage, 34.73 as SectionLength
union select 'Road' as Type,24 as SequenceNo,  792.07 as SectionBeginFootage,  834.25
as SectionEndFootage, 42.18 as SectionLength
union select 'Road' as Type,25 as SequenceNo,  834.25 as SectionBeginFootage,  867.48
as SectionEndFootage, 33.23 as SectionLength
union select 'Road' as Type,26 as SequenceNo,  867.48 as SectionBeginFootage,  907.61
as SectionEndFootage, 40.13 as SectionLength
union select 'Road' as Type,27 as SequenceNo,  907.61 as SectionBeginFootage,  951.24
as SectionEndFootage, 43.63 as SectionLength
union select 'Road' as Type,28 as SequenceNo,  951.24 as SectionBeginFootage,  993.74
as SectionEndFootage, 42.5  as SectionLength
union select 'Road' as Type,29 as SequenceNo,  993.74 as SectionBeginFootage,  1038.4
as SectionEndFootage, 44.66 as SectionLength
union select 'Road' as Type,30 as SequenceNo,  1038.4 as SectionBeginFootage,  1081.92
as SectionEndFootage, 43.52 as SectionLength
union select 'Road' as Type,31 as SequenceNo,  1081.92 as SectionBeginFootage, 1127.36
as SectionEndFootage, 45.44 as SectionLength
union select 'Road' as Type,32 as SequenceNo,  1127.36 as SectionBeginFootage, 1171.09
as SectionEndFootage, 43.73 as SectionLength
union select 'Road' as Type,33 as SequenceNo,  1171.09 as SectionBeginFootage, 1213.59
as SectionEndFootage, 42.5  as SectionLength
union select 'Road' as Type,34 as SequenceNo,  1213.59 as SectionBeginFootage, 1258.09
as SectionEndFootage, 44.5  as SectionLength
union select 'Road' as Type,35 as SequenceNo,  1258.09 as SectionBeginFootage, 1302.17
as SectionEndFootage, 44.08 as SectionLength
union select 'Road' as Type,36 as SequenceNo,  1302.17 as SectionBeginFootage, 1346.83
as SectionEndFootage, 44.66 as SectionLength
union select 'Road' as Type,37 as SequenceNo,  1346.83 as SectionBeginFootage, 1388.89
as SectionEndFootage, 42.06 as SectionLength
union select 'Road' as Type,38 as SequenceNo,  1388.89 as SectionBeginFootage, 1432
as SectionEndFootage, 43.11 as SectionLength
union select 'Road' as Type,39 as SequenceNo,  1432 as SectionBeginFootage,  1473.74
as SectionEndFootage, 41.74 as SectionLength
union select 'Road' as Type,40 as SequenceNo,  1473.74 as SectionBeginFootage, 1516.1
as SectionEndFootage, 42.36 as SectionLength
union select 'Road' as Type,41 as SequenceNo,  1516.1 as SectionBeginFootage,  1559.63
as SectionEndFootage, 43.53 as SectionLength
union select 'Road' as Type,42 as SequenceNo,  1559.63 as SectionBeginFootage, 1643.04
as SectionEndFootage, 83.41 as SectionLength
union select 'Road' as Type,43 as SequenceNo,  1643.04 as SectionBeginFootage, 1646.03
as SectionEndFootage, 2.99  as SectionLength
union select 'Road' as Type,44 as SequenceNo,  1646.03 as SectionBeginFootage, 1681.58
as SectionEndFootage, 35.55 as SectionLength
union select 'Road' as Type,45 as SequenceNo,  1681.58 as SectionBeginFootage, 1721.9
as SectionEndFootage, 40.32 as SectionLength
union select 'Road' as Type,46 as SequenceNo,  1721.9 as SectionBeginFootage,  1752.55
as SectionEndFootage, 30.65 as SectionLength
union select 'Road' as Type,47 as SequenceNo,  1752.55 as SectionBeginFootage, 1764.87
as SectionEndFootage, 12.32 as SectionLength
union select 'Road' as Type,48 as SequenceNo,  1764.87 as SectionBeginFootage, 1799.48
as SectionEndFootage, 34.61 as SectionLength
union select 'Road' as Type,49 as SequenceNo,  1799.48 as SectionBeginFootage, 1805.48
as SectionEndFootage, 6     as SectionLength
union select 'Road' as Type,50 as SequenceNo,  1805.48 as SectionBeginFootage, 1819.25
as SectionEndFootage, 13.77 as SectionLength
union select 'Road' as Type,51 as SequenceNo,  1819.25 as SectionBeginFootage, 1827.73
as SectionEndFootage, 8.48  as SectionLength
union select 'Road' as Type,52 as SequenceNo,  1827.73 as SectionBeginFootage, 1838.11
as SectionEndFootage, 10.38 as SectionLength
union select 'Road' as Type,53 as SequenceNo,  1838.11 as SectionBeginFootage, 1849.14
as SectionEndFootage, 11.03 as SectionLength
union select 'Road' as Type,54 as SequenceNo,  1849.14 as SectionBeginFootage, 1859.7
as SectionEndFootage, 10.56 as SectionLength
union select 'Road' as Type,55 as SequenceNo,  1859.7 as SectionBeginFootage,  1860.34
as SectionEndFootage, 0.64  as SectionLength
union select 'ElectricLine' as Type,56 as SequenceNo,
1860.34 as SectionBeginFootage, 1862.33
as SectionEndFootage, 1.99  as SectionLength
union select 'LampPost' as Type,57 as SequenceNo,  1862.33 as SectionBeginFootage, 1864.21
as SectionEndFootage, 1.88  as SectionLength
union select 'ElectricLine' as Type,58 as SequenceNo,
1864.21 as SectionBeginFootage, 1865.17
as SectionEndFootage, 0.96  as SectionLength
union select 'Road' as Type,59 as SequenceNo,  1865.17 as SectionBeginFootage, 1876.15
as SectionEndFootage, 10.98 as SectionLength
union select 'Road' as Type,60 as SequenceNo,  1876.15 as SectionBeginFootage, 1885.78
as SectionEndFootage, 9.63  as SectionLength
) a order by SequenceNo

Thanks a lot.

SQL server licensing

$
0
0

Hi,

I am an automation engineer(SCADA and PLC) recently I am using a new scada software which is by COPADATA-Zenon. The software is having local database for storing the data from hardware as well as operator entry. Since there is an option to save the data to SQL I am giving a try for it. There is already an SQL server 2012 express edition installed together with the Zenon software. I have created a database inside the same database engine of Zenon but when I tried to connect it with the SSRS it was showing some error ie the database you have selected is not a report server database. Zenon team asked to create a seperate database as it is not a good practice to use the software database. But I would like to know should I purchase the SQL server or I can use the express edition if so what are the limitations

Regards

Sandy


Edit existing SSRS reports from report portal

$
0
0

Hello,

I am new to SSRS and currently need to edit existing SSRS report for whom report portal and report server links are given.But when I click on 'Edit' then it is asking to select 'Report Builder' app which I do not have and am not sure how to configure the settings to access the reports.

Kindly help on above question.

Divide by zero error encountered

$
0
0

Hello, I have a line of script that occasionally  returns a 'divide by zero error':

CAST SUM(a.mydata1) / CAST(SUM(a.mydata2) AS NUMERIC(10,2)) AS NUMERIC (10,0)) AS [AVERAGE TIME]

Is there anything I can do here to amend this to bring through NULL - or 0 - in the instances when the above script is trying to calculate 0 / 0  - which it sometimes does?

Any help appreciated - thanks

SSRS 2016 Report Fixed header mis aligned after scrolling

$
0
0

Hello, 

We have migrated one report from SSRS 2008 to 2016. We are using fixed header in the report. 

When we are scrolling vertically, the headers are shifted one column left. In BIDS, we do not have this issue. Issue appears when we upload the report to SSRS portal.

We are on SSRS 2016 SP1. Does anyone has ever encountered such issue? 

Thanks,

Ved


Report Builder Download for SQL Server 2017

$
0
0

Hi, the links to download report builder appear to be dead.

i.e.

https://www.microsoft.com/en-us/download/details.aspx?id=53613 goes to 

https://www.microsoft.com/en-us/download/confirmation.aspx?id=53613 which does nothing so you press the 'click here to download manually' which goes to 

https://download.microsoft.com/download/5/E/B/5EB40744-DC0A-47C0-8B0A-1830E74D3C23/ReportBuilder.msi

Resulting in the message

"

/5eb40744-dc0a-47c0-8b0a-1830e74d3c23/reportbuilder.msi
404 - File or directory not found.
The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.

"

Anyone any ideas where to get report Builder?

Thanks


Need to generate dummy date data in SSRS report against Sharepoint (no Db, Can I do it in code?)

$
0
0

Hi All,

I am creating a report that will display some counts for the 4 Weeks ending last Sunday.  To do this, I have created column groups that group on the week Number of the create date in the dataSet.  This works nicely so based on the dataset (which just has a couple text category fields and a date)  A new column is created for each Week number an using an expression, calculates a percent based on that weekNumber grouping.

My Issue is that if I only have data representing the last couple weeks, I only see 3 Week Number columns ( Current based on a rundate,  Current - 1(wks), Current-3(wks).  -- I know this is the way it is supposed to work, but what I need is like left join for the grouping that returns the 4 prior weeks even if they are not in the data.

My thought was to create a dummy data set, something like below that I could use to create the desired row/columns

   declare @runDt DATE = DATEAdd(DAY,-4,GETDATE()), @CurWkNo INT

   SELECT @CurWkNo =  DATEPART(wk, @runDt)
   SELECT 'WK' + CAST(@CurWkNo AS varchar) AS WkLabel, @CurWkNo as wkNo
UNION
   SELECT 'WK' + CAST(@CurWkNo - 1 AS VARCHAR) AS WkLabel, @CurWkNo -1 as wkNo
UNION
   SELECT 'WK' + CAST(@CurWkNo - 2 AS VARCHAR) AS WkLabel, @CurWkNo -1 as wkNo
UNION
   SELECT 'WK' + CAST(@CurWkNo - 3 AS VARCHAR) AS WkLabel, @CurWkNo -1 as wkNo

This generates the following, which is good.

WkLabelwkNo
WK3234
WK3334
WK3434
WK3535

**  But I can't write the query/create the dataset (as far as I know) because my dataSource is a sharepoint list.

Does Anyone have any thoughts on Whether this approach makes any sense, and if so, how to implement.  Is there any way to do these kind of queries against sharepoint?  Or,  is there a way in code to create it?

Thanks in advance and let me know if I have not been very clear.

SSRS 2008 R2 Reports export to PDF to fit one page wide and avoid the column spreading on multiple pages.

$
0
0

Hi

I have developed a report with SSRS 2008 R2, when I export the report to PDF the report columns are getting spread over multiple pages also the report header text is getting spread over multiple pages. I need to display the header text and columns on one page wide. Can anyone suggest how to fix this? Am I missing some properties to be set?

Your help is highly appreciated.

Thanks and Regards,

Satish

HOW TO FILTER A TABLIX BASED ON ANOTHER TABLIX INFORMATION

$
0
0

I have two dataset, one use two parameters for accounting purpose they are year and account id.

Based on these parameters I pull all the employee by department.

The second dataset have the employee and the account information if those employees have the salary allocated in two account. Like this

The accounts have different account Id so I cannot use the same parameter with the sub report, I was trying to pass this with parameter but only get the first line, the second is missing because is different account Id.

So when the first report ran and I have the employee 100459, I need to display the sub_report as listed.

Please HELP




How do I report the value from a textbox into another table?

$
0
0

I have many clients with many locations.   One client may have one locations but many records in the database.   I summed the Clients by the locations and need to record the top 5.   I can get the value and a running total,  but I need the display Rank 5 Running Value 22,150,639.00 in a separate table.   I will need to do the same for the top 10, 15, and 20.   

How do I just call the value in the text box 22,150,639.00 into a separate table?  

My Running Total=RunningValue(Fields!Principal.Value, sum, nothing) 

My Rank =RunningValue(Sum(Fields!Principal.Value), CountDistinct,nothing )

Top 5 Value =iif(RunningValue(Sum(Fields!Principal.Value), CountDistinct,nothing )="5",RunningValue(Fields!Principal.Value, sum, nothing),nothing)

I need the following in a new table: Top 5 Value =iif(RunningValue(Sum(Fields!Principal.Value), CountDistinct,nothing )="5",RunningValue(Fields!Principal.Value, sum, nothing),nothing)


g_cat

uploading xslt files in 2017

$
0
0

I am transitioning from SSRS 2012 to 2017.  I have a number of reports that use Data Transformations.  On my 2012 server I simply created a hidden folder and dumped all my xslt files in that folder and then referenced that location from each report.  On 2017 I planned to do exactly the same.  The problem is when I try to upload an XSLT file I get this error:

An error has occurred.

Uploading or saving files with .xslt extension is not allowed. Contact your administrator if you have any questions.

How do I deploy xslt files to SSRS 2017?


Branding Issue in SSRS 2017

Getting Error : The full path must be less than 260 characters long... while Deploying SSRS Reports from SSRS 2008 to SSRS 2012

$
0
0

Hi,

From the .Net application when we call the reports that were migrated to SSRS 2012 - getting an error : 

.The full path must be less than 260 characters long; other restrictions apply....so on

What is the issue exactly and How to resolver?

We have changed the URL from our Legacy server to New Server: ONLY SERVER NAME CHANGE
There are 2 reports with a radio button.

Report1               Report2

Preview Button

When any 1 report is selected and Preview Button is selected then it runs fine but without selecting any reportif Preview Button is clicked then error is seen for 260 characters

The .Net code is configured with the below new code but when Preview is clicked with out selecting any reports it fails.

http://s1/Reportserver?%2fA.B.Reports%2f---- new
http://s2/Reportserver?%2fA.B.Reports%2f ----legacy 

Thanks in Advance.

Please share the solution


rg.mahesh2006@gmail.com

How to set the background colour for image in ssrs?

$
0
0
Hi All,
I have a gif image with conditional visibility in my ssrs report, which i kept in seperate textbox which takes the size of image.
I have to set the  background colour for this image.
Can anybody tell how can i set the background colour of the image in ssrs report?
Also one question.?when i put this image in rectangle it doesn't get exported excel?
Bhushan
Viewing all 28687 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>