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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
kintela
Helper II
Helper II

error adding a column

Hi

 

I want to add two columns in my model specifically these ones:

 

captura.jpg

 

But whe I try it:

 

captura.jpg

 

 

Any sense???

 

Regards

 

1 ACCEPTED SOLUTION

Sorry the field was U_Proyecto not u_proyecto but in SQL this sentence lied me:

 

captura.jpg

Thanks

View solution in original post

5 REPLIES 5
JazminMarquez
Frequent Visitor

In your query at the end you are adding a comma before * from..

 

Try to.. 

 

Select u_proyecto, u_fase * from orin

Hi

 

My problem is not in that query is in to add those columns in my model in Power BI...

 

Thanks

@kintela

 

I suggest you use query to retrieve the data so that you can directly add the columns into T-SQL query in Advanced Editor.

 

let
    Source = Sql.Database("Severname", "Database", [Query="Select u_proyecto, u_fase * from orin"])
in
    Source

Regards, 

Sorry the field was U_Proyecto not u_proyecto but in SQL this sentence lied me:

 

captura.jpg

Thanks

Just go to the query editor and step through the query.  If you go to the second step, you should see what is returned by your query (before selecting the columns you wish to keep).  PBI is not detecting the column based on the name, so perhaps the source table has changed.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.