[英]SSRS summary of nested groups at outer group footer
I have a report ouput like this, it has nested groups, outer group is on Business Partners and the inner one is on Currency Code. 我有一个像这样的报告,它有嵌套组,外部组在业务伙伴上,内部组在货币代码上。
Busines Partner1
Opening Balance for USD as of 2013-10-01
Transaction 1..
Transaction n..
USD Totals
Balance for EUR as of 2013-10-01
Transaction 1..
Transaction n..
EUR Totals
Busines Partner2
Opening Balance for USD as of 2013-10-01
Transaction 1..
Transaction n..
USD Totals
Balance for EUR as of 2013-10-01
Transaction 1..
Transaction n..
EUR Totals
What I need is on Business Partner Group Footer, I'd like to display overall outstanding balances for each currency code. 我需要的是Business Partner Group Footer,我想显示每种货币代码的总体未结余额。 Something like; 就像是;
Busines Partner1
Opening Balance for USD as of 2013-10-01
Transaction 1..
Transaction n..
USD Totals
Balance for EUR as of 2013-10-01
Transaction 1..
Transaction n..
EUR Totals
(Assume below section is Business Partner1 Group Footer)
Currency, Opening Balance, Sum of In Period, Overall
USD 200.00 300.00 500
EUR 150.00 400.00 550
Total 1050
Busines Partner2
Opening Balance for USD as of 2013-10-01
Transaction 1..
Transaction n..
USD Totals
Balance for EUR as of 2013-10-01
Transaction 1..
Transaction n..
EUR Totals
(Assume below section is Business Partner2 Group Footer)
Currency, Opening Balance, Sum of In Period, Overall
USD 100.00 300.00 400
EUR 250.00 300.00 550
Total 950
Question is how can I achieve this? 问题是我该如何实现这一目标?
I think that you just have to structure your groups right.. 我认为你必须正确地组织你的团体..
based on the following sample data: 基于以下示例数据:
SELECT 'BusinessPartner1' BusinessPartner, 'EUR' CurrencyType, 100 Amount, 122 TotalSpend UNION
SELECT 'BusinessPartner1' BusinessPartner, 'GBP' CurrencyType, 111 Amount, 301 TotalSpend UNION
SELECT 'BusinessPartner2' BusinessPartner, 'EUR' CurrencyType, 81 Amount, 191 TotalSpend UNION
SELECT 'BusinessPartner2' BusinessPartner, 'GBP' CurrencyType, 13 Amount, 93 TotalSpend UNION
SELECT 'BusinessPartner2' BusinessPartner, 'USD' CurrencyType, 30 Amount, 32 TotalSpend UNION
SELECT 'BusinessPartner3' BusinessPartner, 'GBP' CurrencyType, 78 Amount, 42 TotalSpend UNION
SELECT 'BusinessPartner3' BusinessPartner, 'USD' CurrencyType, 210 Amount, 61 TotalSpend UNION
SELECT 'BusinessPartner3' BusinessPartner, 'EUR' CurrencyType, 12 Amount, 71 TotalSpend
If you structure your groups like this, (1 parent, 1 child, 1 adjacent to child): 如果你像这样构建你的组,(1个父,1个孩子,1个孩子相邻):
Then you get the below output, which I think is the same sort of thing that you're after. 然后你得到以下输出,我认为这是你所追求的那种东西。 To get exactly what you need I think that you would also need a details child group on each of the adjacent groups 为了得到你需要的东西,我认为你还需要在每个相邻组中有一个细节子组
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.