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

select in sql server

$
0
0

Hi Frds,

I have table with three columns Col1,col2,col3.  I need to retive only the records which are bold in the below table.

Col1                      Col2                     col3

99.00                    101 B                 101

0.00                       101 A                 101

0.00                       102 B                 102

1612.48                 102 A                 102

Thanks,

Ashok


How to make the first letter a capital letter in a string in SSRS (2008)

$
0
0

Hi all,

I'm working on a report at the moment and I want to make the first letter of the last name a capital letter.

Usually this is not a problem, but I work with weird Dutch last names like "van der Ploeg", what I want in my report that it will show "Van der Ploeg". I know how to make all first letters capital letters, but that's not what I want, only the first letter of the string.

Kind Regards and Thanks in advance.

SSRS Data driven Subscriptions

$
0
0

Hi,

I am doing a data driven subscription, (e-mail) . I have  expression(Value) in the report  which  varies depending upon the parameters selected. Can we include a report expression(.value) output in the email body along with the HTML text ? Is this possible?

Any work arounds?

Thanks in advance!


Problem with Default values with a cascading parameter

$
0
0

I am having a problem where a multi-value Cascading parameter box is not "checking off" all of the options after the "parent" parameter refreshes it if the multi-value parameter includes all of the values.  This looks like it may be a bug or something.  I'm not sure if I can explain this well enough, so I tried to create a simple report that demonstrates this issue on a smaller scale.

 

I have a table with the following values

 

ColorName ColorGroup

Blue 1

Red 1

Green 1

Red 2

Green 2

 

Then I create a parameter from this dataset to display the ColorGroup ( 1 or 2 ) in a drop down box:

 

Select DISTINCT ColorGroup

From tblColors

 

Then I create a cascading parameter from the dataset below with the default value set to this query so all results are selected in a multi-value box:

 

Select ColorName

From tblColors

Where ColorGroup=@colorGroup

 

Here are the steps to recreate the report:

 

1.  Select "1" from the first parameter dropdown.  The second parameter is refreshed with Blue, Red, Green - all checked.

2.  Select "2" from the first parameter dropdown.  The second parameter is refreshed with Red, Green - all checked.

3.  Select "1" from the frist parameter dropdown.  The second parameter is refreshed with Blue, Red, Green.  And only Red and Green are checked.

 

Step 3 is where my actual issue is.  It seems that if the previous results include all the results from the next selection, the multi-value will not check any other ones after the refresh.

 

Sorry for the long-winded explanation, but I wanted to give as much detail as possible.  I want my multi-value to allways default to all items checked everytime the first parameter changes.

 

Thank you to anyone who has some time to read this!

 

 

 

 

First(Fields!Department.Value, "ds")

$
0
0

Hello!

