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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.