Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
jagdishbr
Contributor III
Contributor III

Set Expression Query

Hi, I'm new to Qlik Sense and I'm having trouble writing a set expression. I need to fetch the sum of sales where profit is 0 for each client.

I tried the following expression, but it's not working

=SUM({<profit={0},period={'FY23'}>}sales)

Where am I going wrong? Could you please help me understand?

 

Labels (5)
2 Solutions

Accepted Solutions
simsa
Contributor III
Contributor III

In case it is textual, please use the formula below:
=SUM({<profit={'0'},period={'FY23'}>}sales)

View solution in original post

gomeri
Partner - Creator
Partner - Creator

At this point I recommend that:

I remain available for further information

Thanks

Giovanni O. D.

View solution in original post

4 Replies
gomeri
Partner - Creator
Partner - Creator

Hi,

expression have a right syntaxis, but I don't sure about your type of date.

Can you attach a screenshot of your table please? Or example?

Type of data in "profit" is numeric or textual?

Thanks

 

Giovanni O. D.
jagdishbr
Contributor III
Contributor III
Author

HI Gomeri, It's textual.

simsa
Contributor III
Contributor III

In case it is textual, please use the formula below:
=SUM({<profit={'0'},period={'FY23'}>}sales)

gomeri
Partner - Creator
Partner - Creator

At this point I recommend that:

I remain available for further information

Thanks

Giovanni O. D.