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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
sspawar88
Creator II
Creator II

Row level Count

Count({<param_name={'TEMP'}, param_value={'<=-1'}>} param_value)/

Aggr(Nodistinct count({<param_name={'TEMP'}, param_value={'<=-1'}>}param_value),branch_type)

This expression gives me 100% Stack bar chart for branch_type which i have required.

but when i drill down for branch_name, loc_code, loc_type  it won't show 100%. i require all bars with perfect 100%

what Changes need to be put in expression?

gwassenaar

swuehl

1 Solution

Accepted Solutions
Kushal_Chawda

Please use the below expression. It's working for me

Num(Count({<param_name={'TEMP'}, param_value={'<=-1'}>} param_value)

/Aggr(Nodistinct count({<param_name={'TEMP'}, param_value={'<=-1'}>}param_value),$(=GetCurrentField([BT-BN-LT-LC]))),'#,##0.00%')

View solution in original post

4 Replies
swuehl
MVP
MVP

Instead of the aggr() function, try the TOTAL qualifier in the second count(), with all drill down dimension fields stated in the qualifier field list.

sspawar88
Creator II
Creator II
Author

Count({<param_name={'TEMP'}, param_value={'<=-1'}>} param_value)

/count({<param_name={'TEMP'},param_value={'<=-1'}>}total<branch_type,branch_name,loc_code,loc_type> param_value)

when i used Total in denominator it gives 400% and all stacks are in same proportion which is incorrect.

Kushal_Chawda

Please use the below expression. It's working for me

Num(Count({<param_name={'TEMP'}, param_value={'<=-1'}>} param_value)

/Aggr(Nodistinct count({<param_name={'TEMP'}, param_value={'<=-1'}>}param_value),$(=GetCurrentField([BT-BN-LT-LC]))),'#,##0.00%')

swuehl
MVP
MVP

Would be better next time you post a request if you fully describe your scenario, best by posting a small sample QVW.

Everything else is kind of guessing and inefficient.