OK, Assuming that your file is a text file, having the fields separated by comma separator ','. You would also know which field `'transactionid'` is in terms of its position. Assuming that your `'transactionid'` field is 7th field.
awk -F ',' '{print $7}' text_file | sort | uniq -c
This would count the distinct/unique occurrences in the 7th field and prints the result.