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: 
danialier
Creator III
Creator III

Formula that points to the last date

Hello,

I have months written as follows: 201301 (January 2013), 201302 (February 2013), 201303,.......

Is there any formula when editing the expression that can refer to the last perfiod by default (this would be 201303 in the example above) ? Taking into account the way I write the perdios it should be a formula that points to the highest number.

Please help !

dani

5 Replies
sunilkumarqv
Specialist II
Specialist II

Can more specfic what you trying to say?

Not applicable

Dani,

You can do it either in the script to store your result into a variable,

or in the UI with FirstSortedValue(Month, -Month, 1)

Fabrice

danialier
Creator III
Creator III
Author

Yes, sorry. I need a formula that gives me the numbers of revenues for the last period (whatever is the last period).

MK_QSL
MVP
MVP

Try...

1)      =FirstSortedValue(Period,-Period)

2)      =Date(Max(Date#(Period,'YYYYMM')),'YYYYMM')

Not applicable

FirstSortedValue(Revenue, -Month, 1)

Fabrice