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

SSRS 2012 - Groups in Report Manager aren't present when exported to Excel

$
0
0

Hi all, hope somebody can help with this issue, as I cant seem to find any other posts about it

I have a report in SSRS2012. It was copied from SSRS2005 quite recently, as we have upgraded. The SQL developer said that it didn't need any code changes, as he had some kind of tool to test code problems between the two versions.

The report has a table, with 5 row groups, and one detail row. The table is setup as follows:

Name                                         Sales          Costs       Profit
Group1                                     
   Group2
      Group3
         Group4
            Group5
               DetailsRow

When I run this report using the Report Manager website from SSRS2005, and then export to Excel 2013, I get the 6 row groups in Excel, no problem whatsoever. I can drill into each group in Excel, using the group drilldown column on the left hand side. This works the same as the Report Manager website.

If I run the exact same report from the Report Manager website in SSRS2012, the Report Manager result is the same as SSRS2005 - all the row groups are present, and the drilldown works fine. However, the export to Excel has issues with the groups. There are only 3 row groups showing in Excel, along with a column group added for no apparent reason. Drilling into each group shows inconsistent details, and there is no apparent logic as to what is shown within each group.

Hopefully, someone has seen this issue before, and can help, because I have no idea what to do, having spent a couple of days trying to figure it out. I should also mention, that this issue with groups is seen on all my reports which have groups, not just this report

Thanks for any and all help
Naz


Printing reports with Microsoft Edge (Windows 10)

$
0
0

Hi

I can't print reports using Microsoft Edge from Windows 10

With IE 11 Works fine.

I've tried regsvr32 with rsclientprint64.dll but it's not working.

Any ideas ?


Sorin Sandu

How to restrain a sum on two scopes

$
0
0

Hello,

I've a report with two categories in line (salesperson and type of item) and one category in column (year)

I wish to show for each salesperson and year by year the percentage of each type of item

20142015
SalesP 1Prd1100034%50050%
SalesP 1Prd2200066%50050%
SalesP 2Prd1250100%250100%

To get the sum of the amount for a sales, I use 

 Sum(Fields!Sum_Amount.Value,"Salespers")   witch does not work beacause it returns the sum of all the salespers (here 2000+1000+500+500). I would like to divide the amount of 2014 of each salesP with the sum of the year.

Can you help me ?

Thanks a lot

Chris

I tried also Sum( Sum(Fields!Sum_Amount.Value,"Salespers") ,"Year")
It should be a good idea but the system don't want to mix both dimensions

It's a little bit boring...

I don't imagine that it is useless to know, year by year, what percentage of products is sold by any salespersonn.


Phone number formatting

$
0
0

 

If I have a string of 10 numbers (with no other characters), what is the best way to format them into a standard phone format: xxx-xxx-xxxx?

 

I tried numerous variations in the format code and edit expression areas, but no luck.

WHERE condition question

$
0
0

Hi all

Hopefully this explanation of my requests comes across ok as I am struggling to use the correct term.

Basically I would like to restrict the results of my query to only show results where ClientId and JobClientId are not the same, is this possible?

I was thinking of something like this in the WHERE query

Practice.ibvSalesByJob.ClientId != N'Practice.ibvSalesByJob.JobClientId'

However this doesn't work

Any help/advice appreciated



Cheers Chris

Unable to add SSRS field values

$
0
0

I am having SQL query which has inner join table from another Database. The below highlighted query shows its values.

/*Trend and Capacity Report*/
SELECT MEA.DisplayName AS Cloud, MEB.DisplayName AS VM, OS.PropertyValue AS OS, CONVERT(varchar(17),PD.DateTime,113) AS Date, 
VM3.VirtualCPUCount AS VCPU
FROM Perf.vPerfDaily AS PD

