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: 
terezagr
Partner - Creator III
Partner - Creator III

Set analysis show value where most recent sale was made

I am trying to build a set analysis that would give me a value where most recent sale was made.

My data is as following:

Month   Sale    Company

1          0          A

2          10        B

3           3        A

4           5         B

In this case I would like to see the following

Company       Sale

A                     3

B                     5

Any suggestions?

1 Solution

Accepted Solutions
Gysbert_Wassenaar

Use the firstsortedvalue function: firstsortedvalue( Sale, -Month)


talk is cheap, supply exceeds demand

View solution in original post

4 Replies
Gysbert_Wassenaar

Use the firstsortedvalue function: firstsortedvalue( Sale, -Month)


talk is cheap, supply exceeds demand
stigchel
Partner - Master
Partner - Master

Not sure why you want to use set analysis, for expression with company as dimension you can use

FirstSortedValue(Sale,-Month)

kavita25
Partner - Specialist
Partner - Specialist

Check the qvw.

Hope it helps you...

terezagr
Partner - Creator III
Partner - Creator III
Author

Brilliant, thank you...not sure why I was immediately thinking about set analysis