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
LPenatti
Helper II
Helper II

Power Query shows null value instead the real value from SQL source

Hello BI community, I need some help from you.

 

I use a SQL query to get data from SQL database to Power Query. However, there is a column that comes as null instead of its actual content.

 

In SQL Management or Azure Data Studio:

 

SELECT TABLE_NAME, VIEW_DEFINITION FROM INFORMATION_SCHEMA.VIEWS

 

LPenatti_0-1679656233701.png

 

In Power BI (Power Query):

 

= Sql.Database("********", "********", [Query="SELECT TABLE_NAME, VIEW_DEFINITION FROM INFORMATION_SCHEMA.VIEWS"])

 

LPenatti_1-1679656582523.png

 

I noticed that this column has nvarchar(4000) format.

LPenatti_2-1679656717502.png

 

I did some tests with other tables that have columns with the same format (nvarchar (4000)), the error persists.

 

I found THIS thread where the person has a very similar problem, but the proposed solution didn't work. I couldn't find any other related to this.

 

Any idea what's happening?

2 REPLIES 2
LPenatti
Helper II
Helper II

Hi @edhans, thanks for your message!

I will do as per you suggestion and create a post in the Issues section.

edhans
Super User
Super User

Well, it is either a bug or a limitation. I would post this in the Issues forum here Issues - Microsoft Power BI Community - that is the one forum that MS engineers look at to see what bugs crop up. 



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

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.

Top Solution Authors
Top Kudoed Authors