INNER JOIN vPerformanceRuleInstance AS PRI ON PD.PerformanceRuleInstanceRowId = PRI.PerformanceRuleInstanceRowId
INNER JOIN vPerformanceRule AS PR ON PRI.RuleRowId = PR.RuleRowId 
INNER JOIN vManagedEntity AS MEB ON PD.ManagedEntityRowId = MEB.ManagedEntityRowId
INNER JOIN vRelationship AS RS ON RS.TargetManagedEntityRowId = MEB.ManagedEntityRowId
INNER JOIN vManagedEntity AS MEA ON RS.SourceManagedEntityRowId = MEA.ManagedEntityRowId
INNER JOIN vManagedEntityProperty AS MEP ON MEB.ManagedEntityRowId = MEP.ManagedEntityRowId
INNER JOIN (SELECT MEPS.PropertyValue, MEPS.ManagedEntityRowId  FROM vManagedEntityPropertySet AS MEPS WHERE MEPS.PropertyGuid = '01A6E2A5-D7A4-CF13-0D4D-360BD40747F4') OS on OS.ManagedEntityRowId = MEB.ManagedEntityRowId
INNER JOIN (SELECT VM1.ID, VM2.Name, VM1.VirtualCPUCount, from [server_name\scvmmdb].[VirtualManagerDB].[dbo].[tbl_Cloud_CloudCapacity] AS VM1 INNER JOIN [server_name\scvmmdb].[VirtualManagerDB].[dbo].[tbl_Cloud_Cloud] AS VM2 on VM1.ID = VM2.CapacitySettingsID) VM3 ON VM3.Name = MEA.DisplayName
WHERE(PR.ObjectName = 'VirtualMachine') AND
(MEA.FullName LIKE 'Microsoft.SystemCenter.VirtualMachineManager.2012.PrivateCloud%') AND
(MEA.DisplayName IN ('cloud1','cloud2','cloud3','cloud4'))
GROUP BY MEA.DisplayName, PD.DateTime, MEB.DisplayName, OS.PropertyValue, VM3.VirtualCPUCount, VM3.Memory, VM3.Storage
ORDER BY MEA.DisplayName, PD.DateTime, MEB.DisplayName

My request is to calculate total capacity of all available Virtual CPUs, Memory and Storage from 4 separate clouds:  'cloud1','cloud2','cloud3','cloud4'

Whenever I select =Sum(Fields!VCPU.Value) expression in Report Properties and assign it to a variable and assign that variable to a Text Box field I get the value as VCPU * (Number of VMs)which is not correct.

I am looking to get the value of VCPU from all 4 clouds above.

Please suggest...

Overall sum for each user when using union all to join two datasets

$
0
0

Hi 

Struggling to come up with an overall sum for each individual user when using the below code

SELECT
  Practice.ibvStaffCategorisation.StaffId
  ,Practice.ibvStaffTotalsCL2Y.Period
  ,SUM(Practice.ibvStaffTotalsCL2Y.ChargeableMinutes) AS Sum_ChargeableMinutes
  ,SUM(Practice.ibvStaffTotalsCL2Y.NonChargeableMinutes) AS Sum_NonChargeableMinutes
  ,SUM(Practice.ibvStaffTotalsCL2Y.ChargeableAmount) AS Sum_ChargeableAmount
  ,SUM(Practice.ibvStaffTotalsCL2Y.NonChargeableAmount) AS Sum_NonChargeableAmount
FROM
  Practice.ibvStaffCategorisation
  INNER JOIN Practice.ibvStaffTotalsCL2Y
    ON Practice.ibvStaffCategorisation.StaffInternalId = Practice.ibvStaffTotalsCL2Y.StaffInternalId
WHERE
 Practice.ibvStaffCategorisation.StaffId IN (@ABSStaff)
  AND Practice.ibvStaffTotalsCL2Y.[Year] = @YearR
  AND Practice.ibvStaffTotalsCL2Y.Period >= @PeriodR
GROUP BY
  Practice.ibvStaffCategorisation.StaffId
  ,Practice.ibvStaffTotalsCL2Y.Period
ORDER BY
  Practice.ibvStaffCategorisation.StaffId Asc
union all
SELECT
  Practice.ibvStaffCategorisation.StaffId
  ,Practice.ibvStaffTotalsCL2Y.Period
  ,SUM(Practice.ibvStaffTotalsCL2Y.ChargeableMinutes) AS Sum_ChargeableMinutes
  ,SUM(Practice.ibvStaffTotalsCL2Y.NonChargeableMinutes) AS Sum_NonChargeableMinutes
  ,SUM(Practice.ibvStaffTotalsCL2Y.ChargeableAmount) AS Sum_ChargeableAmount
  ,SUM(Practice.ibvStaffTotalsCL2Y.NonChargeableAmount) AS Sum_NonChargeableAmount
