Sort Option in Quicksight is not working

I use this funtion below as Rank function, and Quicksight sorting is not working for me, how can I solve it?

I cannot add Rank into dimension. It is not allow me to convert to dimension

This function is hightlight in white in the screenshot:
denserank([ifelse(denseRank([{latest transact_date_by_Wk/Mo} DESC])-1<=${RollingNWksMonths},SumOver({Last N wk/mo net Dollar applied},[trim(carriergroupname)]),NULL) DESC])
Screenshot 2024-02-15 at 10.59.28 AM

Hi @yingkz
couldn’t you use it in the values?
BR

values did not have sort showing up

You can use the “sort by” option in the rows.
grafik

@ErikG I do use this option but it does not work

I select carriergroupname and sort by rank it does not work, if I sort by other field it works

And the rank result is correct? On your screenshot it’s hard to tell.

Hi @yingkz,

Checking in. We have not heard back from you regarding your question. We’d still like to help. If we do not hear back in the next 3 days, we will archive the question.

Regards,
Arun Santhosh
Pr QuickSight SA

Yes @ErikG , The rank is correct.

Maybe you can share a Arena or sample data, that we can work on the same data?

@yingkz any update on your side?