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

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
aduncan
Frequent Visitor

Character length

My database has an input field that holds well over 100 characters, however when I query a table that data column get only the first 8 characters.

Is there a way to specify the amount of characters to query for that specific column; lets say 250 instead the default 8?

 

9 REPLIES 9
amitchandak
Super User
Super User

@aduncan , refer if this can help

https://blog.crossjoin.co.uk/2019/05/17/maximum-length-text-value-power-bi/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
AllisonKennedy
Community Champion
Community Champion

What data source are you using for the database, what is the data type, which column is causing issues? 

https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-data-types

 

You should be well within the character limitations, but depends on how the data is formatted a bit (I've encountered issues before with HTML for example). 

 

Can you paste the M code from your Advanced Editor as a starting point so we can get a better idea for what's happening? 


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

parry2k
Super User
Super User

@aduncan what is your data soure? I never see that query pulls only a few characters?  Are you pulling directly from table or view? Any other way you can check that column contains value more than 8 characters?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


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.

Data is pulling using ODBC from a database. The frontend of the database provides a paragraph field for data entry. Yes the full paragraph of text is visiable with the database table, however once the table is loading into Power BI only 8 characters are available.

Hi @aduncan ,

 

Are you trying to load a large number of data into Power BI? Did you get the warning: The data in the preview has been truncated due to size limits?

 

Please refer to https://community.powerbi.com/t5/Desktop/The-data-in-the-preview-has-been-truncated-due-to-size-limi...

 

Best Regards,

Dedmon Dai

Thanks for helping @v-deddai1-msft 

 

Data table is small, less than 5000 rows, no warnings

@aduncan did you used any other tool except Power BI to connect using ODBC and see what kind of result you are getting.  It is not clear if that ODBC driver is not giving the full data or Power BI is translating it something different, so testing with other tools can provide some insight.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


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.

Thanks for helping @parry2k 

 

Interesting; Can you recommend any other applications/tools for testing?

@aduncan sorry man, its been a while I used ODBC, I'm sure tons of free tools, I found this one, please read and go thru it carefully before using it as I'm no expert on these. https://www.gpoulose.com/

 

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


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.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.