Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
v_nicolino
Contributor
Contributor

Qlikview - Barchart - Order Weeks Across Years

Hi,

I need to order a barchart week dimension across last 3 years. See attached image

The week number 1, with years 2017 and 2018, is always at left of chart,

ImmagineQW.png

Have you a solution?

6 Replies
Anil_Babu_Samineni

Are you going to have DESCENDING order?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
martinpohl
Partner - Master
Partner - Master

create week as dual

dual (weekyear(date)*100+week(date),week(date)) as week

so you have

201651

201652

201701

regards

MarcoWedel

What is your expected result?

v_nicolino
Contributor
Contributor
Author

The problem is not resolved. I'have sorted weeks and years as numeric value asc.

ImmagineQW2.png

v_nicolino
Contributor
Contributor
Author

i expect this:


ImmagineQW3.png

Dimensions are:

week(DATE1) and year(DATE1)

The expression is:

=sum({1< DATE1 = {"<=$(=GetFieldSelections(DATE1))>=$(=dataMin)"}>+< DATE1 = {"<=$(=dataMaxAp1)>=$(=dataMinAp1)"}> } Pezzi/6)

Anil_Babu_Samineni

If possible please post sample test application

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful