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: 
pgalvezt
Specialist
Specialist

If Problem

Hello,

I have calculated a formula but I stuck:

Sum(Aggr(

if(Column(8) = 0,

If(Column(6) > 0,

If((aggr(Sum(cantidad_oh),articulo) - aggr(Sum(patrimonio),articulo)) > Column(6),

If((aggr(Sum(cantidad_oh),articulo) - aggr(Sum(patrimonio),articulo)) <= (2*Column(6)),

(((Sum(cantidad_oh) - Sum(patrimonio)) - Column(6))), Column(6)),'0'),'0'),'0'),articulo))

The result gives nothing just a 0.

Thanks!

3 Replies
Not applicable

Hey Pablo,

Is it possible to attach a dummy file with some sample data.

Thanks

AJ

pgalvezt
Specialist
Specialist
Author

Hi,

Sure, Here is the attached. I just almost get all columns. The rest is just Column(A) * Column(B)

Thanks!

Anonymous
Not applicable

Hi Pablo,

I thought we've solved a similar problem already - I had to replace references to columns with actual expressions.  See attached with your new problem fixed.

(I also moved totals on top to avoid scrolling)

Regards,

Michael