Forum Discussion
Add a column in Power BI existing table
- 8 years ago
Hi Narender,
If this new column to be added is not based on Any Conditions, i.e. If all the Entries in Column_Flag will be equal to 'A', just that the colmn should be automatically populated whenever new data comes, then you can achieve it using "Column From Examples" option in the Add Column of the Power Query Ribbon. Sames is show in the below pics
Add Column from ExampleYou just directly specify a Character for it to be repeated in all rows
Hope this solves your issue!!!
Hi Thejeswar,
I did the same . But I saw there is some different value P found in my new created column but in actual i inserted the A.
So some places i found P rather than A
Due to this i am not getting my correct data.
Thanks,
Narender
Hi Narender,
I tried recreating your scenario, but I was not able to. How many ever columns I insert, the same A is getting populated in all records.
Ideally, unless you specify some pattern for your data, all the rows will be populated as 'A' undoubtedly.
In case if you are importing data using SQL Query from a Database, you can also specify there, a new column with a static value of 'A'