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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

sort in minichart

Hi,

I've made a minichart where months is the dimension. If i look at the values in the list box they are represented correct. Hence;

Jan

Feb

Mar

Apr

May

Jun

Jul

Aug

Sep

Oct

Nov

Dec

But in my minichart the first value is from April. What am i doing wrong?

Thanks in advance,

//A.

1 Solution

Accepted Solutions
derekjones
Creator III
Creator III

OK, then you could try adding a table to store Month and Month Number (see below). This way you can add a sort field of Month_No to your chart and keep it hidden so only Month Name shows?

Probably not the cleanest way of doing it, but it works.

MonthMonth_No

Jan
1
Feb2
Mar3
Apr4
May5
Jun6
Jul7
Aug8
Sep9
Oct10
Nov11
Dec12

View solution in original post

12 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

   Can you upload the Qvw file.

Thanks,

Kaushik Solanki

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

Is it presenting the data alphabetically? i.e.

Apr
Aug
Dec
Feb

Jan
Jul
Jun
Mar
May
Nov
Oct
Sep
Anonymous
Not applicable
Author

Yes, it does.

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

    Try this

    Go to the properties of chart-> sort- >select the minichart expression> select load order

Regards,

Kaushik Solanki

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

Problem is that i've made this minichart in the listbox as an expression. The only thing i can sort is the dimension in the list box so to speak.

//A.

derekjones
Creator III
Creator III

OK, then you could try adding a table to store Month and Month Number (see below). This way you can add a sort field of Month_No to your chart and keep it hidden so only Month Name shows?

Probably not the cleanest way of doing it, but it works.

MonthMonth_No

Jan
1
Feb2
Mar3
Apr4
May5
Jun6
Jul7
Aug8
Sep9
Oct10
Nov11
Dec12
derekjones
Creator III
Creator III

See attached example...

Anonymous
Not applicable
Author

Understood.

Yes your minicharts is sorted alphabetic, I dont think there is a way to sort this in your minicharts (as far as I know)

You should do this in your script, some how.

But I think DerekJones answer is the easiest. Then you can just change the dimension of your mini charts to Month_No , right?

Anonymous
Not applicable
Author

Yes! That'll do it! Thanks!

But have another problem that's similar. Maybe i should do the same thing but i have a MonthYear filed aswell in this format;

Apr-2009

And this one is also sorted alphabetical at the moment.

//A.