2016-07-29 3 views
0

ご連絡お願いします。SSRSテーブルで発生数をカウント

SSRSで作業する。次のデータを設定してください。

ID  City  Country 
1  London  England 
2  Glasgow Scotland 
3  Aberdeen Scotland 
4  Swansea Wales 
5  London  England 
6  Glasgow Scotland 
7  Glasgow Scotland 
8  Manchester England 

都市別にグループ化された表があり、それぞれの都市で発生した回数を示しますか?下記を参照してください。

City   Country  Total 
    Glasgow  Scotland  3 
    London  England  2 
    Manchester England  1 
    Swansea  Wales   1 
    Aberdeen  Scotland  1 

どうすればいいですか?

=COUNT(Fields!City.Value,"City") 

は、このことができます場合は、私に教えてください:次の式を使用しCityのグループを作成した後

答えて

2

+0

ありがとうございましたalejandro、great help – whitz11

2

あなたの質問からは、レポートの詳細は要約されておらず、要約データのみが表示されているようです。詳細が必要な場合は、Alejandro Zuletaの答えが働きます。詳細が必要ない場合は、データセット内のグループ化を行うことができます。

select city, country, count(*) as total 
    from <yourtable> 
group by city, country; 
関連する問題