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: 
vishalgoud
Creator III
Creator III

is this correct expression...??

Hi all,

can anybody evaluate the below expression please. i want to calculate Sum(NUM_OF_DAYS)/sum(NUM_OF_FULLY_CONSUMED) when NUM_OF_FULLY_CONSUMED is not equal to Zero and type is GDP

Sum({<TYPE={GDP},NUM_OF_FULLY_CONSUMED =-0>}NUM_OF_DAYS)/Sum({<TYPE={GDP},NUM_OF_FULLY_CONSUMED =-0>}NUM_OF_FULLY_CONSUMED)

2 Replies
Chanty4u
MVP
MVP

try

Sum({<TYPE={'GDP'},NUM_OF_FULLY_CONSUMED- ={'*'}>}NUM_OF_DAYS)/Sum({<TYPE={'GDP'},NUM_OF_FULLY_CONSUMED - ={'*'}>}NUM_OF_FULLY_CONSUMED)

sunny_talwar

May be this

Sum({<TYPE={GDP}, NUM_OF_FULLY_CONSUMED -= {'0'}>}NUM_OF_DAYS)/Sum({<TYPE={GDP}, NUM_OF_FULLY_CONSUMED -= {'0'}>}NUM_OF_FULLY_CONSUMED)