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

SQL: Update or ISNULL function or CASE or SSRS Expression

$
0
0

Hi guys - I have a scenario below. 

Select letterid, patientid,applicationid, mcpsreceived, letterrequestdatetime from letterrequesthistory

where patientid = 77203
and letterid = 139


I have an expression in SSRS report like this 
=iif(Fields!McpsReceived.Value = "N","x","") -- This means if the MCPSreceived value is N, then it will create cross 'x' symbol. I am using this 'x' for a check box. 
Below is the check box 


When I executed the report for this patient, the report is pickup the patient with value 'X' (applicationID 75397). 
My question is if the same patient has value "N" and "X" on the same Letterrequestdatetime, I want to to show 'x' symbol. Is it something we can create or update an expression ? Or some thing like ISNULL function or case statement in the select query ? 

Thank you


Disable or stop SSRS snapshots

$
0
0

Is there a way to stop generating History snapshots in SSRS reports ?

Union all alternative in fetch xml for getting data from dynamics crm v9.0

$
0
0

Hi Guys,

Hope you're all are doing great. I am trying to convert a union all sql query to fetchxml .

 

Select total_income, name as "Monthly Expenses" from income

Union All 

Select commitment_income, name as  "Commitment Expenses" from income

Union All 

Select disposible_income, name as  "Disposable Expenses" from income

Union All 

Select return_income,  name as "Return Expense" from income

 

The thing is that this query 's data is used in a stacked bar chart. What I've managed to do created three separate data-sets from the queries but from there I don’t know how to merge three data-sets into a single data-set for the chart category groups ,series groups and values sum .

 

Any ideas? Thanks.

Problem with parameter containing alphanumeric values ssrs2012

$
0
0

Hi I have a parameter(text) that contains some alphanumeric values e.g 'A1' amidst other alpha values e.g.'aa', 'Ah'

When report runs using alpha values then data returned when using alphanumeric values no data returned.

The parameter is not multi value.

regards

Problem with Report Caching

$
0
0

1. I have a stored proc that does 3 things:

a. Clears a table

b. inserts data into the table using dynamic SQL, so that I can change parameter choices

c. selects from the table for display

Then I wrote a report to call the proc.

2. If I use a parameter that says show all data where widget = 'N' it will display fine

3. But if I change the parameter setting to widget = 'Y', the displayed data is still from #2.

4. Then, if I simply click "View Report" one more time, I get the correct data.

Is there anything I've said here that is a red flag? It behaves as if it cached the data from the first run,

but it didn't get flushed until I ran the report two times!


Corey Fleig

IE Will not display Print Dialog Box to Print SSRS 2017 Report

$
0
0
IE will not bring up a Print Dialog Box to Print SSRS 2017 Report. Print Dialog Box works properly in Chrome.

“An error occurred during local report processing. Object reference not set to an instance of an object.”

$
0
0

I am using to generate rdlc report on my windows application. I have the one main report and more than 30 sub reports, which will render based on dataset values. Everything is working fine, but some time i got the following error when try to generate the report.

"An error occurred during local report processing. Object reference not set to an instance of an object." This is not all the the times. Sometime i am getting these errors. I can't even figure it out. It would be great if you help to sort it out.

Log file shows, these following kind of errors.

2019-07-23 15:40:28.7647|ERROR|31|ReportServerDatabaseUnavailableException| RequestID = s_f3d17e92-0f8b-458e-bcb7-935b64f6dcca 
2019-07-23 15:40:53.9509|ERROR|31|ReportServerDatabaseUnavailableException| RequestID = s_9a6239fb-ad9c-4868-a964-9945cb0211a0 
2019-07-23 15:41:22.7403|ERROR|30|ReportServerDatabaseUnavailableException| RequestID = s_2537a3e6-5822-41f7-b5dc-394c69f5c374 
2019-07-23 15:41:49.1221|ERROR|30|ReportServerDatabaseUnavailableException| RequestID = s_858edb9b-5c0e-4c31-a666-9d8548cbf259 
2019-07-23 15:41:59.1346|ERROR|30|ReportServerDatabaseUnavailableException| RequestID = s_ecda0f7b-ced8-4757-80c6-4e1540dcd00e 
2019-07-23 15:42:25.1251|ERROR|27|ReportServerDatabaseUnavailableException| RequestID = s_0352387f-756d-494d-ba32-4075d27d4931 
2019-07-23 15:42:35.1383|ERROR|27|ReportServerDatabaseUnavailableException| RequestID = s_a51ea9e5-b670-49c0-bc8d-161dc8969198 

Thanks, Thineshbabu

SSRS 2016 reports are not working in chrome in MAC OS.

$
0
0

