Forum Discussion
kintela
Helper II
9 years agoerror adding a column
Hi I want to add two columns in my model specifically these ones: But whe I try it: Any sense??? Regards
- 9 years ago
Sorry the field was U_Proyecto not u_proyecto but in SQL this sentence lied me:
Thanks
JazminMarquez
9 years agoFrequent Visitor
In your query at the end you are adding a comma before * from..
Try to..
Select u_proyecto, u_fase * from orin
kintela
Helper II
9 years agoHi
My problem is not in that query is in to add those columns in my model in Power BI...
Thanks
- dkay84_PowerBI9 years ago
Microsoft Employee
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.
- v-sihou-msft9 years ago
Microsoft Employee
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 SourceRegards,
- kintela9 years ago
Helper II
Sorry the field was U_Proyecto not u_proyecto but in SQL this sentence lied me:
Thanks