Is there a good way to 'group by' a date/time field in local time?

mugi-san
Kilo Sage

Is there a good way to 'group by' a date/time field in local time?

 

It seems that although you can handle dates as a time series, you cannot 'group by' year, month, day, hour, or minute.For example, it seems that it is not possible to create a graph that groups data by hour or a graph that displays totals by year.

 

Is there a good solution to resolve this in Platform Analytics? It seems that 'GlideFunction' is not useful because we need local time, not GMT.

2 ACCEPTED SOLUTIONS

Ankur Bawiskar
Tera Patron

@mugi-san 

that's correct.

It's not possible as per my understanding.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 10x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

Thanks, @Ankur Bawiskar .

Dear all.

 

The option to use a 'Data Table' was considered, but we encountered a limitation where percentage values cannot be hidden. As noted in the community link below, this appears to be a design constraint in ServiceNow.
Data visualization seems to be ill-suited for BI use cases.

 

https://www.servicenow.com/community/developer-forum/how-do-i-remove-percentages-from-tooltips-in-da...

 

MugTm09_0-1759624818712.png

 

 

View solution in original post

7 REPLIES 7

AndersBGS
Tera Patron

Hi @mugi-san ,

 

To group by year, month, day, hour etc. you should utilize the trend operator:

AndersBGS_0-1759211655789.png

 

If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.

Best regards
Anders

Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/

mugi-san
Kilo Sage

Dear all.

 

Thank you for your replies. Unfortunately, the current time series visualization feature you mentioned doesn't meet our users' needs.


ServiceNow is not a spreadsheet software, so visualization capabilities are limited.

 

Therefore, we're continuing to explore better ideas...

Dear all.

 

The option to use a 'Data Table' was considered, but we encountered a limitation where percentage values cannot be hidden. As noted in the community link below, this appears to be a design constraint in ServiceNow.
Data visualization seems to be ill-suited for BI use cases.

MugTm09_0-1759624604385.png