Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Problem with set analysis in table

Hello,

I have a problem with a column in wich I am using set analysis. I attached an example with my problem.

Captura.PNG

I have two tables, "Epigrafes" and "Movimientos". Both are related by the column Cuenta.

What I need is to modify the expression of column "Total" in the table "Resultado" to display the sum of the amounts ("Importes") for column related FilaTotal.

Example:

Captura.PNG

This is what I need. Rows 3, 4 and 5 have to show the sum of row 5. And 6, 7, 8 and 9 rows the sum of row 9.

I've tried with the expression: =SUM({$<Epigrafe=,Orden={'=FilaTotal'}>}Importes)

but it doesn't works.

Can you help me?

Best regards,

Oscar Iglesias.

1 Solution

Accepted Solutions
Not applicable
Author

Hello,

Please try with this expression

=sum( total <FilaTotal> match(FilaTotal,Orden)*Importes)

you have to add in your chart the dimension FilaTotal, but you can hide the column if it is a problem

Regards,

Benoît

View solution in original post

3 Replies
Not applicable
Author

This solution is not valid, to use the "max" does not always return the correct value. If the amount change sign as deputy qvw that no longer works.

Some solution.

Not applicable
Author

Hello,

Please try with this expression

=sum( total <FilaTotal> match(FilaTotal,Orden)*Importes)

you have to add in your chart the dimension FilaTotal, but you can hide the column if it is a problem

Regards,

Benoît

Not applicable
Author

Thank you very much for your answer, it works.

Regards,

Oscar Iglesias.