Hi Experts,

we have SSRS 2016 reports server and users are unable to open reports in chrome on MAC OS. 

when it is opening ing page not found error is displaying. 

reports are working fine in windows OS.

Thanks 

Raghavendra


Thanks & Regards Raghavendra Petla


Main Report and Subreport solution

$
0
0

Hi All :

I'm learning the report and we have 2 datasets which need add into report

The structure of main dataset :

StudentID , StudentName, Class, Gender

Then we have another dataset (but this dataset ) is not related with main dataset , The structure is

QuestionID, QuestionMsg

Sample Data :

StduentIDStduentNameClassGender
1Peter1AMale
2Katie2AFemale
3Jack3AMale

The sub report dataset data

QuestionIDQuestionMsg
1What is your name ?
2Where do you live ?
3What is your favorite drink ?

And I want the report is :

Student ID : 1

Student Name : Peter

Class : 1A

Question :

1. What is your name ?

2. Where do you live ?

3. What is your favorite drink ?

---- Page Break ------

Student ID : 2

Student Name : Katie

Class : 2A

Question :

1. What is your name ?

2. Where do you live ?

3. What is your favorite drink ?

---- Page Break ------

with 3 pages 

I want to put this two datasets in the same Tablix, but it is not work, I have found  only 2 solutions for this case.

Solutions 1 : Create sub report and bind the datasets in this report. And then the main report add the sub report there.

Problem : It seem this solution require report server, and I cannot add sub report in local directory  (e.g. c:\subreport.rdl) under report builder. 

Solutions 2 :

It can add the table in Tablix, the cell expression using Lookup function or vlookup function

Problem : as above 2 datasets have not relationship, cannot join with any key. Any other expression code which can do ?

Thank you for your help.

Nested SWITCH statements for coloring table rows depends on field value

$
0
0

I'm new in SSRS reports. I have a problem, it drives me crazy for several days.

There is a set of categories and subcategories, like this:

A - categoryA

A - categoryA.A01 - subcat A01

A - categoryA.A01 - subcat A01.A01A - subcat A01A

A - categoryA.A02 - subcat A02

B - categoryB

C - categoryC

D - categoryD

...

I created a report, where each row represents category or subcategory. I need to set unique background color for each row. I've already tried so many combinations of SWITCH and IIF statements, and none of them works like I need.

Considering that category name can change, and each subcategory in its name contains the name of all parent categories separated by a dot, I use Split() and Left() functions to get the code at the beginning of the category or subcategory name, only this code will not change.

This expression works better than others, but not quite as it should. It sets the same color for subcategories of the same level.

=Switch(Left(Fields!Category.Value,1) = "A",
IIF(Split(Fields!Category.Value, ".").length = 1,
"#e4daf3",
IIF(Split(Fields!Category.Value, ".").length = 2,
"#8db4e2",
IIF(Split(Fields!Category.Value, ".").length = 3,
"#ebf1de","#00ff00"))),
Left(Fields!Category.Value,1) = "B", "#fdd9d9",
Left(Fields!Category.Value,1) = "C", "#fcffd4", 
Left(Fields!Category.Value,1) = "D", "#8de2de", 
Left(Fields!Category.Value,1) = "E", "#c6e6fd"
)

I've tried to make this expression better, in so many ways, like this:

=Switch(Left(Fields!Category.Value,1) = "A",
IIF(Split(Fields!Category.Value, ".").length = 1,
"#e4daf3",
IIF(Split(Fields!Category.Value, ".").length = 2 AND Left(Split(Fields!Category.Value, ".")(1),3) = "A01",
"#8db4e2",
IIF(Split(Fields!Category.Value, ".").length = 2 AND Left(Split(Fields!Category.Value, ".")(1),3) = "A02",
"#ff0000",
IIF(Split(Fields!Category.Value, ".").length = 3 AND Left(Split(Fields!Category.Value, ".")(2),4) = "A01A",
"#0000ff","#00ff00")))),
Left(Fields!Category.Value,1) = "B", "#fdd9d9",
Left(Fields!Category.Value,1) = "C", "#fcffd4", 
Left(Fields!Category.Value,1) = "D", "#8de2de", 
Left(Fields!Category.Value,1) = "E", "#c6e6fd"
)

But this expression somehow set background color only to subcategories, root categories are clear, no background at all.

Maybe I didn't see something, or maybe there is some rules that forbid using nested SWITCHes and IIFs. Help me, please.

SSRS - Spacing between lines in single TextBox

$
0
0

I have a flat-file to be load in SSRS report. Which already contains New Line and required spacing. Like the below image:

enter image description here

Want to display same layout and newlines(CRLF) into SSRS. Which works fine If I use

