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: 
Not applicable

If next row is 'Production' then...

I want to calculate Amount (Qty x Unit Rate).

But the Condition is 'if the next row contains the words 'Production' then it should be 0, else it should be Qty x unit rate.

13 Replies
richard_chilvers
Specialist
Specialist

Hi

I have never used the BELOW function, although I did eventually get ABOVE working. I suppose its unreasonable to expect a calculation to work based on a row it hasn't reached yet in the table

I think perhaps the next step is to see whether you can prepare your data in the script, ready for this chart, as someone else hinted ?

jagan
Partner - Champion III
Partner - Champion III

Hi,

Try like this

if(wildmatch(Above([Description]),'Production'),0,Sum(Qty x [unit rate.]))


hope this helps you.


Regards,

Jagan.

Not applicable
Author

Dear Jagan,

Have uploaded Qlikview file and the base file.

i tried your command,

Still not working,.

pls try from your end.

jagan
Partner - Champion III
Partner - Champion III

Hi,

Try this expression

(if(wildmatch(below([Description]),'Production' ),0,sum((Quantity*[Unit Cost (Expected)]))))

If not working then let me know your expected output.

Regards,

Jagan.