FROM
  Practice.ibvStaffCategorisation
  INNER JOIN Practice.ibvStaffTotalsCL2Y
    ON Practice.ibvStaffCategorisation.StaffInternalId = Practice.ibvStaffTotalsCL2Y.StaffInternalId
WHERE
 Practice.ibvStaffCategorisation.StaffId IN (@ABSStaff)
  AND Practice.ibvStaffTotalsCL2Y.[Year] = @Year
  AND Practice.ibvStaffTotalsCL2Y.Period <= @Period
GROUP BY
  Practice.ibvStaffCategorisation.StaffId
  ,Practice.ibvStaffTotalsCL2Y.Period
ORDER BY
  Practice.ibvStaffCategorisation.StaffId Asc

As I am using union all it shows two values for each user, the problem is I am getting the data via lookup like below

=Lookup(Fields!StaffId.Value, Fields!StaffId.Value, Fields!Sum_ChargeableAmount.Value, "ABSTimeRollingY")

I don't think I can use a Sum within a lookup so at the moment it is only bringing through the first value for each user but I would like it to bring through both.

Is there a way to do this within the dataset or via the query in the table?

Any help/advice appreciated.

Cheers



Cheers Chris

Save parameter value for later use

$
0
0

Hello,

is it possible to save a report parameter somewhere in the report to use it for subsequent refresh or report runs of the same report?

I have a value that is dynamically calculated. The report is called from Microsoft Dynamics CRM. When calling the report from CRM first time the report shows the correct data. But when I want to show detail data by clicking on a bar in a bar chart the report lost its CRM context and shows the wrong data in the whole report (from completely different account).

On strategy against this could be to save the parameter (id of the account from who I select the data) in a "parameter" for later use.

Is this and how is this possible, or is there any other way to accomplish this.

Thank you

Regards

Rolf


SSRS Reports to be Displayed in New UI based web page

$
0
0

Hi all...

i have one requirement.

we have one application in banking and they have developer that application using c# and .Net code

so For Business Users--when they enter their details and when they want to check Reports--it should take to a another UI or web page where Users will see all the reports--- and clicking the report he/she should be get able to export it into different formats..

i know that we can give report manager URL--but due to various issues-- we have choosen to built a web[age where they can see the reports

work-flow:

so--user opens bank site--enters his details-goes into reports--it should open new webpage or UI, he should see all reports--he should export these reports..

after that based upon security levels each user can see their individual reports.

-------------------------


please give me some suggestions how to code this in .NET or in C#.

Thanks in Advance.

Create report with custom font

$
0
0

Hello all,

I need a report to be created with Gujarati Font (Gujarati is language of Gujarat state of India )

see the test format for the reference.

Please help how to achieve this ..


Dilip Patil..

SQL Query group by every month

$
0
0

I would like to generate the report for finance office to pay the salary for each staff.

I have some mass data in SQL server

STAFFCODE    TIME                TYPE
101       31/1/1900 09:00:00      IN
101       1/2/1900 03:02:00      OUT
102       31/1/1900 09:00:00      IN
102       31/1/1900 19:23:00     OUT

I would like to calculate each staff each month working minutes.

MONTH       STAFFCODE    WORKING_MINS
JAN/1900       101            900
JAN/1900       102            623
FEB/1900       101            182

SSRS word cloud with drill down to linked report

$
0
0
I have created a word cloud in SSRS 2008 using Jason Thomas's method but I would like to be able to add an action to click on a word to go to a another report using either the word or an ID integer. I have seen the question and response asking for help to link to a URL but I am not able to adapt the code to provide the link to a report rather than to a url. Is anyone able to help me work out how to add an action to go to another report? Much thanks in advance, Sally

some portion of the charts is hide in report viewer but it can be visible in business intelligence

$
0
0

Hi

While viewing the report in business intelligence i can see the full chart. But while seeing through the report viewer some portion of the chart is hide. 

Navigate to one page to another page through link in ssrs report

$
0
0

Hi

 In SSRS reports, First created chart and set page break.Next i created table and applied page break and did not set the keep the contents together if possible. Then i created chart. In this case while previewing in first page chart will be loaded and next page tablix will be loaded. It may not be in one page and it may go to more than one page.then next page chart will be loaded. We can not predict the page no for the 2nd chart. In this case if we wants to move to the next chart from first page or any other page if user doesn't know exactly where that next chart will be there. for this i need to create link in the first page, to user navigate to the second chart without seeing the tablix data. Is it possible?


Power View Error:An error occurred while loading the model for the item or data source"https://abcd.abcd.com/sites/BI/ppg/QA-SSAS-Ex".Verify that the connection information is correct and that you have permissions to access the data source.

$
0
0

Hi All,

I have SharePoint 2013, SQL Server 2012 SP1, SSRS on SharePoint Mode and PowerPivot add-in.

I am facing the issue with Power View when "PowerView" icon is clicked.

I followed some of the instruction in the forum but still the problem is at large.

1. The C2WTS Windows service and C2WTS SharePoint service are both running

2. Checked the SQL Server Browser service is running on the machine that has the PowerPivot instance of SSAS.

3. I have Claims Based Authentication on my farm.

Error code is as given below though it remain the same.

Appreciate any help to fix the issue..

References taken to fix the issue

1. https://social.technet.microsoft.com/Forums/en-US/ecb0ca22-30ed-424c-b457-9972d3b5e8d6/excel-powerview-error-in-sharepoint-2013-an-error-occurred-while-loading-the-model-for-the-item?forum=sqlreportingservices

2. https://social.msdn.microsoft.com/Forums/sqlserver/en-US/64ca0546-f5c4-4d33-95c1-1cf17ac789de/powerview-error-an-error-occurred-while-loading-the-model-for-the-item-or-data-source?forum=sqlreportingservices

3.https://social.msdn.microsoft.com/Forums/sqlserver/en-US/343880cc-080f-41f4-9036-2576733970c3/excel-powerview-error-in-sharepoint-2013-an-error-occurred-while-loading-the-model-for-the-item?forum=sharepointgeneral

Regards

Sakti

<detail><ErrorCode xmlns="http://www.microsoft.com/sql/reportingservices">rsCannotRetrieveModel</ErrorCode><HttpStatus xmlns="http://www.microsoft.com/sql/reportingservices">400</HttpStatus><Message xmlns="http://www.microsoft.com/sql/reportingservices">An error occurred while loading the model for the item or data source 'https://abcd.abcd.com/sites/BI/ppg/QA-SSAS.xlsx'. Verify that the connection information is correct and that you have permissions to access the data source.</Message><HelpLink xmlns="http://www.microsoft.com/sql/reportingservices">Microsoft SQL Server Reporting Services</ProductName><ProductVersion xmlns="http://www.microsoft.com/sql/reportingservices">11.0.3000.0</ProductVersion><ProductLocaleId xmlns="http://www.microsoft.com/sql/reportingservices">127</ProductLocaleId><OperatingSystem xmlns="http://www.microsoft.com/sql/reportingservices">OsIndependent</OperatingSystem><CountryLocaleId xmlns="http://www.microsoft.com/sql/reportingservices">1033</CountryLocaleId><MoreInformation xmlns="http://www.microsoft.com/sql/reportingservices"><Source>ReportingServicesLibrary</Source><Message msrs:ErrorCode="rsCannotRetrieveModel" msrs:HelpLink="http://go.microsoft.com/fwlink/?LinkId=20476&amp;EvtSrc=Microsoft.ReportingServices.Diagnostics.Utilities.ErrorStrings&amp;EvtID=rsCannotRetrieveModel&amp;ProdName=Microsoft%20SQL%20Server%20Reporting%20Services&amp;ProdVer=11.0.3000.0" xmlns:msrs="http://www.microsoft.com/sql/reportingservices">An error occurred while loading the model for the item or data source 'https://abcd.abcd.com/sites/BI/ppg/QA-SSAS.xlsx'. Verify that the connection information is correct and that you have permissions to access the data source.</Message><MoreInformation><Source>Microsoft.ReportingServices.ProcessingCore</Source><Message msrs:ErrorCode="rsErrorOpeningConnection" msrs:HelpLink="http://go.microsoft.com/fwlink/?LinkId=20476&amp;EvtSrc=Microsoft.ReportingServices.Diagnostics.Utilities.ErrorStrings&amp;EvtID=rsErrorOpeningConnection&amp;ProdName=Microsoft%20SQL%20Server%20Reporting%20Services&amp;ProdVer=11.0.3000.0" xmlns:msrs="http://www.microsoft.com/sql/reportingservices">Cannot create a connection to data source 'TemporaryDataSource'.</Message><MoreInformation><Source>Microsoft.AnalysisServices.SPClient</Source><Message>Call to Excel Services returned an error.</Message><MoreInformation><Source></Source><Message>We're sorry. We ran into a problem completing your request.</Message><MoreInformation><Source>Microsoft.Office.Excel.Server.WebServices</Source><Message>We're sorry. We ran into a problem completing your request.</Message></MoreInformation></MoreInformation></MoreInformation></MoreInformation></MoreInformation><Warnings xmlns="http://www.microsoft.com/sql/reportingservices" /></detail>

SSRS 2012 report integrated with SharePoint 2013 issue :Report refreshing after some idle time

$
0
0
  • we have SSRS 2012 report integrated with SharePoint 2013  , when we click on any toggle item after some idle time of 60 secs and try again to expand another toggle item then  complete report is getting refreshed and  if we are in child report it is redirecting to parent report. . we didn’t set any refreshing property at report level. I hope there will be some idle time setting at sharepoint site level.

what we observed.

1. there is no problem when we expand toggle items without any idle time.

2. when we open the report and expand few toggles and keep idle for 60 seconds and try again to expand another toggle item then  complete report is getting refreshed (all toggle items are collapsing).

3. If you keep idle for 60 minutes and if you didn’t do any action like expanding toggle items it is not refreshing.

why it is happening and how to stop that complete refresh.


Surendra Thota

subreport fails if main report does interactive sorting

$
0
0

I've been reading a lot of posts on this subject. I understand that the issue is due to the fact that the subreport is only rendered once. So after the main report is sorted on another column, the cell with the subreport produces an error.

What I want to know is whether or not this is considered a defect. And if it is a defect, is it fixed in another version?

I am currently running SSRS SQL2008R2 SP2 (20.50.4000.0)


Jo Lee

Trusted Domain issues - Windows Integrated Authentication not working

$
0
0

Hi all,

I have set up a SQL 2012 SP1 Report Server.  It works very well for my local domain, but I would like to make the reports available to members of our head office in Germany.  We have an AD Trust relationship with our head office which I believe is working as it should.

I have browsed to the report server and given members of the remote domain access to the Home folder and all other relevant folders and reports. I have also given them access to the SQL databases against which the reports' queries are running. Two things that I need to resolve when a user from the remote trusted domain tries to run a report are:
1.) The user is prompted for a username and password - why does it not accept their current credentials?  Local users are able to run reports without authenticating.
2.) The report does not run and does not error.  The report prompts and buttons appear, but the contents of the report is not returned - all you see is "blank".

