简体   繁体   English

需要有关SSRS特定类型报告设计的帮助

[英]Need help regarding a specific type of report design by ssrs

i want to show one master and one detail data. 我想显示一个主数据和一个详细数据。

master data from sale table and detail data from phone table there is no relation between two table only one field is common in two table that is country code. 销售表中的主数据和电话表中的明细数据在两个表之间没有关系,只有两个表中的一个字段是共同的,这是国家/地区代码。

in the first page i want to show data regarding UK like 在第一页中,我想显示有关英国的数据,例如

UK details                it is title country wise
-----------------------------------------------------------------------
Total Sale : 112300  Diag sale: 1300 Reman sale : 10000


Caller Name            incomming call       out going call       call transfer
----------------  ---------------------    -------------------  ----------------
keith                     5                         5                  2
john                      3                         2                  1
sam                       8                         4                  5

in the next page same data will come but USA data will show. 在下一页,将显示相同的数据,但将显示美国的数据。 so in this way country specific data will show in each page. 因此,以此方式可以在每个页面中显示特定国家/地区的数据。 i am new in ssrs so i am not getting any idea how to design this report with ssrs 我是ssrs的新手,所以我不知道如何使用ssrs设计此报告

my store will supply data and it will take only one parameter like country code. 我的商店将提供数据,并且只会使用一个参数,例如国家/地区代码。 if i pass country code like 'GB,US,DE' then my sp will return two result set first result set will fetch data from sale table for country GB,US and DE like 如果我通过国家代码,例如“ GB,US,DE”,则我的sp将返回两个结果集,第一个结果集将从国家(地区)的GB,US和DE的销售表中获取数据

total_sale,   diag_sale, Reman_Sale, countrycode
112300         1300         10000        GB
10200          1200         4700         US
4200           1500         5600         DE

first result will look like above output 第一个结果看起来像上面的输出

second result set will look like 第二个结果集看起来像

callername       incommingcall    outgoingcall    calltransfer   countrycode
keith                 5                 5               5             GB
john                  3                 2               1             US
sam                   8                 4               5             DE

so discuss in detail how could i design this type of report with ssrs. 因此,请详细讨论如何与SRS设计这种类型的报告。

Do you know about Datasets? 您了解数据集吗? If yes then then in dataset query you can join two tables to get whatever you want on report. 如果是,那么在数据集查询中,您可以联接两个表以获取报告中想要的任何内容。

Now on report:- 1)You can take a tablix 2)In that tablix ,on first row you can write expression for displaying CountryName 3)on second row of tablix, you can put "Total Sale : 112300 Diag sale: 1300 Reman sale : 10000 " 4)and finally on 4th row you can put the details fields. 现在在报告中:-1)您可以使用Tablix 2)在该Tablix中,在第一行上可以编写用于显示CountryName的表达式3)在Tablix的第二行上,可以输入“总销售额:112300 Diag销售额:1300 Reman sale :10000“ 4),最后在第4行上可以放入详细信息字段。 5)You have make a row group ,group by CountryCode. 5)您已经创建了一个行组,按CountryCode分组。

This just a brief idea..I hope this will help you a bit to atleast start.. 这只是一个简短的主意。我希望这对您有所帮助。

Good Morning, 早上好,

In addition to anakulk's solution, you could display detail records using a sub report. 除了anakulk的解决方案之外,您还可以使用子报表显示明细记录。 You would create the master report which contains the data from your sales table. 您将创建主报表,其中包含来自销售表的数据。 You would create another report that is based on the phone table. 您将创建另一个基于电话表的报告。

On the master report, you would insert a sub report, select the report you built based on the phone table, and link it using the country code. 在主报告上,您将插入一个子报告,选择基于电话表构建的报告,然后使用国家/地区代码链接它。 This way, whenever you have the UK sales information displaying, the sub report will display the details from the phone table that have UK in the country code field. 这样,无论何时显示英国销售信息,子报表都将在国家/地区代码字段中显示电话表中包含英国的详细信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM