Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
paulyeo11
Master
Master

YearQtr unable to display from left to right

Hi All

I have a script that generate Yr Qtr , it work fine :-

Right(year(date),2) & '-Q' & ceil(Month(date)/3)                                                                        as [YearQtr],

But today i want my chart latest date start from left side , and i notice that it is not able sort from Hi to Lo.

Hope some one can share with me how to change the above script ?

PAul

10 Replies
paulyeo11
Master
Master
Author

My QV Doc

suniljain
Master
Master

I tried solution in your application and it is working fine.

please write date field  in expresion of sort tab and set descending order. it is working fine.

paulyeo11
Master
Master
Author

Hi Sunil

I try to set the way you said , but it still not work.

Paul

paulyeo11
Master
Master
Author

Hi Sunil

Can you attach the QV doc for me to see ? As i still struggle with this.

PAul

Sokkorn
Master
Master

Hi Paul,

It sound you tried to sort decending. Ok, now let try in "Sort" by expression =(Left($(ColumnDim_p),2) * 10) + Right($(ColumnDim_p),1)

Sort.png

Let me know, if this one is what you looking for.

Regards,

Sokkorn

paulyeo11
Master
Master
Author

Hi Sokkom

Thank you for your proposal . I try your approach , work on Qtr Yr but now year have problem.

Paul

Sokkorn
Master
Master

Hi Paul,

I try SubField in "Sort" tab then work for me.

=(SubField($(ColumnDim_p),'-',1) * 10) + Right($(ColumnDim_p),1)

Sort.png

Let apply to your app whether it work at your environment or not.

Regards,

Sokkorn

paulyeo11
Master
Master
Author

Hi Sokkom

Kindly attach your QV Doc , as i am still not able to make it work.

PAul

Sokkorn
Master
Master

Hi Paul,

Please check my attached file.

Regards,

Sokkorn