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

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.

Reply
practicas1
Frequent Visitor

CAMBIO TIPO DE DATOS

Hola, tengo una duda, yo cargo mis archivos (.json) en powerbi, creo sus respectivas relaciones pero cuando quiero cambiar el tipo de datos de una columna que es categórica (sus valores son: V,T,X...) me sale error. Alguien sabe porqué no me deja cambiar esa columna a numérico?

7 REPLIES 7
v-frfei-msft
Community Support
Community Support

Hi @practicas1,

 

Did you get the error message like this? I think that should be the reson of your data in json file. Do make sure that all the data in the column could be covert to Decimal Number type. If the error still occur, kindly share your file to me.

 

2.PNG

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Hi Frank, the error is this. I send you 2 photos, the column MOV_TIP is text but I try to change date type (decimal number) but this is not possible. Do you know what is the problem? 

(sorry, my english isn´t good)

Captura.PNGCaptura2.PNG

Hi @practicas1,

 

Actually, you cannot change the data type of the column MOV_TIP here, as "V" is a kind of text string here. Maybe you can replace these text strings to number or filter these text strings out directly and change data type later. 

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

hi @v-frfei-msft.

como se haría eso? Gracias

Hi @practicas1,

 

Please refer to the pictures as below for the ways. 

 

1. Filtering the V out directly.

 

fil.PNG

 

2. To replace V with Number.

 

fil2.PNG

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Hi @practicas1,

 

Does that make sense? If so, kindly mark my answer as a solution to close the case.

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Hi @v-frfei-msft I tried to do it as you said but not work.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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