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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register 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
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.