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

Problem with a Set Analysis

Hi, I have a question with a set analysis.
I have two analyzes to do on a sum, I have to add the income in one period.
For this I made the following formula
=SUM({$<[DESC_GRUPO_B] = {INGRESOS},MES={$(=only(vMes))}>}IMPORTE)*-1
In this case "vPeriodo" is a variable that I bring from the scrip, even if it can be taken out by formula would be better.
But I do not know what can be wrong that is not correctly performing the sum, it says 0.
I hope you can help me.

1 Solution

Accepted Solutions
vamsee
Specialist
Specialist

May be try


SUM({$<[DESC_GRUPO_B] = {'INGRESOS'}, MES={"$(vMes)"}>}IMPORTE)*-1

View solution in original post

3 Replies
vamsee
Specialist
Specialist

May be try


SUM({$<[DESC_GRUPO_B] = {'INGRESOS'}, MES={"$(vMes)"}>}IMPORTE)*-1

Anonymous
Not applicable
Author

Resolved!, This solution worked well. Thank you.

vamsee
Specialist
Specialist

Glad to hear it worked for you.

---------------------------------------------

When applicable please mark the appropriate replies as CORRECT https://community.qlik.com/docs/DOC-14806. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads as HELPFUL if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads as HELPFUL if you feel additional info is useful to others.