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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
anuradhaa
Partner - Creator II
Partner - Creator II

get some based on values in a certain colum

I have below data set

Id     tag     hours

1               5

     g          12

2               10

I want to get sum of id hours (5+10 =15) and sum of tag hours (12)

1 Solution

Accepted Solutions
jonathandienst
Partner - Champion III
Partner - Champion III

Something like this:

Sum({<Id={*}>} hours)

Sum({<tag={'*'}>} hours)

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein

View solution in original post

2 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

Something like this:

Sum({<Id={*}>} hours)

Sum({<tag={'*'}>} hours)

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
PradeepReddy
Specialist II
Specialist II

for ID Hours--> sum( if(len(trim((Id)))>0,hours))

For Tag Hours --> sum( if(len(trim((tag)))>0,hours))