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

PV table Substract

Hello, Is it possible to obtain the substract of 1 Expression into a new row in QlikView?

What I want is may - Abr.

Thank you

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Try with chart inter record functions, like above(), below(), before(), after(). In your case, I would maybe try something like:

=sum(FIELD)- before(sum(FIELD))

View solution in original post

4 Replies
swuehl
MVP
MVP

Try with chart inter record functions, like above(), below(), before(), after(). In your case, I would maybe try something like:

=sum(FIELD)- before(sum(FIELD))

pgalvezt
Specialist
Specialist
Author

Thank you swuehl for your reply works fine, just one question When I try to build a bar char with this formula nothing happend. Maybe few data, or negative values?

Thanks

swuehl
MVP
MVP

before() and after() are only useful in pivot tables, with at least one dimension pivoted to the top. In other chart types, the functions return NULL.

Try using above() instead in your bar chart.

pgalvezt
Specialist
Specialist
Author

Ok! Many Thanks.