Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Ayuda de la función de conmutación

Estoy intentando cambiar la función para crear una nueva columna.

SWITCH(Query1[Month_New],"Enero",01,"Febrero",02,"Marzo",03,"Abril",04,"Mayo",05,"Junio",06,"Julio",07,"Agosto",8,"Septiembre",9,"Octubre",10,"Noviembre",11,"Diciembre",12)
en la salida no estoy geeting 01 para el janurary. Estoy recibiendo 1 sólo
4 REPLIES 4
az38
Community Champion
Community Champion

Hola @ra20067

tratar de usar cuotas

SWITCH(Query1[Month_New],
"January","01",
"February","02",
...,
"12")

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
Anonymous
Not applicable

No está funcionando

az38
Community Champion
Community Champion

@ra20067

también cambie el tipo de columna a Texto en la cinta de herramientas Columna


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
Anonymous
Not applicable

Gracias por la solución

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors