Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Day

Hi,

I want to show first seven days starting from today in the X axis of a chart.(ex 28 to 4)

Actually I have a field named 'Day' which contains data from 1 to 31.

I tried taking calculated dimension as: if(Day>=day(today()) and Day<day(today()+7),Day), but it doesn't help.

Please suggest.

3 Replies
sushil353
Master II
Master II

Try this:

Sum({<Day={">=$(=Day(today())) <=$(=Day(today())+7)"}>}Sales)

or

Sum({<Datefield={">=$(=today()) <=$(=today()+7)"}>}Sales)

HTH

Anonymous
Not applicable
Author

don't require sum of sales

MK_QSL
MVP
MVP

Use as below..

=Day(IF(YourDateField>= Today() and YourDateField< Today()+7, YourDateField))

Tick Suppress When Value is Null