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 obtain a value

Hi, i have problem for obtain a value.

I obtain the value Real AC. I do this with max(Real AC)  = 99.37% and it works well but i need obtain the value Ppto AC = 99.98% and i don't know do this.

I am work into simple table..

datos.PNG

Helps me please.

1 Solution

Accepted Solutions
sunny_talwar

May be this:

FirstSortedValue([Ppto AC], -[Real AC])

Update: Removed the - sign next to Ppto AC based on Alejandro's response

View solution in original post

6 Replies
alexdataiq
Partner - Creator III
Partner - Creator III

It's not very clear to me what you want to achieve. Wouldn't a simple  Max(Ppto AC) do the trick? Are you doing filter/selections based on Fecha?

If you could provide more details or maybe a sample application with your data it would be easier to assist you.

Regards

sunny_talwar

May be this:

FirstSortedValue([Ppto AC], -[Real AC])

Update: Removed the - sign next to Ppto AC based on Alejandro's response

alexdataiq
Partner - Creator III
Partner - Creator III

That is neat! Why is the minus sign needed in the first parameter? Wouldn't that return a negative value?


Regards

sunny_talwar

My bad, that is a typo

Not applicable
Author

Thanks for you answer.

But if i write max(Ppto AC), I view 100% always and this is wrong.

The dimension of the table is the proyect, i need know the advance of proyect. This is la view i need:


real advance vs advance budget

datos 2.PNG

p1 Advance constProy(P) = 99.98% (the budget must be equivalent to real progress)

Thanks!

Not applicable
Author

Perfect. Thank you very much!!