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

How can you compare data sets and display row counts between multiple data datasets

$
0
0

In SQL it would look like this. 

SELECT  count(*) from #CANNEX 
where PRI_REC_TYPE ='PRI' 

SELECT 'FUNDATA', count(*) from #FUNDATA 
where PRI_REC_TYPE ='PRI' 

below is the number I need I would like to do this in an expression not a separate dataset

SELECT count(*) from #CANNEX 
where PRI_REC_TYPE ='PRI' 
and SYMBOL not in ( select SYMBOL from #FUNDATA)

#Cannex in SSRS is in dataset1 and #FUNDATA is  in dataset2

Here is the expression I have tried. I am putting this in a text box ideally I will use this value in a chart

=CountDistinct(Fields!SYMBOL.Value, "DataSet1") where (Fields!SYMBOL.Value, "DataSet1") not in (Fields!SYMBOL.Value, "DataSet2")


Viewing all articles
Browse latest Browse all 10045

Trending Articles



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