Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
soniasweety
Master
Master

Display name

Hi all,

i  have date field in the table 

but i want to show the  dimension like below

PFA.

day1 day2 day3

how can i get like this?

can anyone help??

8 Replies
qlikviewwizard
Master II
Master II

Upload some sample data.

tresesco
MVP
MVP

Try calculated dimension like:

='Day ' & Day(Date)

soniasweety
Master
Master
Author

but it is showing  by default day21 day22 day23 based on my date field

but i want fixed     i tried below but its not working

=if(DateName='Mon','Day1',

if(DateName='Tue','Day2',

if(DateName='Wed','Day3',

if(DateName='Thu','Day4',

if(DateName='Fri','Day5',

if(DateName='Sat','Day6',DateName))))))

tresesco
MVP
MVP

Use weekday() like:

='Day' & Num(WeekDay(Date))

soniasweety
Master
Master
Author

thanks

but  i want to exclude the sunday in the dimension  and  day1 to day6 i need now i am getting day0 to

tried this

='Day' &if(WeekDayName<>'Sun', Num(WeekDay(DateName)))

tresesco
MVP
MVP

Try putting the if condition first, like:

=if(WeekDayName<>'Sun', 'Day' & Num(WeekDay(DateName)))

qlikviewwizard
Master II
Master II

='Day' &if(WeekDay(DATE)<>'Sun',Num(WeekDay(DATE))+1)

MarcoWedel

Hi,

one solution might be:

QlikCommunity_Thread_303044_Pic1.JPG

QlikCommunity_Thread_303044_Pic2.JPG

QlikCommunity_Thread_303044_Pic3.JPG

table1:

LOAD *,

    WeekDay(Date) as WeekDay,

    'Day'&(WeekDay(Date)+1) as Day,

    Ceil(Rand()*100) as Value;

LOAD Date(YearStart(Today())+RecNo()-1) as Date

AutoGenerate DayNumberOfYear(Today());

hope this helps

regards

Marco