Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9190

Re: Count Formula for a Distinct Count Column?

$
0
0

Hi Eric,

 

Something like this should work:

 

WhilePrintingRecords;

numbervar final_count;

If DistinctCount({Measure_field}, {Group_Field}) > 1 then

     final_count := final_count + 1;

 

Place this formula on the Group Header or Footer and suppress it.

 

Then, create a formula to display the total count and place this on the Report Footer:

 

WhilePrintingRecords;

numbervar final_count;


-Abhilash


Viewing all articles
Browse latest Browse all 9190

Trending Articles



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