In a report, We want to make sure that a heading is displaced based on the parameters selected by the user. This was working so well when a user was not allowed to select multiple values from a drop down list. Now that a user can now choose multiple values we keep getting error(#Error) An attempt to remedies it see us getting just the first value in the parameter drop down list.

The expression is ,"

=

Globals!ReportName&""&" - "&Parameters!Month.Value&""&Parameters!Year.Value&"("&First(Fields!Department.Value,"dsxx")&")"

I know that the key word, "First" is responsible for that. How do we get this sorted to give accurate result set so that all parameters selected are returned in the list?

Thanks for the help

 

Zionlite

SSRS - Reportbuilder Lookup formel i graph disapear after deploy

$
0
0

SSRS - Reportbuilder Lookup formula in graph disappear after deploy

We have a report with lookup formula so work fin in VS and ReportBuilder.

When we PreView in VS or ReportBuilder it work fin. The formula we using both in graph and in a table. But after we deploy it to SharePoint Integrated and Native the graph line diaper where we created by a expression. It work fin in a table.

We run at SQL server 2012 SP1 CU5.

Can anyone help  

Why google chrome not displayed reports when i published the report into test server in SSRS

$
0
0

Hi,

I Am using SQL Server 2008 R2 ,I deployed my reports into development server.

Here in google chrome showed blank pages,

Next i followed below link,and I changes in Development Server

http://stackoverflow.com/questions/5428017/cannot-view-ssrs-2008-r2-ssrs-2012-reports-in-safari-chrome-but-works-fine-inits working greatly.

My Problem is,

Next i configured reports to ASP.Net application and published into test server,

When i opened that link my pc i won't see the reports in Google chrome.

When i see the reports in google chrome its opened blankly,other browsers are working good like IE,Fireox

Why its not opened reports in google chrome in this scenario?

can anyone tell me the reason its urgent?


Formatting issue of SSRS report -Urgent Help required

$
0
0

I have a requirement for my SSRS Table report which states the following:

In the Planned GoLive column, highlight the dates with orange colour if report execution date (or current date) is ≥ 7 days past Planned GoLive date

 Example :  If Planned GoLive Date is Nov 05, 2013 and we execute the report today, it should be highlighted in Orange.

Could you please help me with the SSRS expression for this scenario .

Thanks

Ajit


SSRS 2008 r2 use 2 iif statements

$
0
0

When I want to hide the heading in an SSRS 2008 R2 report, I will also want to set the location of the tablix  to 0,0.

Thus can you tell me or show me in code how to accomplish the following two tasks: 1. User want to hide header values? Place this is a parameter value? 2. In the same iif group of statement(s): a. hide the headers of the report, b. set the location of the tablix to 0,0.

 

Financial Company Case Studies - SSRS - Where

$
0
0

I'm simply trying to find some case studies for Financial Companies who are using SSRS for Business Intelligence purposes....ideally a large banking organisation?
Any ideas...thanks :-)
Having looked at the MS case studies it appears to be missing this sort of company...
(There is one on the Bank of Montreal, but this doesn't mention SSRS)

Drill through in Report Viewer problem

$
0
0

Existing web content has a report with drill through's to another report.

I made a change to the drill through target report, so that it now requires additional parameters.  I also made changes so that the drilling report passes them.

However, when I click the link to drill through, my report viewer vanishes.  I haven't been able to find an actual error or exception, however.

My gut tells me its a simple mistake, but since I cannot seem to find an actual error happening at this point, I'm not sure.  The drill through event in the code behind seems to execute w/o issue, and is unchanged from the previous working version.

Is there a particular class of problem that results in this sort of behavior.. no error, but the report viewer vanishes?

Anyways, at this point, the web application looks OK (minus the missing report viewer) but is in a broken state, where whatever I do next results in an error, and whatever I do next, I get this error (which I suspect is only a side effect, and not a root cause of my problem.)

Message : Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request. For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request.

Day of month order problem - Column consisting of month days

$
0
0
Hello!

I have a small issue with my matrix..

I have a column, Day of Month, that shows all days in a month that has values.
E.g. May in my case shows 2, 3, 6, ...13,14,15,30,10

As you see day of month 10 is not ordered as supposed to

Any suggestions to why it's like that?

Report builder output grouping - fill all cells but not include duplicates SQL2005 Report Builder v9

$
0
0

Hello, I have a database with parent child relationships. I am looking to re-filter a dataset exported to excel. Report Builder groups the output; example in the view below. Is it possible to get report builder to render the lower example?

Grouping the columns together rendors duplicates.

Item    Number       Type    Date           2ndItem   Number       Type                       3rdItem Type
Apple   ME306LL/A  Multi    10/1/2013   AKM         K8963         Electronic Compass  
                                                          Apple        338S1201   Audio CODEC  
                                                                          338S1202   Audio CODEC  
                                                                          338S1216   Power Management IC  
                                                                          ME306LLA   Display Screen  
     
What I want to get:        
        
Item       Number        Type        Date            2ndItem   Number     Type 3rdItem Type
Apple      ME306LL/A    Multi      10/1/2013     AKM        AK8963      Electronic Compass  
Apple      ME306LL/A    Multi      10/1/2013     Apple      338S1201   Audio CODEC  
Apple      ME306LL/A    Multi      10/1/2013     Apple      338S1202   Audio CODEC  
Apple      ME306LL/A    Multi      10/1/2013     Apple      338S1216   Power Management IC  
Apple      ME306LL/A    Multi      10/1/2013     Apple      ME306LLA   Display Screen  

Thanks in advance, Shawn

Specify Gradient Range

$
0
0

Hello,

I am using SQL Server Reporting Services 2008 R2. I use Visual Studio 2008 to develop my reports.

I have a report that contains a Line Chart. The Y-axis of the chart has a range of 0 up to 100. While in design view of the report, if I go to the chart and right-click directly above the X-axis and directly right of the Y-axis, the shortcut menu will allow me to click on Chart Area Properties. After the dialog box appears, I clickFill in the left pane. Now I can set background fill options. I go toFill Style and choose Gradient, I set the primary color toAutomatic, the secondary color to Red, and theGradient Style to TopBottom (in my case the Automatic [or default] color is white).

When saving my settings and previewing the report, the chart is filled with solid red starting at 0 (on the Y-axis) and as it goes up toward 100, the red begins to fade, until everything is white by the time it reaches 100. All this is expected behavior.

What I would like to be able to do is to limit the gradient range between 0 and 20. I want the solid red, which starts at 0, to begin to fade so that by the time it gets to 20, the red is completely gone, and everything from 20 to 100 is the automatic white color.

I was thinking that if I go back to the Chart Area Properties dialog box, and specifically, the Gradient Style dropdown list, I should be able to enter some kind of expression that would control the range of the gradient. I have tried creating a couple of different expressions, but have had no success. Does anyone know how I can do this?

Thank you


John

Sub-groupings of a value

$
0
0

I have a fairly simple Matrix for a largish database of Workorders. Workorders have different types (WoType), but I need to display only PM, and RM, and all the others should be combined and labelled "Other."  

Is there a way to do this in the Matrix? I am using a Shared Dataset, and would rather not make it all messy by fiddling with the Query at the Dataset level.

Thanks, jay


Distinguishing Subreport Execution in the ExecutionLog* Views

$
0
0

I am currently trying to troubleshoot an situation in which a report is failing sporadically when run as a subreport, but consistently executes reliably when run individually (both runs are done under similar data-driven subscriptions and are run ~2600 times.) My suspicion is an execution timeout of some nature, but that isn't my current question.

While I may be back for the core problem later, at the moment I am trying to distinguish the execution of these reports in the ExecutionLog* views between the subreport execution and the individual runs. Is there any straightforward way to do this? At the first blush, I am not finding anything really indicative.


Andrew Raymond Sr. Software Engineer, Mitchell 1 MCAD .NET

Sequencing subscriptions in SQL Server Reporting services.

$
0
0

Hey Guys,

Currently we have a requirement such that we need to send out multiple reports to multiple clients as an end of day process. Now these reports are totally different from each other but run off the same db. As of yesterday, i created a bunch of subscriptions with each of them being triggered by "timed subscription" which uses a common schedule. Ideally we would want these reports to go out in a sequence. 

However, last night i noticed that these are fired at once causing locks. I had to manually kill a bunch of sessions to get things going. Scheduling them at predefined time is very difficult and unreliable.Is there a way for me to sequence them so that this parallel firing doesn't occur? 

Thanks

Srikanth

Arbitrary groupings of rows

$
0
0

I have Community Codes that are AlphaNumeric that I wish to group into Regions (e.g. 100, 101, 102, 106 in region "SS", 105, 107, 110 in region "NS", and others.) I tried using Row Group | Group Properties, Group On Expression 

  =iif(Fields!Location.Value in ("100","101","102","106"),"SS","OTHER")

I received the error message, in part,

  Argument not specified for parameter 'TruePart' of 'Public Function IIF(Expression As Boolean, TruePart As Object, FalsePart As Object'.

I don't see how "SS" is not a valid option for TruePart of the IIF expression. Can someone help me out?

Thanks, j

Report Manager & SSRS service on different machines - Native mode - SSRS 2012

$
0
0

Hi,

in order to prepare a SSRS 2012 installation in native mode, is it possible to put the SSRS Report Manager (web service) on a different machine respect to machine that hosts the SSRS service.

Thanks

Please help with dynamic pivot query/ CTE/ SSRS

$
0
0
Hi there,

I'm developing a SSRS report in VS2010 and trying to come up with the following outcome.

Data1Data2Data3Data4200420052013
 .. .. .. .. .. .....  ..

Data 1 through 4 are coming from several CTE joins. The years data (2004 through 2013) supposed to be the most recent 10 years sum of data. I built the years sum data with a static pivot query and joined to my other CTEs via the unique record ID and this report calls one big view that consist of several CTEs and it works fine. As a stated before the years data should have been the most recent 10 years and it is static currrently in my report. In other words, I need to change my report next year to reflect the most recent 10 years. I tried to build a dynamic pivot query to replace the static pivot query, however, I couldn't join my dynamic pivot query to my main CTE because the dynamic pivot query declares temp table etc. and I couldn't find a way to join it my main data source. What would be the right approach to build this report?

Any help is appreciated.

Thank you,

Alimda




====================================================================


Current report query is similar to this:

CTE_Records
(
...
),

CTE_Record_Details
(
...
),

CTE_Pivot --Static Pivot for the most recent 10 years of data
(
...
)

SELECT
...
FROM CTE_Records
JOINS... CTE_Record_Details
JOINS... CTE_Pivot


=====================================================================


I was able to create a dynamic pivot table via this query, but I can't join this to my main query above.

DECLARE @T AS TABLE(y INT NOT NULL PRIMARY KEY);

DECLARE
@cols AS NVARCHAR(MAX),
@y    AS INT,
@sql  AS NVARCHAR(MAX);

-- Construct the column list for the IN clause
-- e.g., [2002],[2003],[2004]
SET @cols = STUFF(
(SELECT N',' + QUOTENAME(y) AS [text()]
FROM
(
SELECT ...
FROM ...

) AS Y
ORDER BY y
FOR XML PATH('')),
1, 1, N'');

-- Construct the full T-SQL statement
-- and execute dynamically
SET @sql = N'SELECT *
FROM
(
SELECT ...
FROM ...

) AS D
PIVOT(SUM(Amount) FOR [year] IN(' + @cols + N')) AS P;';

EXEC sp_executesql @sql;
Viewing all 10045 articles
Browse latest View live


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