The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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!
User | Count |
---|---|
77 | |
77 | |
36 | |
32 | |
29 |
User | Count |
---|---|
93 | |
79 | |
57 | |
48 | |
48 |