Count of Rows Expression - Word Template

โ€œ<<Start: Select(Due in Today[JobID], TRUE)>><<[JobID]>><<Eโ€ฆnd>>โ€

Hi
The above will return Individual JobIDโ€™s in each row, which is fine. Bit can I count those rows instead? How would I tweak the above expression to just give me the count of rows?

Thanks

Solved Solved
0 6 236
1 ACCEPTED SOLUTION

Just put <<COUNT(Select(Due in Today[JobID], TRUE))>> in the template document

<<START: โ€ฆ is only really when you want pull in a set of rows of data such as into a table

View solution in original post

6 REPLIES 6

COUNT(Select(Due in Today[JobID], TRUE)) ?

Hi Simon, much appreciated. The report fails on:

โ€œErrorsโ€: โ€œError: Report โ€˜Summaryโ€™ action โ€˜Send Summaryโ€™ Attachment template. Start expression โ€˜COUNT(Select(Completed This Month [JobID], TRUE))โ€™ should generate a List of Ref values. Please verify that it generates a List and that the contents of the List are Ref values. Ref values should come from the โ€˜Keyโ€™ column of the referenced table.โ€,
โ€œEmailToโ€: โ€œโ€ฆhiddenโ€ฆโ€,

Any ideas why?
[JobID] is a key column.

Select(Due in Today[JobID], TRUE) will return a list of Ref column IDs

COUNT(Select(Due in Today[JobID], TRUE)) will always just be a number

A start conditon MUST return a of Refs

I think I understand that. I only want to count [JobID]'s and not return a list.

Iโ€™ve tried:
โ€œ<<Start: COUNT(Select(Due in Today[JobID], TRUE))>><<[JobID]>><<Eโ€ฆnd>>โ€

โ€œ<<Start: COUNT(Select(Due in Today[JobID], TRUE))>><<Eโ€ฆnd>>โ€

โ€œ<<Start: COUNT(Select(Due in Today[JobID]))>><<[JobID]>><<Eโ€ฆnd>>โ€

And a couple of other variations, I donโ€™t know how to fix this.

Just put <<COUNT(Select(Due in Today[JobID], TRUE))>> in the template document

<<START: โ€ฆ is only really when you want pull in a set of rows of data such as into a table


Aaaahโ€ฆ Got it and it works.
Thanks you again Simon.

Kind Regards

Top Labels in this Space