Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content
Announcements
Gartner® Magic Quadrant™: 15 YEARS A LEADER - GET THE REPORT
cancel
Showing results for 
Search instead for 
Did you mean: 
juanvr10
Contributor
Contributor

Transformar un digito al nombre de Mes

Hola Estimados. Espero me puedan ayudar con este problema que he tratado de resolver de distintas formas pero no he llegado a la solución.

Tengo en un campo llamado PERIODO un texto que junta año y mes, de esta forma "2018-01","2018-02","2018-03" y asi sucesivamente. Lo que necesito es poder mostrar en una tabla solo el mes, pero con palabras, asi: "ene","feb","mar", .....

Lo estoy haciendo de esta forma pero no me funciona.

MonthName (mid([Período],6,2),'MMM') as Mes

Anteriormente separé el año y me funcionó sin problemas.

Me pueden ayudar por favor?

Gracias!!!

1 Solution

Accepted Solutions
breno_morais
Partner - Contributor III
Partner - Contributor III

Hello

You can use this:

Date(Date#([Período],'YYYYMM'), 'MMM')



If maybe you need put in filter for select especific Month use this:

Text(Date(Date#([Período],'YYYYMM'), 'MMM'))


If it's a correct answer, mark CORRECT


View solution in original post

3 Replies
breno_morais
Partner - Contributor III
Partner - Contributor III

Hello

You can use this:

Date(Date#([Período],'YYYYMM'), 'MMM')



If maybe you need put in filter for select especific Month use this:

Text(Date(Date#([Período],'YYYYMM'), 'MMM'))


If it's a correct answer, mark CORRECT


juanvr10
Contributor
Contributor
Author

Thanks a lot.

The second choice works for me!!!

Regards

Juan

breno_morais
Partner - Contributor III
Partner - Contributor III

Good, mark correct answer for close this Topic.