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

SSRS 2008 R2 - COUNTDISTINCT By Group

$
0
0

Hello,

Thanks for the help in advance.  I have some a results set that gives some numbers by country.  The countries selected are controlled by a parameter which is 'Multi Select'.  There could be one or many countries selected.

My 'Detail' level dataset is fine, however I'd like to add a summarised DISTINCT count of numbers by country in another location on the report.  I'd like SSRS to do the summary (based on the detail rows it already has), rather executing another SQL query to the database for the summary.

If there were a small list of countries I could do a COUNTDISTINCT IF Group = XYZ.  However as there could be a few or many, this is not practical.

This is what the detail looks like:

Numbers By Country

Here is an example of how I'd like to summary to look like (without doing a separate SQL query):

Country Number Summary

Many Thanks,
UnoT


Viewing all articles
Browse latest Browse all 10045

Trending Articles



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