Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
Li_Bing
Contributor II
Contributor II

By default, only the last week of the date is displayed, but the bar will show the pick time dimension when the date is selected in another chart.

Dears,

Please refer to the picture. Since my bar chart is set to hourly dimension and date dimension, the metric is order count,

Since I have too much data in the date dimension of the bar chart, how do the bar chart control the date dimension? By default, only the last week of the date is displayed, but the bar chart will show the pick time dimension after the date is selected in another chart.

Thank you very much.

Labels (2)
2 Solutions

Accepted Solutions
Aditya_Chitale
Specialist
Specialist

Try this:

if(GetSelectedCount(Date),  Sum(Value) ,  Sum({=$(=weekstart(max(Date)))<=$(=max(Date))"}>}Value))

And uncheck 'include zero values' option under add-ons -> Data handling.

Regards,

Aditya

View solution in original post

Aditya_Chitale
Specialist
Specialist

Sorry, It was a copy mistake from my end.  Please use below expression

if(GetSelectedCount(Date),
Sum(Value)
,
Sum({<Date={">=$(=weekstart(max(Date)))<=$(=max(Date))"}>}Value)
)

 

Regards,

Aditya

View solution in original post

6 Replies
Aditya_Chitale
Specialist
Specialist

Try this:

if(GetSelectedCount(Date),  Sum(Value) ,  Sum({=$(=weekstart(max(Date)))<=$(=max(Date))"}>}Value))

And uncheck 'include zero values' option under add-ons -> Data handling.

Regards,

Aditya

Li_Bing
Contributor II
Contributor II
Author

  • This formula suggests an error. Is it formatted incorrectly?

Li_Bing
Contributor II
Contributor II
Author

Error in expression:'}'expected

Li_Bing
Contributor II
Contributor II
Author

  • Error in expression:'}'expected
  • This formula suggests an error. Is it formatted incorrectly?

 

Aditya_Chitale
Specialist
Specialist

Sorry, It was a copy mistake from my end.  Please use below expression

if(GetSelectedCount(Date),
Sum(Value)
,
Sum({<Date={">=$(=weekstart(max(Date)))<=$(=max(Date))"}>}Value)
)

 

Regards,

Aditya

Li_Bing
Contributor II
Contributor II
Author

  • It works. It's perfect. Thank you very much