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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Set analysis

See attached document showing two charts (and list boxes).

This simplified app aims at (with Set analysis) showing the sum of Belopp for respective Kategori as selected in table Val.

Why gives the expression sum({$<Kategori={Val}>}Belopp) with correct syntax "No data to display"?

The expression sum({$<Kategori=Val>}Belopp) with incorrect syntax gives the desired result.

BR, Hans Kaminsky

1 Solution

Accepted Solutions
sunny_talwar

Because you are comparing two fields... you can do this

Sum({$<Kategori=p(Val)>}Belopp)

or

Sum({$<Kategori=Val>}Belopp)

The syntax editor doesn't understand the syntax, but the expression in not incorrect.

View solution in original post

2 Replies
sunny_talwar

Because you are comparing two fields... you can do this

Sum({$<Kategori=p(Val)>}Belopp)

or

Sum({$<Kategori=Val>}Belopp)

The syntax editor doesn't understand the syntax, but the expression in not incorrect.

Anonymous
Not applicable
Author

Thank you! I checked out the p() and e() functions, and they worked just fine! I knew that my expression was ok, but did not like that the text editor red marked the expression showing the syntax as incorrect. But by using the p() function all looks good 🙂