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: 
jadams123
Creator
Creator

sort and field question

Hi Guys:

My first question is pretty basic:

1) i have a field [Week No] and i want to only show Week 1, 2, 3, 4, 5, 6. How would i do that. I tried Week no = {1, 2, 3, 4, 5, 6} but i know this is wrong.

my second question is a bit complicated (sorting):

I made this calculated dimension. I want it to display as WK14, WK15, WK16 etc.

Week formula is:

=pick(match(-1,

YEAR = '2017' and DAY >= 2415 and DAY <= 2421 ,

YEAR = '2017' and DAY >= 3183 and DAY <= 3189 ,...

'WK1', 'WK2, 'WK3')

Day formula is:

=pick(match(-1,

GLYEAR = '2017' and DAYNO = 2415 ,

GLYEAR = '2017' and DAYNO = 2416 , ....

'Sun', 'Mon', Tue'...)

WEEK.PNG

Thanks,

J

3 Replies
el_aprendiz111
Specialist
Specialist

Hi,

1- Use a master calendar

2- you have a sample of data in Excel

Anil_Babu_Samineni

For first one like this

If(match([Week no] , '1', '2', '3', '4', '5', '6'))


Second one still trouble shooting

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
jadams123
Creator
Creator
Author

i solved it...took me i think 2 weeks...but its this:

dual('WK' & num(14), num(14)),
dual('WK' & num(15), num(15)),
dual('WK' & num(16), num (16)),
dual('WK' & num(17),num(17)),

Now i have to learn how to do (sun, mon, tue....) errrr