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

max date in set operator

I have the following dataset. I am trying to get the latest three_year_fund_stdv_prod by using the following formula but it doenst work

max(  {$<dte={"=$(=max(dte))"}>}    three_yr_fund_stdev_prod)

I think there is an issue with my set operator

three_yr_fund_stdev_test three_yr_fund_stdev_prod            dte

0.34665516783936           0.34665516783936                     2013-03-01

0.35967874969951           0.35967874969951                     2013-02-01

0.3737224266293             0.3737224266293                       2013-01-01

0.38559724159305           0.38559724159305                      2012-12-01

0.40008534514359           0.40008534514359                      2012-11-01









































































three_yr_fund_stdev_testthree_yr_fund_stdev_proddte
0.346655167839360.346655167839362013-03-01
0.359678749699510.359678749699512013-02-01
0.37372242662930.37372242662932013-01-01
0.385597241593050.385597241593052012-12-01
0.400085345143590.400085345143592012-11-01
0.419615776366680.419615776366682012-10-01
0.408349271755270.408349271755272012-09-01
0.327476496564310.327476496564312012-08-01
0.35361703183980.35361703183982012-07-01
0.387346539384530.387346539384532012-06-01
0.340440961447460.340440961447462012-05-01
0.38626298240460.38626298240462012-04-01
0.328979194934730.328979194934732012-03-01
0.0819757078991390.0819757078991392012-02-01
1 Solution

Accepted Solutions
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     You expression is correct. All you need to do is just remove =. Have a look at the below expression.

     max(  {$<dte={"$(=max(dte))"}>}    three_yr_fund_stdev_prod)

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!

View solution in original post

3 Replies
CELAMBARASAN
Partner - Champion
Partner - Champion

Check with this

max(  {$<dte={"=$(=Date(max(dte)))"}>}    three_yr_fund_stdev_prod)

jagan
Luminary Alumni
Luminary Alumni

Hi,

Check whether date format in dte and Date(max(dte)) returns the date in same format, if not convert the date format.

Try like this

=max(  {$<dte={"=$(=Date(max(dte)))"}>}    three_yr_fund_stdev_prod)

or

=FirstSortedValue( three_yr_fund_stdev_prod, -dte)

Hope this helps you.

Regards,

Jagan.

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     You expression is correct. All you need to do is just remove =. Have a look at the below expression.

     max(  {$<dte={"$(=max(dte))"}>}    three_yr_fund_stdev_prod)

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!