Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all
How to delete Negative Weeks "-51,-50,-49,-48,....." like in Calendar
Question is How you get these negative weeks? May be your logic is wrong somewhere in script !
You can add a simple condition in your listbox, something like:
If(week < 0, Null(), week)
but the question is: why do you have negative weeks?
Take a look to your data ...
Hi madhu,
that is a very interesting scenario - how did you calculate negative weeks to begin with?
Knowing how you did that might help us advise you as to how to get rid of them.
HTH
How you are calculating week?
if(Year(tmp_Date)=WeekYear(tmp_Date), Week(tmp_Date) - Week(MonthStart(tmp_Date)) + 1, Week(tmp_Date) + 52 - Week(MonthStart(tmp_Date)) + 1) AS [Week in Month],
if(Year(tmp_Date)=WeekYear(tmp_Date), Week(tmp_Date) - Week(MonthStart(tmp_Date)) + 1, Week(tmp_Date) + 52 - Week(MonthStart(tmp_Date)) + 1) AS [Week in Month],
Can you explain the logic behind this calculation please?