Skip to main content

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
CUSTOMERS ONLY: Now accepting customer applications for the 2023 Luminary Program: SUBMIT NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
arulsettu
Master III
Master III

showing incorrect count

hi i am doing simple count

count(id) and for ratio count(id)/count(total id)

count(total Id) is incorrect.

in straight table i checked.in properties expression tab if i use Expression as total it showing correct.

how to do this bar chart.

Note: i am using cyclic group in dimension

1 Solution

Accepted Solutions
t_chetirbok
Specialist
Specialist

for ratio use expression

If(Rank(count(BW_VEH_ID), 4, 1) <= 10,

count(BW_VEH_ID)

/sum(TOTAL aggr(If(Rank(count(BW_VEH_ID), 4, 1) <= 10,count(BW_VEH_ID)) ,BW_MAKE_DESC) )

)

View solution in original post

37 Replies
MK_QSL
MVP
MVP

Provide sample data !

MK_QSL
MVP
MVP

Can you tell us where you think it is wrong? What is the exact result according to your need?

arulsettu
Master III
Master III
Author

please check the count total. all vech count

arulsettu
Master III
Master III
Author

total should be 31057 for year 2016

MK_QSL
MVP
MVP

How 31057?

t_chetirbok
Specialist
Specialist

Why?

total count is 43471

jagan
Luminary Alumni
Luminary Alumni

Hi,

43417 is correct value.  Not sure do you missed any filters in the expression or script?

Regards,

jagan.

arulsettu
Master III
Master III
Author

Hi Jagan,

               No filters applied only year 2016. please manually count the 10 vech. you will get 31057

t_chetirbok
Specialist
Specialist

So, in your bar chart 2 expression with different format, for first axes should be 0-10000, for second 0 %- 100%.

Maybe second expression can be Text as Pop-Up for example