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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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
Community Champion
Community Champion

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.