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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors