Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

count matching values in a collumn

Count((MsgType)=(census))  as you know this does not work.

My field has 5 different values I am creating a table to display Facility month year and Census, Newrx, and three other.

How do I count only one of the five in each column?

1 Solution

Accepted Solutions
sunny_talwar

How about this:

Count({<MsgType={'NEWRX'}>} MsgType)

View solution in original post

9 Replies
trdandamudi
Master II
Master II

It should be as below:

Count( {<MsgType={'census'}>} census)


Count( {<MsgType={'Newrx'}>} Newrx)

Not applicable
Author

This is what I have but it only counts 1

Count( {<MsgType={'NEWRX'}>} 'NEWRX')

trdandamudi
Master II
Master II

I don't have any data to tell you what is wrong... Can you please upload a sample app with expected output so that we can take a look.

Note: You have extra quotes at the end, so remove them. It should be as below:

Count( {<MsgType={'NEWRX'}>} FieldName)

vishsaggi
Champion III
Champion III

Try this:

Without quotes for the field name and is your field name all capitals or like this Newrx ?


Count( {< MsgType = { 'NEWRX' } >} Newrx)

sunny_talwar

How about this:

Count({<MsgType={'NEWRX'}>} MsgType)

Anonymous
Not applicable
Author

Send a qvw example

vishsaggi
Champion III
Champion III

My bad, Thanks for catching this Sunny.

RObert please use sunny's expression. It should work.

Not applicable
Author

sunny_talwar

Did you try this?

Count({<MsgType={'NEWRX'}>} MsgType)