Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Holas amigos
muchas gracias por ayudarme en el porcentaje de crecimiento excelente, he elaborado un grafico pero los meses estan desordenados, como ordenarlos he utilizado sort ascendent y tambien sort by column pero sin resultado.
solo tengo una tabla con estas tres columnas, como les puedo enviar el archivo tienen un email?.
muchas gracias
Año | Meses | ventas |
2017 | enero | $ 3.9M |
2017 | febrero | $ 3.8M |
2017 | marzo | $ 4.4M |
2017 | abril | $ 5.1M |
2017 | mayo | $ 5.0M |
2017 | junio | $ 4.4M |
2017 | julio | $ 4.9M |
2017 | agosto | $ 4.8M |
2017 | septiembre | $ 4.4M |
2017 | octubre | $ 5.2M |
2017 | noviembre | $ 6.0M |
2017 | diciembre | $ 4.6M |
Solved! Go to Solution.
Hi @Ricardo1,
You need to add a column with the month number and then sort the column Meses by that new column. You should follow this steps:
M Language (Query Editor) if [Meses] = "enero" then 1 else if [Meses] = "febrero" then 2 else if [Meses] = "marzo" then 3 else if [Meses] = "abril" then 4 else if [Meses] = "mayo" then 5 else if [Meses] = "junio" then 6 else if [Meses] = "julio" then 7 else if [Meses] = "agosto" then 8 else if [Meses] = "septiembre" then 9 else if [Meses] = "octubre" then 10 else if [Meses] = "noviembre" then 11 else if [Meses] = "diciembre" then 12 else null
Sort_DAX = SWITCH ( Sales[Meses]; "enero"; 1; "febrero"; 2; "marzo"; 3; "abril"; 4; "mayo"; 5; "junio"; 6; "julio"; 7; "agosto"; 8; "septiembre"; 9; "octubre"; 10; "noviembre"; 11; "diciembre"; 12; BLANK () )
Check the documentation attach with full details.
Regards
MFelix
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHello Ricardo1, You could share the answer they gave you with the percentage of growth. Thank you
Hi @Ricardo1,
You need to add a column with the month number and then sort the column Meses by that new column. You should follow this steps:
M Language (Query Editor) if [Meses] = "enero" then 1 else if [Meses] = "febrero" then 2 else if [Meses] = "marzo" then 3 else if [Meses] = "abril" then 4 else if [Meses] = "mayo" then 5 else if [Meses] = "junio" then 6 else if [Meses] = "julio" then 7 else if [Meses] = "agosto" then 8 else if [Meses] = "septiembre" then 9 else if [Meses] = "octubre" then 10 else if [Meses] = "noviembre" then 11 else if [Meses] = "diciembre" then 12 else null
Sort_DAX = SWITCH ( Sales[Meses]; "enero"; 1; "febrero"; 2; "marzo"; 3; "abril"; 4; "mayo"; 5; "junio"; 6; "julio"; 7; "agosto"; 8; "septiembre"; 9; "octubre"; 10; "noviembre"; 11; "diciembre"; 12; BLANK () )
Check the documentation attach with full details.
Regards
MFelix
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsMuchas gracias!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
98 | |
77 | |
66 | |
53 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |