Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
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)