Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How do I get a different value to the current row in a flat table

Hello everybody

I have a table with values, levels, descriptions, etc.

In this example i need to know in every level 3, the value of their level 1

I tried with

If( nivel = 3, Aggr(NODISTINCT Sum(Cantidad), P1N3, Estado), 0)

In the first group, the quantity is correct (201,340,001)

But in the second group is wrong (31,442,845) must be (80,333,635)

The difference is cause the last level 2 does not have a level 3 (48,890,790)

I've been trying different ways but I can't get the right result

What do you think, is this possible ??

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Try maybe like attached

View solution in original post

2 Replies
swuehl
MVP
MVP

Try maybe like attached

Not applicable
Author

That's the right solution

I have another levels and info, but using your example, i got the right results

Thanks a lot Swuehl