質問
レポートのほとんどの部分で日付形式を変更しましたが、データヒントでは新しい形式が考慮されていません。データヒントの日付形式を変更するにはどうすればよいですか?
回答
データヒントの日付形式を変更するには、標準の計算属性を作成してレポートに追加します。たとえば、レポートがチケットデータセットに属し、 Ticket created-Date属性を使用している場合、次の式でカスタム属性を作成します。
DATE_FORMAT([Ticket created - Date],"DD-MM-YYYY")
次に、レポートのデータヒントを変更して、変更された属性を含めることができます。
詳細については、次の記事を参照してください:データヒントの操作。
翻訳に関する免責事項:この記事は、お客様の利便性のために自動翻訳ソフトウェアによって翻訳されたものです。Zendeskでは、翻訳の正確さを期すために相応の努力を払っておりますが、翻訳の正確性については保証いたしません。
翻訳された記事の内容の正確性に関して疑問が生じた場合は、正式版である英語の記事を参照してください。
7件のコメント
Justin
Hey Jon Bierma!
There are a couple of ways to get around this, and achieve what you're looking for. Going off of using the custom attribute Dave mentioned previously, you can create an ordered set to order these displayed values chronologically.
Another solution to abbreviating the dates and sorting in chronological order would be to use a time based, date attribute (i.e. Ticket Created - Date). If you apply this attribute to your query, you will be able to change the date format displayed in the query by going to Chart Configuration>Date Display Format and choosing a custom date format. To get the first 3 letters of the month and the year, you will want to enter the following into that field:
MMM YY
I hope this helps!
0
Jon Bierma
Hi Dave Dyson and Stephen Belleau - using "Mon" does provide the month's 3-letter abbreviation, but when used in Explore in a graph, the data is sorted on the axis in alphabetical order of months instead of chronologically. This can't be resolved using the Sort settings. Is there any way around this?

0
Dave Dyson
1
Stephen Belleau
Rockford Hipp turns out there is a way! MON (or mon or Mon, whatever case you prefer)
Dave Dyson can we add this to https://support.zendesk.com/hc/en-us/articles/4408834558746-Explore-functions-reference#topic_esm_5qg_dhb please? 😊
1
Dave Dyson
There isn't an argument you can supply to the DATE_FORMAT function that will give you the first three letters of the month, so you'll need to create a Standard Calculated Attribute with the following as the formula:
LEFTPART(MONTH([Ticket created - Date]),3)+"-"+YEAR([Ticket created - Date])
Hope that helps!
0
Rockford Hipp
I am having trouble generating the three-letter month name abbreviation. Is "MMM-YY" possible in Zendesk? Can I not do this because Explore wouldn't know how to sort in ascending order along a given axis? Thanks!

0
Richard Rijo Almeida
Olá Frank !
Agradeço pelo excelente artigo e me ajudou muito. Com base na orientação, fiz uma pequena alteração para ajustar a fórmula no idioma português e informar o carimbo com data + horário de criação.
0
サインインしてコメントを残します。