≪Place Holder Property → Markup type = "None - Plain text only"≫

But I want to increase the spacing between Individual new lines. So I tried below expression with the same other properties:

=REPLACE(Fields!Column1.Value, Chr(13), vbCrLf)

But It has increased the space almost double than my expectation. I also tried to convert ≪Place Holder Property≫ into ≪ HTML - Interpret HTML tags as styles ≫, but It has removed normal new lines which exist into flat-file.

I tried many existing solutions over StackOverflow but none of them are matching my requirement.

Could anyone please give it a try!

How to Hide Help Menu in SSRS 2017

$
0
0

Hi All,

is there any way to hide Help ( ? ) menu in SSRS 2017 Report Manager. Please see the screenshot

Thanks in advance.


Aftab Ansari

Update dataset on file change

$
0
0
Hello, 

I'm making use of a CSV file as a datasource within SSRS and after much wrangling have manged to get this working. 

The issue I'm facing now however is that whenever a user makes a change to this CSV file, this change isn't propagated to the version held on the server without going into the Dataset within the web portal, executing it and then re-saving the file. 

I have it set to use the most recent version of the file, but are there any other features I'm missing that would stop this from working? 

SSRS Tooltip value in french

$
0
0

Hi,

I want to display french rupees in tool-tip whether the report language is other than French. Any help would be greatly appreciated

Thanks,


Manisha Chauhan


Switch and IIF not working correctly

$
0
0
 I want to basically do a simple calculation. 
If the the duration is >= 120, then duration - 15 else show duration
If the the duration is >= 180, then duration - 30 else show duration
If the the duration is >= 360, then duration - 101 else show duration

=switch( iif(Fields!CheckOutDuration.Value >= 120, 
 Fields!CheckOutDuration.Value - 15, Fields!CheckOutDuration.Value),
 iif(Fields!CheckOutDuration.Value >= 180, Fields!CheckOutDuration.Value - 
 30, Fields!CheckOutDuration.Value),iif(Fields!CheckOutDuration.Value >= 360, 
 Fields!CheckOutDuration.Value - 101, Fields!CheckOutDuration.Value))


Indicators are not displaying in SSRS 2014

$
0
0

Indicators are not displaying when I deployed the report in report server and access that report using browser. I have checked this in both Internet Explorer and Google Chrome browsers.

Current Version Of SQL SERVER is : SQL Server 2014 (SP1 + Cumulative update package 1 for SQL Server 2014 SP1) has been installed. 

But in development environment (SQL SERVER Data Tools for Visual Studio 2012 ) these indicators are displaying properly using Preview section.

Any Idea? Appreciate for your help.

Many Thanks 

Sorting rows based on expression values in SSRS 2008 R2

$
0
0

Newbie to SSRS here.

I have a report as shown below in the image. Each Expr is a complex custom expression and they return a percentage value. The grouping is Agencies -> States -> National. I need to sort rows in descending order based on the States' overall value i.e. if State 1's overall is 80%, State 2's overall is 85% and State 3's overall is 75% then the rows associated with State 2 should appear at the top, followed by State 1 and lastly State 3.

Any help/pointer with this is highly appreciated.

Thanks in advance.

P.S - The expr in Agency and State overall uses custom code "=Code.GetAgencyOverall" and "=Code.GetStateOverall" because of underlying complex calculations.

http : / / i . stack . imgur . com / U0qum .  png

Series Data label multiple colours

$
0
0

Hello All,

Is it possible to colour the data label text in below graph as per different values.

For ID 281760 , I want blue colour for text with E and Red for text with Q.Basically , I want the it Blue if the value <0 and red if >= 0 . The values for E and Q can be quite different. Thanks much for your help. 



Best Regards, Pragati

Row Header and Column freezing not working in SSRS as expected(SSRS-2017)

$
0
0

Hi All,

Kindly share your thoughts on the feasibility of the below issue.

I have a SSRS report with  tablix created on it and tablix has both row group and column group.
Now I have requirement to freeze row header and first column.
As per my understanding, if tablix has row and column group on it,row header  and column freezing is not possible.

please share your inputs is there any alternative solution available to achieve this functionality.

Thanks and regards

karthi

Report Default value issue when Label is inside Quotes.

$
0
0

Hello All,

In a report which has two parameters defined.

Why the default value for Report Parameter 2 doesn't come , if I have label text insidequotes - "One". If I remove the quotes (One) the default value works.

Works without quotes in Label

ReportParameter1

ReportParameter2 Label - "Two","One"

PS - This is just an example , I have larger reports with multiple parameters which are not getting the default values when wrapped in quotes.


Best Regards, Pragati





Viewing all 28687 articles
Browse latest View live