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
jpt1228
Responsive Resident
Responsive Resident

Column Data Type mixed numeric and text for calculations

Hello, I have a model that is erroring out in a fact table. My Customer DIM table has a numeric value for all customers with the exception of 3 of them which are text. When I load the fact table the column errors out if I have it set as a numeric column. When I change it to text I get an error for the text customer "numbers".

 

image.png

 

image.png

 

image.png

1 ACCEPTED SOLUTION
Eric_Zhang
Employee
Employee


@jpt1228 wrote:

Hello, I have a model that is erroring out in a fact table. My Customer DIM table has a numeric value for all customers with the exception of 3 of them which are text. When I load the fact table the column errors out if I have it set as a numeric column. When I change it to text I get an error for the text customer "numbers".

 

image.png

 

image.png

 

image.png


@jpt1228

In the Query editor window, try to cancel any change type steps and change that column to text from the Source step.

 

Capture.PNG

View solution in original post

3 REPLIES 3
Eric_Zhang
Employee
Employee


@jpt1228 wrote:

Hello, I have a model that is erroring out in a fact table. My Customer DIM table has a numeric value for all customers with the exception of 3 of them which are text. When I load the fact table the column errors out if I have it set as a numeric column. When I change it to text I get an error for the text customer "numbers".

 

image.png

 

image.png

 

image.png


@jpt1228

In the Query editor window, try to cancel any change type steps and change that column to text from the Source step.

 

Capture.PNG

@Eric_Zhang that is not a viable solution.

I am facing the same issue when importing a csv containing numbers formatted as text (12,345) and numeric (12345). How do i handle these as my table needs to be merged later with other table and also form a relationship once in the model view. 

Ahh yes, I re-did the column value type and now it works.

 

Thanks

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.