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: 
NavinReddy
Creator II
Creator II

Week

Hi Community,

I have Week table

How should i find out date start from Sundays-Saturday

could some one help me

Thanks in Advance

rohith

1 Solution

Accepted Solutions
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     Do you mean you want legends to be at the bottom of the chart.

     If yes then click on the chart press Shift+Ctrl and then drag the legend to the bottom of the chart.

Regards,

Kaushik Solanki

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

View solution in original post

13 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     You can create a flag in script which will number the days starting from Sunday to Saturday.

     Below code will help you to create a flag

Let vMin = num(MakeDate(2012,01,01));
Let vMax = num(MakeDate(2012,12,21));

Load Date($(vMin) + RowNo() -1) as DATE,
  WeekDay(Date($(vMin) + RowNo() -1)) as WEEKDAY,
  if(num(WeekDay(Date($(vMin) + RowNo() -1)))=6,1,NUm(WeekDay(Date($(vMin) + RowNo() -1)))+2) as WEEK_NUM
AutoGenerate 1
while Date($(vMin) + RowNo() -1) < Date($(vMax));

Regards,

Kaushik Solanki

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

Hi kaushik,

No need to be display every thing

Latest week should only i need to be disyplay

Thanks

Rohith

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     Sorry I didnt got what you mean by everything,

Regards,

Kaushik Solanki

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

Hi,

From that table i need to be display last week of data(Sunday-Saturday)

Thanks,

rohith

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     Do you mean to say that you only want to show the Sunday and Saturday's Date and its relevant data?

Regards,

Kaushik Solanki

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

Yes,exactly kaushik

Previous Week (Mar 7, 2013 - Mar 14, 2013) format

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

So,

     If you mean you want to show only the last week data in chart then use the following set analysis.

     Sum({<Date = {">=$(=Date(WeekStart(Today())-7)<=$(=date(weekend(today())-7))"},Month=Year=,Week=>}Sales)

     If you dont want that data at all in the application, you can filter the same way when you are loading the data.

Regards,

Kaushik Solanki

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

Thank you Kaushik

NavinReddy
Creator II
Creator II
Author

Hi kaushik,

i have two expressions ,these are in right side of chart

How can i set these expression in buttom of the chart

thanks,

rohith