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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
realpixel
Creator
Creator

Expression count by value

Hello,

I have a column in chart named HMDAU, I want to count only all value begenning by 'EX******'

Someone have an idea how to do?

Thank

11 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

count({<HMDAU={'EX*'}>}HMDAU)


talk is cheap, supply exceeds demand
realpixel
Creator
Creator
Author

Hello,

Thank you for your reply

This expression give me the result but not the list value begining by EX********

For example in my chart  I have

HMDAU

0

0

0

0

0

0

0

Total=162

The total is correct but in the chart the value is 0 and not EX*******

Not applicable

will you pleasee post your sample app

Not applicable

Hi,

Mr, Wassenaar's answer should work, do you have any sample of your source and what your table should look? or screenshots.

Regards,

Alex

Not applicable

can you give sample data ?

realpixel
Creator
Creator
Author

Hello,

See Under the result, is not possible to have the value beginning by 'EX*******' in place of the numeric value " 1 "?

                                                                                                                                                                                                                                    

count({<HMDAU={'EX*'}>}HMDAU)
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
162

Like that

    

count({<HMDAU={'EX*'}>}HMDAU)
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
EX****************
162
tresesco
MVP
MVP

I guess you are trying with a chart. If so, then try with Only()/Concat() functions, like:

=Only({<HMDAU={'EX*'}>} Distinct HMDAU)  // if you want single value per row

Not applicable

Hi,

create a straight table

on your dimension tab select "HMDAU" (or whatever your table name is)

on your Expression tab paste this

if( Dimensionality() = 1,

only({<HMDAU = {'AA*'}>}HMDAU),

count({<HMDAU= {'AA*'}>}HMDAU))

Then go to Presentation tab

click your dimension then click "Hide column" below

Regards,

Alex

Not applicable

try the following expression:

=if(wildmatch(HMDAU,'EX*'),count(HMDAU))

hope it will work..