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

Announcements
Congratulations to the new Qlik Luminary and Partner Ambassador class! Meet them here
cancel
Showing results for 
Search instead for 
Did you mean: 
dana
Creator III
Creator III

Help with Alternate States Expression

Hi,

The following expression doesn't work:

sum({Grp1}ItemSalesPrice * Quantity)

it works fine without the alternate state group.

Any idea why?

Thanks!

 

Labels (1)
1 Solution

Accepted Solutions
agigliotti
MVP
MVP

what do you mean?
your expression looks fine.
are you sure that your alternate state name match with "Grp1" ?
what is your expected result?

The Power of shining a light on the dark side of your data.
Follow me on my LinkedIn | Know Gamma Informatica at gammainformatica.it

View solution in original post

6 Replies
agigliotti
MVP
MVP

what do you mean?
your expression looks fine.
are you sure that your alternate state name match with "Grp1" ?
what is your expected result?

The Power of shining a light on the dark side of your data.
Follow me on my LinkedIn | Know Gamma Informatica at gammainformatica.it
dana
Creator III
Creator III
Author

Hi,

Yes, the name is correct.

the calculation ( of total price) is  fine without the alternate state.

Thanks..

 

agigliotti
MVP
MVP

could you share a sample app woth mock data to look at?
i don't understand why you are using alternate state in that expression.

The Power of shining a light on the dark side of your data.
Follow me on my LinkedIn | Know Gamma Informatica at gammainformatica.it
dana
Creator III
Creator III
Author

Hi,

There are actually two expressions for each state for comparison in a table.

I will try to recreate the issue in order to check whether there is an issue with the  price field.  
thanks for your kind help!

 

rwunderlich
MVP
MVP

"The following expression doesn't work:"

It would be useful if you told us what result you are getting -- eg null, zero, a number different than without the State. 

-Rob

dana
Creator III
Creator III
Author

Hi,

The expression works fine. It turned out that the field didn't have values for periods I selected.

Thanks for your trying to help!