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

Power View Drill Up Missing

$
0
0

I have Power View that contains multiple charts in one view. They all have drill down options. When I drill down through one of the charts, sometimes the drill up, filter, and expand buttons go away. When they do, it's from all the charts. I can't seem to get them to come back. I end up having to close the document and reopening it back up. Is there something I can do to prevent this from happening?

Thanks,

Lerina


SSRS 2005: Adding Input Mask to Parameters

$
0
0

Is there a way to add input mask funtion to the report parameters?  I have a date paramater that I need to display as "(mm/dd/yyy)".  But I want the back slackes ("/") to automatically display as the user types in the date.  Works fine if the user selects a date from the calendar control.

Display top first row in SSRS

$
0
0
I would like to display just the top first; my report seems to hang when I use the TOP 1 in my query.  but query works fine in SSMS using the select top 1 ... I even use order by column at the end and I still get the same results (NO RESULTS)

Trying to return query dynamically if parameter value is not null and null

$
0
0

Hi,

I wrote a custom code like this....

Public Shared Function GETSQL(ByVal month as Date, ByVal year as Date, ByVal partyCode as Integer)
Dim sql1 As String
Dim sql2 As String
Dim sql3 As String
Dim sql4 As String
If (IsNothing(partyCode)) Then
sql1 = " select " & vbCrLf
sql3 = " where " & vbCrLf
sql3 = sql3 & " Month(SaleHDR.Date)=month " & vbCrLf
sql3 = sql3 & " and year(SaleHDR.Date)=year " & vbCrLf
sql4 = " GROUP BY Month(SaleHDR.Date), " & vbCrLf
sql4 = sql4 & " YEAR(SaleHDR.Date), " & vbCrLf
sql4 = sql4 & " DAY(SaleHDR.Date), " & vbCrLf
sql4 = sql4 & " ProductGroup.ProductGroupCode " & vbCrLf
Else
sql1 = " select " & vbCrLf
sql3 = " where " & vbCrLf
sql3 = sql3 & " Month(SaleHDR.Date)=month " & vbCrLf
sql3 = sql3 & " and year(SaleHDR.Date)=year " & vbCrLf
sql3 = sql3 & " and Party.PartyCode=partyCode " & vbCrLf
sql4 = " GROUP BY Month(SaleHDR.Date), " & vbCrLf
sql4 = sql4 & " YEAR(SaleHDR.Date), " & vbCrLf
sql4 = sql4 & " DAY(SaleHDR.Date), " & vbCrLf
sql4 = sql4 & " ProductGroup.ProductGroupCode " & vbCrLf
End If
sql2 = " Month(SaleHDR.Date) as Month, " & vbCrLf
sql2 = sql2 & " YEAR(SaleHDR.Date)as Year, " & vbCrLf
sql2 = sql2 & " DAY(SaleHDR.Date) as Day, " & vbCrLf
sql2 = sql2 & " ProductGroup.ProductGroupCode, " & vbCrLf
sql2 = sql2 & " SUM(ISNULL(SaleDTL.ProductRate,0)*isnull(SaleDTL.ProductQuantity,0)) as SalesAmount " & vbCrLf
sql2 = sql2 & " from " & vbCrLf
sql2 = sql2 & "  SaleDTL " & vbCrLf
sql2 = sql2 & "  inner Join " & vbCrLf
sql2 = sql2 & " SaleHDR " & vbCrLf
sql2 = sql2 & "  ON SaleDTL.Id = SaleHDR.id " & vbCrLf
sql2 = sql2 & "  inner Join " & vbCrLf
sql2 = sql2 & "  ProductMaster " & vbCrLf
sql2 = sql2 & "  ON SaleDTL.ProductId = ProductMaster.ProductID " & vbCrLf
sql2 = sql2 & "  inner Join" & vbCrLf
sql2 = sql2 & "  ProductGroup " & vbCrLf
sql2 = sql2 & "  ON ProductMaster.ProductGroupId = ProductGroup.ProductGroupID " & vbCrLf
sql2 = sql2 & "  inner Join " & vbCrLf
sql2 = sql2 & "  Party " & vbCrLf
sql2 = sql2 & "  ON SaleHDR.PartyId = Party.PartyID " & vbCrLf
GETSQL = sql1 & sql2 & sql3 & sql4
End Function

to use in my project report. I'm just trying to combine two reports(first one without partycode condition, second with a party code condition) into one report by using above custom code.

then i use this as a query expression in a dataset: Code.GETSQL(Parameters!Month.Value,Parameters!Year.Value,Parameters!PartyCode.Value)

but when i try to preview the report i'm getting a error saying:

Cannot set the command text for dataset 'DataSet1'

Error during processing of the command text expression of dataset 'DataSet1'.

Can anyone help me here Please!!!

Very much appreciated if anyone can guide me if there is a other way around.

Thank you!!


Expression to convert 8 characters to date

