Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Chanty4u
MVP
MVP

Re:Sum and exclude '"0"

hi all,

I have expression lik below

=num(

sum(Complexity)

/

(11111

sum({<desc={'Design - IT',' Design - RT'}>}hrs)

/8

)

,'##.##')

exclude.png

i used same formualue in   straitght table  nummerator and denomenator.

am getting the sum of abve /sum of below exp.

My req is---   where  sum({<desc={'Design - IT',' Design - RT'}>}hrs)    this value is '0' shwn in chart  that corresponding values shud nt count and  remaing shud be count / total of sum({<desc={'Design - IT',' Design - RT'}>}hrs) .

example:  there is 47 value.. corresponig 172...   the result shud be   172/408.  is my result.

thnks in advance

87 Replies
Chanty4u
MVP
MVP
Author

not wrkng sudhakar

Chanty4u
MVP
MVP
Author

no luck......

Not applicable

and what output is giving insted of all use total

Chanty4u
MVP
MVP
Author

both are nt gvng exact values ....

jagan
Luminary Alumni
Luminary Alumni

Attach sample file then it would be easier to understand and provide the solution.

Regards,

Jagan.

Anonymous
Not applicable

sum( {<hrs={'*'}>}-e(hrs={'0'})hrs)

try it this one

Chanty4u
MVP
MVP
Author

....   hi jagan,

this exp is my expected value...but it is nt gvng

If(Sum({<desc={'Design - IT',' Design - RT'}>}hrs) > 0, Sum(Complexity)/Sum(TOTAL {<desc={'Design - IT',' Design - RT'}>}hrs))



If(Sum({<desc={'Design - IT',' Design - RT'}>}hrs) > 0   in this exprsn  where 0 availble that corresponding value shud nt be summed in  sum(complxity)

jagan
Luminary Alumni
Luminary Alumni

HI,

Try like this

If(Sum({<desc={'Design - IT',' Design - RT'}>}hrs) > 0, Sum(Complexity))/

Sum(TOTAL {<desc={'Design - IT',' Design - RT'}>}hrs)


Regards,

Jagan.

Chanty4u
MVP
MVP
Author

yeah..i have tried same exprn but its nt gvng correct

Anonymous
Not applicable

To use the indirect set analysis may be we get it