Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all,
currently my variable value is
vCurrentWeekk=Week(today())
so in expression I used : =Count({<WeekNumber={$(=vThisWeek)}>}id) this will only only this week data if I select other week in filter it is not reflecting so I tried below expression but its giving error
=if(GetSelectedCount()=0,week(today(),max(WeekNumber)))
create variable on front end with below expression
=if(GetSelectedCount(Week)=0,week(today()),max(WeekNumber))
now try this expression
=Count({<WeekNumber={"$(=vThisWeek)"}>}id)
or
=Count({<WeekNumber={"$(vThisWeek)"}>}id)
Update: Error corrected in variable expression
Try this
=Count({<WeekNumber={ "$(=Max(WeekNumber))" }>}id)
=if( GetSelectedCount()=0,week(today() ),max(WeekNumber))) // In this you forget ")"
May be missed parenthesis
=if(GetSelectedCount()=0,week(today()),max(WeekNumber))
still error in expression
still same error
Actually this is correct statement
=Count({<WeekNumber={ "$(=Max(WeekNumber))" }>}id)
Or
=IF( GetSelectedCount()=0, Week(Today()), Max(WeekNumber))
still the error in expression
May be this? Try and check
=Count({<WeekNumber={'$(=Week(Today()))'}>}id)
create variable on front end with below expression
=if(GetSelectedCount(Week)=0,week(today()),max(WeekNumber))
now try this expression
=Count({<WeekNumber={"$(=vThisWeek)"}>}id)
or
=Count({<WeekNumber={"$(vThisWeek)"}>}id)
Update: Error corrected in variable expression
Try this as well
=Count( {<WeekNumber={ "$(=Max(WeekNumber))" }>} id )
Or
=Count( {<WeekNumber={ '$(=Max(WeekNumber))' }>} id )
Or
=IF( GetSelectedCount()=0, Week(Today()), Max(WeekNumber))
Or
=IF( GetSelectedCount() = IsNull(), Week(Today()), Max(WeekNumber))