cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
creynolds
Helper V
Helper V

Description Column with Text and Numbers

I have a "description" column in PowerBI that I use within a PowerBI table.   When I attempt to refresh the report, I continue to get an error about this particular table.   After further checking, I see the error ties back to a column within this table; it has multiple data types in the Description column.   The first character of the Description may start with a # or may start with text; afterall it is a free-form fillin description field.  Since I am not using this column in a calculation, and I only want to display this information, how can I get around this issue?

2 ACCEPTED SOLUTIONS

@creynolds I think by default power query is changing the data type of this column to number, on change type step, change the data type to text and it will work.






Did I answer your question? Mark my post as a solution.

Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





View solution in original post

That worked.   Thank you!

View solution in original post

6 REPLIES 6
smpa01
Super User
Super User

@creynoldsCan you try to create a Custom Column as following and then delete the original column and use the custom column for your report.

 

try Text.From([MixDataColumn]) otherwise "-999"

 try is M's IFERROR equivalent.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






New Animated Dashboard: Sales Calendar


I've tried every combination and still I am unsuccessful at using this statement.   I am using the column name that contains the mixed data type.   

Text.From([WARRANTY_CODE]) otherwise "-999"

 It returns, "To use special characters in a column name, enclose the entire name in brackets.

 

Warranty Code is the column containing both text and #'s.

 

Any add'l help is greatly appreciated.    Thanks.

@creynoldscan you please post the sample data here.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






New Animated Dashboard: Sales Calendar


https://www.dropbox.com/s/sozwslmq8q4ksbv/RecurringCodes.xlsx?dl=0

Here is the file.   The first column is the one that contains text and #'s.    

 

Thanks.

@creynolds I think by default power query is changing the data type of this column to number, on change type step, change the data type to text and it will work.






Did I answer your question? Mark my post as a solution.

Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





View solution in original post

That worked.   Thank you!

View solution in original post

Helpful resources

Announcements
Power BI December 2021 Update_carousel 768x460.jpg

Check it Out!

Click here to read more about the December 2021 Updates!

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Jan 2022 Dev Camp 768x460 copy.png

Power BI Dev Camp- January 27th, 2022

Mark your calendars and join us for our next Power BI Dev Camp!

Top Solution Authors
Top Kudoed Authors