Please help!!

Kind regards,

Charles


SSRS 2012 report colors do not export to excel correctly

$
0
0

Hi Guys,

can anyone share your ideas for the below query. Thanks in advance.

I am facing some issue in rendering my SSRS report(2012 version) to excel sheet with color codes. i am using conditional formatting to display the colors. so what is happening is ,take the below expression as an example, for the id  = 0, we are not getting white back ground, we are getting some other colors. But the same thing is working fine in SSRS 2008R2. 

=IIF(MAX(Fields!id.Value=0,= 0, "WHITE","BLUE")

Regards,

kiran



The Value expression used in textrun ‘Textbox.Paragraphs[0].TextRuns[0]’ returned a data type that is not valid.

$
0
0

Hi all,

While viewing report in SSRS 2008 i am getting an error like this

Warning 1 [rsInvalidExpressionDataType] The Value expression used in textrun ‘Textbox21.Paragraphs[0].TextRuns[0]’ returned a data type that is not valid. 

 sotred procedure

ALTER

 Procedure [dbo].[spGetSupervisor]

(

@START_DATE

datetime,
 

@END_DATE

datetime,
 

@CenterID

varchar(4000),
 

@TITLE

varchar(100)=NULL

)

as

Select

 Distinct L1_ID SupID, L1_Name SupName

from

REF_DB.info vinnerjoin dbo.fn_MVParam(@CenterID+',',',') P

 

v

.CenterID= p.Column1
 

where

v.startdate<= @END_DATEand v.enddate>= @START_DATE

and

 (v.titleIN(@TITLE)or @titleis

 

order

 by Name

Here is the expression in Report textbox

=Parameters!CenterID.Label

Please help me

Thanks in advance

Jyo

null)

ON

Viewing all 10045 articles
Browse latest View live


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