$
0
0

Hi all,

Is it possible to use SSRS expression to convert 8 characters to date?

I have the date in the following format 20150402 and I would like to convert it to date dd/MM/yyyy format.

I appreciate any help.

Thanks in advance.

values are not showing at correct percent in chart

$
0
0

Hello experts,

I have created one report as x- axis month and y- axis percent.

I have a value of 100% in all the months but in chart it is showing 100% at 1% position. attached is the screenshot.

could you please suggest me on this.

thanks in advance.

Thanks & Regards,

prasad


prasad

Retrieve data from SQL Database through Assembly

$
0
0

Hi all,

I wrote a Custom Assembly to retrieve data from a SQL Database to use in my report.

I am getting the error:

“Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.”

I already placed additional CodeGroup elements in my .config files (Using Reporting Services Security Policy Files: http://msdn.microsoft.com/en-us/library/ms152828.aspx), but the error still occurs.

What do I have to do to get the data?

Thanks,

Nic03

SQL Server 2014 Developer / Microsoft Visual Studio Premium 2013 / .NET Framework 3.5 (.dll)

Imports System.Data
Imports System.Data.SqlClient

Public Class Class1
    Public Shared Function MyFunction(ByVal inputVariable As String) As String
        Dim outputValue As String
        Dim MyConnection As SqlConnection
        outputValue = ""
        MyConnection = New SqlConnection("server=localhost;trusted_connection=yes;database=MyDatabase")
        Dim cmd As New SqlCommand
        cmd.Connection = MyConnection
        Try
            cmd.Connection.Open()
            cmd.CommandText = "SELECT [Value] FROM [MyDatabase].[dbo].[MyElement] WHERE [Label] = @Variable"
            cmd.Parameters.Add(New SqlClient.SqlParameter("@Variable", SqlDbType.VarChar, 50, ParameterDirection.Input))
            cmd.Parameters("@Variable").Value = inputVariable
            outputValue = cmd.ExecuteScalar()
            cmd.Connection.Close()
        Catch ex As Exception
            outputValue = ex.Message
        End Try
        Return outputValue
    End Function
End Class

Report is being generated but nothing show

$
0
0

Hi, there was no error in the data tool, I can run and see the expected results in the tool but nothing shows in the reporting server.

SSRS


surface charts?

$
0
0
i see there are no surface charts for SSRS 2008... is there any way to implement them using existing or free components?
Javier Guillen

Unable to access Report Server

$
0
0

Setting up SQL 2012 Reporting Services for the first time.

Windows 2012 Server

SQL 2012

Using the Reporting Services Configuration Manager, accepted the default setting to use the local server.  There are no other sites on this server (none configured via IIS).  Using port 80 (URL=http://katvcen01:80/ReportServer), but when I click the link shown in Config Mgr, Internet Explorer prompts with this message:  "Your current security settings do not allow this file to be downloaded.".


Why does it think I'm trying to download a file instead of opening a site?  I know Reporting Services is now disconnected from IIS, but I sure like the ability to have more control using IIS.


I'm using a domain-level service account.


Also, when I try to deploy a reporting services report to this same URL I get this message:  Could not connect to the report serverhttp://katvcen01/ReportServer.  Verify that the TargetServerURL is valid and that you have the correct permissions to connect to the server:  The request failed with HTTP status 400: Bad Request.


Any help would be appreciated.


Ross

MC (marque de commerce) Trademark

$
0
0

Hi,

I need to create <sup style="font-family:inherit;font-style:inherit;font-variant:inherit;font-weight:inherit;">MC</sup> (marque de commerce) in SSRS report. There is no Unicode for superscript Capital C. SSRS report does not support <sup> html tag.

o   There is no Superscript Unicode character for C (capital c)

a)      superscript Latin lowercase alphabet except q ( ᵃ ᵇ ᶜ ᵈ ᵉ ᶠ ᵍ ʰ ʲ ᵏ ˡ ᵐ ⁿ ᵒ ᵖ ʳ ˢ ᵗ ᵘ ᵛ ʷ ˣ ʸ ᶻ ),

b)      a limited uppercase Latin alphabet ( ᴬ ᴮ ᴰ ᴱ ᴳ ᴴ ᴵ ᴶ ᴷ ᴸ ᴹ ᴺ ᴼ ᴾ ᴿ ᵀ ᵁ ⱽ ᵂ )

Converting an Access IIf statement

$
0
0

Died in Hospital: IIf([dbo_IP_ADMISSION].[DateOfDeath] Is Null,"N","Y")

Hi again, a very simple statement above returns a N if the field is blank and a Y if it's not. What would be the code, I'm again assuming this will be a simple CASE statement?? Maybe wrong.

Not getting desired report output with subreports

$
0
0

I am designing SSRS 2005 report which has four subreports within a main report. The report has a group header containing  "name"  dataset field .Each subreport is grouped on the same "name" field.This name field is also one of the column for the dataset of each subreport.

A rough format of the report is as shown below(For each name field of the main report dataset we have four sub reports)

I tried adding header with image as a group header of a table and subreports as table rows with all rows grouped by name field but i am getting the same data in each report. Can someone please guide me how to go about to get the desired output.

SSRS: How to calculate percentage of some values?

$
0
0

Hi All,

I have a dataset which contains Area and EmpId. I need a report like below.

Area    EmployeeCount      %

India    8                         30.77

Japan   13                       50

Korea    5                        19.23

Total     26                       100

I need the total count of employees in each area and the at the last line I need the total count of employees from all the Area. The next field is calculating the %. That is finding the percentage of each row 8/26,13/26 and 5/26. I have created a row group for EmployeeId, So I am able to find the Employee count. Also, included "Add total" , that is giving the total of EmployeeCount. But, How can I find % and its total?

Regards,

Julie

Hide/Show table based on parameter selection!!!???

$
0
0

I'd like to hide/show a table based on selected parameters. In the current setup I have a matrix and two tables underneath that need to be displayed from time to time. First of I use a multi-value parameter called "Lieferart". Depending on the parameter I have set the visibility of the two tables with the following expression:

 

=iif(Parameters!lieferart.Value(0)

like"Nagel%", False, True)

 

This expression doesn't work though, any ideas??? I am also unsure about what I have to do If multiple values from the parameter list are selected as Parameters!lieferart.value(0) doesn't necessarily need to have a label like "Nagel" included...

 

 


SSRS Using Sum and

$
0
0

Hi,

Still getting to grips with SSRS so any help would be appreciated.

My aim is to calculate a conditional field using the SSRS expression feature, the datasource is a shared dataset which i can't alter so i can't just go an alter the SQL query or anything.

In SQL my query would be like this: SELECT COUNT(TotalHours) FROM TableName WHERE TotalHours <= 24

Is there anyway to combined the Iff and Sum operator's to get a result like the above?

At present all i managed to come up with is the below but obviously it's not returning the correct amount.

=IIf(Fields!TotalHours.Value <= "24", Sum(Fields!TotalHours.Value), 0 )

Please help!

Edit: Please note that i'm not trying to sum a field based on a condition that relates to another column, i just need a sum of 'TotalHours' that are less than or equal to 24, please also note there is another field called category, each category needs a sum of the above.

Regards,

Marcus


Plain_Clueless



Deploy Report Model on Server without SQL Server 2008 BIDS

$
0
0

Hi,

I have developed a report model in BIDS Sql Server 2008 as per requirement but its need to be deployed on WindowsServer2008 R2 which have SQL Server 2012 installed so I can't open that report model solution there for deployment when I tried the conversion wizard starts which corrupts the solution because Report Model are not supported in SQL Server Data Tools.

Therefore I have tried the workaround as per link below; to copy the XML code data source and paste it in the bottom of XML code of Report Model so I can upload the smdl file but its not letting me doing this and complains about the table/views I have used in Model are missing.

https://social.technet.microsoft.com/Forums/sqlserver/en-US/3eccb01f-71c8-4aa6-9716-ee695bdb7422/report-model-to-have-multiple-data-sources?forum=sqlreportingservices

Can someone please advise how I can deploy this report model on the server which doesn't have SQL Server 2008 installed?

Thanks,

Retrieve data source connection string from reportserver.dbo.DataSource

$
0
0
I would like to retrieve the connection string (and credentials) for each of my data sources (without having to click on each individual item). The DataSource table has a column called ConnectionString, but the data type is image, which cannot be converted to varchar. Does anyone have any ideas of how to pull this information from the database?

I have tried converting to binary/varbinary, and then converting to varchar, but I get garbage back.

Note: I am currently using SSRS 2005

Thanks,
Marianne

Aggregating Group Values Outside of group

$
0
0

Hi, is this possible?

Basically, I'm trying to show aggregates for a column, by group, on rows that are outside the scope of the group. I'm able to add the total for each group at the end of the group, but I want the totals for each groups at the end of the report instead.

thanks!


Leroy G. Brown

How can i use order by within Cascading

$
0
0

Hi All:

I am having problem of Cascading and order by, i need to bind the 2nd parameter to the 1st parameter and i am trying to tidy up the 2nd parameter when it shows up. Therefore i need an order by like the code below, but it is not allowed.

Looking forward to your great answers. Thanks in advance. (also i have updated the screenshot there)

 

 

PROCEDURE[dbo].[CascadingPriceHotelNameBrandName]

(

@BName VARCHAR(50))

AS

BEGIN

SET

NOCOUNTON(

SELECT

AName from[dbo].[xxxList]

WHERE

Bname =@BName

Order by .... (THIS IS ACTUALLY NOT ALOOWED)

)

END




Viewing all 10045 articles
Browse latest View live


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