cancel
Showing results for 
Search instead for 
Did you mean: 
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
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors