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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Contracted Table

Hy, I have a table:

Month    Day     Value

1            1           12

1            2           23

1            3           15

1            4           20

1            5           30

When I Contracted the field day the values are add, for example:

Month       Value

1     +        100

All the values are add.

When I contracted the table, I want to pick the last value only, for example:

Month    Value

1            30

Can you help me??

Thanks a lot.

12 Replies
maxgro
MVP
MVP

a:

load * inline [

Month ,   Day,     Value

1      ,      1,           12

1       ,     2 ,          23

1        ,    3  ,         15

1         ,   4   ,        20

1          ,  5    ,       30

2       ,     2 ,          23

2         ,   4   ,        20

2        ,    3  ,         15

];

if(Dimensionality()=2,sum(Value), subfield(concat(Value, '@', -Day),'@',1))

1.png

Clever_Anjos
Employee
Employee

Veja se atende

=if(Dimensionality()=4,sum(SALDOFISFINAL),sum({<DIA={"$(=MAX(DIA))"}>}SALDOFISFINAL))

Anonymous
Not applicable
Author

Funcionou, muito obrigado.