Page 1 of 2

Bad Date Ordering in Pivot Tables

Posted: 03 May 2019, 12:42
by elviseras
Hi,

When making a report with Pivot Tables about progression of amount of support tickets over time, there is a problem with data sorted alphabetically because when using a date field this order is not valid and should be sorted by date. See the attached images....
Pivot_Tables_BadDateOrdering_1.png
Pivot_Tables_BadDateOrdering_2.png

I would appreciate it if you reviewed it as soon as possible...

Regards

Re: Bad Date Ordering in Pivot Tables

Posted: 06 May 2019, 07:53
by rmcdonald
Yes we have the same problem - had to number the months and limit the year to get around it a little

Re: Bad Date Ordering in Pivot Tables

Posted: 07 May 2019, 08:51
by support
Yes, there is issue with this report. It always use alphabetic order. You can configure data format so as solution just add year and month number at the start.

Re: Bad Date Ordering in Pivot Tables

Posted: 07 May 2019, 20:28
by elviseras
Hi Sergey,
You can configure data format so as solution just add year and month number at the start.
Can you tell me how to configure this ?? I've tried but I can not get it to work...

Re: Bad Date Ordering in Pivot Tables

Posted: 07 May 2019, 21:07
by support
When you setup fields for pivot report you can configure custom date format. See attached

Re: Bad Date Ordering in Pivot Tables

Posted: 07 May 2019, 22:42
by elviseras
Ok Sergey thanks..now I understand

Just one more thing .. Is it possible to insert some character in the date format, in addition to the space? How should I write it so that it is not identified as a date variable?

regards

Re: Bad Date Ordering in Pivot Tables

Posted: 07 May 2019, 23:01
by support
Just try it.

Re: Bad Date Ordering in Pivot Tables

Posted: 08 May 2019, 21:55
by elviseras
Ohh, I've already tried it but it does not work. Example: I need to put the word "Week" to identify the weeks (Week 34, Week 35 and so on), but always interpret the variable W and enter the week number (34eek 34, 35eek 35 and so on).

I've already tried putting it between single quotes ' and double quotes " but it does not work either

Re: Bad Date Ordering in Pivot Tables

Posted: 08 May 2019, 22:47
by support
Well, then use just number.

Re: Bad Date Ordering in Pivot Tables

Posted: 11 May 2019, 08:15
by support
Also see documentation
https://www.php.net/manual/ru/function.date.php

Code: Select all

$today = date('\i\t \i\s \t\h\e jS \d\a\y.');   // it is the 10th day.
It means you can use "\" to insert custom text in format. So in your case format will be

Code: Select all

\W\e\e\k W
Let me know if it works.