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!!!
PowerQuery (get data) does not retain or archive older data so it has no way to tell if the record is old or new. This needs to be handled with whatever system is creating the records. I usually request they add a Creation_Date and/or Modificaton_Date on each records. If you have that you can use filters adn time inteligence to compare against baseline, identify new records created within the last x days or whatever your trying to do.
- Narender8 years ago
Resolver I
HiSwerd,
I am using this for other Purpose.
I need to add this new column because i want to append this table with other table. For distinguish , I am using this new column as a flag.
Thanls,
Narender
- Seward125338 years ago
Solution Sage
What is the M code for the step that is inserting the A? If you don’t have the formula bar on you can turn it on under view ribbon. Or it may just be better if you paste your query? To do those choose advanced editor from the main ribbon.
Rather than using column from examples just add column with “A” in the formula window.