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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
that_anonymous_guy
Contributor III
Contributor III

Weekname is not giving correct result

I have converted my date using weekname in the script and it is week/year format when I am previewing it in the model but when I'm using the same in qlik sense chart it is coming again as a date format. 

Could anyone help me rectify what the issue is?

1 Solution

Accepted Solutions
that_anonymous_guy
Contributor III
Contributor III
Author

Thank you everyone for your efforts. Nothing worked so changed the dimension as year(date)&'-'&week(date) to get it done.

View solution in original post

3 Replies
sidhiq91
Specialist II
Specialist II

@that_anonymous_guy  Could you please try the below code?

NoConcatenate
Temp:
Load Date(Date#(Date, 'MM/DD/YYYY'),'MM/DD/YYYY') as Date,
Sales
inline [
Date, Sales
1/17/2023, 10
1/10/2023, 50
1/03/2023, 100
];


NoConcatenate
Temp1:
Load WeekName(Date) as Week,
Sales

Resident Temp;

Drop table Temp;

Exit Script;

If this resolves your issue, please like and accept it as a solution.

sidhiq91_0-1673937550246.png

 

Mark_Little
Luminary
Luminary

Hi,

If the suggestion doesn't help can you share some more information. 

Share the script around the date and weekname formatting

What chart are you using, what properties are set

 

that_anonymous_guy
Contributor III
Contributor III
Author

Thank you everyone for your efforts. Nothing worked so changed the dimension as year(date)&'-'&week(date) to get it done.