How to create a sales by days range visualization

Hi,

I am trying to create a graph with sales in Y-axis vs Days range in x axis

I will have days range for example- 1-25, 25-50,50-75,>75 on X-axis and Y axis would be sales.

How do I calculate a day range if I have to using todays date and a start date. I want to put those day range in buckets and visualize my data.

Hi biuser,

Can you let me know if this solves your issue?

ifelse(
dateDiff(now(),{date_field})<=25,ā€˜1-25ā€™
,dateDiff(now(),{date_field})<=50,ā€˜25-50ā€™
,dateDiff(now(),{date_field})<=75,ā€˜50-75ā€™,
ā€˜75+ā€™)

Thanks!

1 Like

Thank you so much @Peter . Appreciate your help on this!

1 Like