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: 
sqlpuzzle
Contributor III
Contributor III

QlikView PivotChart Expression problem

Hi,

I need help with an expression to calculate % in a PivotChart.

The calculatuon is a division operation (Number of IDs in TeamB that Completed in 45 days over the Total number of TeamB IDs). by the Date Dimension.

Count(DISTINCT {$<Team={'TeamB'},DaysToComplete={"<=45"}>} ID)/Aggr(Count(DISTINCT {$<Team={'TeamB'}>}ID),day_month_year)

sqlpuzzle_0-1612839056867.png

The expression is not showing the value in all scenarios. It seems to indicate a null.

 

What am I doing wrong?

Sample attached.

 

 

1 Solution

Accepted Solutions
MayilVahanan

HI @sqlpuzzle 

Try like below

=Count(DISTINCT {$<Team={'TeamB'},DaysToComplete={"<=45"}>} ID)/(Count(total<day_month_year> DISTINCT {$<Team={'TeamB'}>}ID))

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

1 Reply
MayilVahanan

HI @sqlpuzzle 

Try like below

=Count(DISTINCT {$<Team={'TeamB'},DaysToComplete={"<=45"}>} ID)/(Count(total<day_month_year> DISTINCT {$<Team={'TeamB'}>}ID))

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.