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: 
praveenpurush6
Contributor III
Contributor III

Show only Friday date labels in Continuous X-axis?

Hi All,
I have a chart with a continuous x-axis in which I would like to show only the Friday dates in the x-axis labels.

For example, for the below table I need to show labels only for 1/5/2018 and 1/12/2018.

Dates               Values

1/1/201813
1/2/20185
1/3/201836
1/4/201823
1/5/201818
1/6/201846
1/7/201848
1/8/201814
1/9/201821
1/10/201833
1/11/201828
1/12/201825
1/13/201828
1/14/201837
1/15/201815
1/16/201811
1/17/201847

Any help?

Thanks!

9 Replies
shiveshsingh
Master
Master

may be this dimension.

if(WeekDay(Dates)='Fri',Dates)

bramkn
Partner - Specialist
Partner - Specialist

This should work, and It might even be better to add a field in script with this if and use that field as the dimension.

shiveshsingh
Master
Master

Yes, that can also help.

MarcoWedel

Does it have to be a continuous dimension axis?

I guess this requirement would be easier implemented using a discrete axis.

regards

Marco

adityaakshaya
Creator III
Creator III

Hi Praveen,

You can limit you values using expression too.

if(WeekDay(Dates)='Fri',sum(Values))

Regards,

Akshaya

praveenpurush6
Contributor III
Contributor III
Author

Hi Akshaya,

Doing this will filter down the dates to Friday only right?

I need to show Friday dates on labels only.

One option I can think off is having the first date as a Friday date and keep 7 or 14 in the static step field.

shiveshsingh
Master
Master

What issue are u getting in calculated dimension?

tamilarasu
Champion
Champion

Hello Praveen,

May be this?

=Dual(If(WeekDay(Date)='Fri',Date,''),Date)   

praveenpurush6
Contributor III
Contributor III
Author

Thanks for replies, everyone.

I replaced the minimum date as a Friday date and added a static step value...now everything looks fine.

Thanks again.