Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have a dimension in a chart that shows all the weekdays, hence, my dimesion is an expression weekday(Date).
But, i only want to display the workdays (Monday, Tuesday, Wednesday, Thursday , Friday). So exlude Saturday and Sunday.
What to do?
//A.
Hi,
Weekday(Date) returns week in characters like Mon/Tue/Wed etc.
So, use this in you Dimension
=If(WeekDay(Date) * 1 < 5, WeekDay(Date) )
As WeekDay(Date) * 1 return numeric week number like 0,1,2,..
Hope this helps you.
Regards,
Jagan.
Try maybe
=if(weekday(Date)<5, weekday(Date) )
as calculated dimension.
Hi,
Weekday(Date) returns week in characters like Mon/Tue/Wed etc.
So, use this in you Dimension
=If(WeekDay(Date) * 1 < 5, WeekDay(Date) )
As WeekDay(Date) * 1 return numeric week number like 0,1,2,..
Hope this helps you.
Regards,
Jagan.
Hi,
Yes, you are correct, but when checked this
=WeekDay(Today()) in Text object it is displaying Mon. then
I tried =WeekDay(Today())*1, it works fine.
I am currently using QV 9.0 SR2, I don't know whether it is fixed in future versions.
Regards,
Jagan.