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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
arulsettu
Master III
Master III

Implement the query

Hi i am trying to implement the following query

select pdr_prod_code, count(1),

sum(decode(pdr_status, 'R', 1, 0)) from t_pol_due_for_ren

where trunc(pdr_pol_to_dt) between '01-DEC-2014' and '31-DEC-2014'

group by pdr_prod_code

in line chart. month and year as dimensions

please suggest me something its urgent...

thank you

20 Replies
arulsettu
Master III
Master III
Author

can any one help me on this issue

arulsettu
Master III
Master III
Author

any one plz?

jagan
Partner - Champion III
Partner - Champion III

Hi ARul,

Check thsi expression

sum({<PDR_STATUS={'R'}>}PDR_PROD_CODE)/sum({<PDR_STATUS={'R'}>} TOTAL <Year>PDR_PROD_CODE)

Regards,

Jagan.

arulsettu
Master III
Master III
Author

thanks

but result not similar to above image and need to show y axis in percentage

jagan
Partner - Champion III
Partner - Champion III

Hi,

Check this file, is this you are expecting?

If not explain with an example.

Regards,

Jagan.

arulsettu
Master III
Master III
Author

hi

what i need is count of pro_status =R/ product code in percentage

arulsettu
Master III
Master III
Author

hi Jagan need exactly like this

status R / Total count

group by product

jagan
Partner - Champion III
Partner - Champion III

Hi,

Can you explain with some sample data and your expected output.

Regards,

Jagan.

arulsettu
Master III
Master III
Author

in above qvw fields called

pdr_status in this i have to take pdr_status='R'/Count of pdr_prod_code group by pdr_prod_code

have to show in percentage

jagan
Partner - Champion III
Partner - Champion III

Hi,

PFA file, hope it helps you.

Regards,

Jagan.