Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

field count

Hi All

i coulndt solve my issue.

At the attached excel.  Columns (F, G, H , I) has Sub_delay_code_1, Sub_delay_code_2, Sub_delay_code_3, Sub_delay_code_4

i want to count all codes in this four columns

for example '15A' is 3+1+2+0 = 6 in all four columns

thnaks a lot

14 Replies
Not applicable
Author

you want to count it in loading script or on the chart/textbox?

swuehl
MVP
MVP

Maybe like this:

=rangesum(

count({<DS_DELAY_SUB_CODE_1 = {'15A'}>} DS_DELAY_SUB_CODE_1)

,count({<DS_DELAY_SUB_CODE_2 = {'15A'}>} DS_DELAY_SUB_CODE_2)

,count({<DS_DELAY_SUB_CODE_3 = {'15A'}>} DS_DELAY_SUB_CODE_3)

,count({<DS_DELAY_SUB_CODE_4 = {'15A'}>} DS_DELAY_SUB_CODE_4)

)

Or create a concatenated field in your load script that contains all values of the four fields.

Hope this helps,

Stefan

Not applicable
Author

Hi Pari i want to count at tables or charts

Not applicable
Author

Hi Swuehl

but i have about 100 hundred codes

on the other hand i  wanted to put the four coulmn into one column but  i coulndt , becasuse it dublicated the data

Not applicable
Author

post a sample qvw file

Not applicable
Author

i added it thnaks a lot

Not applicable
Author

on which chart / sheet you want to do it?

Not applicable
Author

at copy of isletme sheet

for all graphs  i will use it

Not applicable
Author

i want to count all the codes in four columnd to prepare this graphs