Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set analysis issue in value

Ideally the both the following function should return the same

=sum( {$} Invoice_Quantity*Item_Price)

or

=sum( Invoice_Quantity*Item_Price)

But it showing different values and with $ it showing the total value. Fail to understand why ?

I am using different state in document and the control where this function is placed using the inherited state of the sheet.

1 Solution

Accepted Solutions
Not applicable
Author

Thanks. I figure that out. so instead of $ or any its variant need to use the state name.

=sum( {state_name} Invoice_Quantity*Item_Price)

View solution in original post

2 Replies
Gysbert_Wassenaar

$ is for the default state. If you're using alternate states then the default state is not necessarily the same as the inherited state of the object. See this blog post: Set Analysis & Alternate States – Quick Tip » The Qlik Board!


talk is cheap, supply exceeds demand
Not applicable
Author

Thanks. I figure that out. so instead of $ or any its variant need to use the state name.

=sum( {state_name} Invoice_Quantity*Item_Price)