Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
cristianj23a
Partner - Creator III
Partner - Creator III

Sort year and month

I am trying to sort my simple table in year and month.

But from 2017 begins with the month of March.

Tatre to classify concatenando the year and the month, converting in format number to order from minor to major, but it remains the same.

AñoMes.PNG

Please help me on this topic.

Thank you.

I attach an example of qvw and excel.

https://www.linkedin.com/in/cristianjorge/
Do not forget to mark as "Accepted Solution" the comment that resolves the doubt.
1 Solution

Accepted Solutions
hic
Former Employee
Former Employee

You can use any one of the following two expressions to define a new Ano_Mes

MonthName([Fecha de Ejecución]) as Ano_Mes

Date(MonthStart([Fecha de Ejecución]),'YYYY MMM') as Ano_Mes


Both expressions will produce a Dual that can be sorted numerically, to get the dates in the right order.


HIC

View solution in original post

3 Replies
antoniotiman
Master III
Master III

Hi Cristian,

what about to change Dimension from Ano_Mes to MonthName([Fecha de Ejecución]) ?

Regards,

Antonio

hic
Former Employee
Former Employee

You can use any one of the following two expressions to define a new Ano_Mes

MonthName([Fecha de Ejecución]) as Ano_Mes

Date(MonthStart([Fecha de Ejecución]),'YYYY MMM') as Ano_Mes


Both expressions will produce a Dual that can be sorted numerically, to get the dates in the right order.


HIC

cristianj23a
Partner - Creator III
Partner - Creator III
Author

Hi Antonio.

The user wants to display the year and month concatenated.

I found the solution, thanks antonio.

Greetings.

https://www.linkedin.com/in/cristianjorge/
Do not forget to mark as "Accepted Solution" the comment that resolves the doubt.