Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi All,
I have a table and I want to add a coulmn in that table Suppose Column_Flag in TableA.
Also I want to insert a charcter in each row of Column_Flag.
Menas Cloumn_Flag=A .
Whenever a new record comes in TableA then it will automatically insert Cloumn_Flag=A against that new record.
Please let me know , How to achieve this.
Thanks,
Narender
Solved! Go to Solution.
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
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.
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
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
Hope this solves your issue!!!
Hi Thejeshwar,
I did the same. But find a P value also.
So now I am trying to delete the new column and creating again.
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.
Thanks,
Narender
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'
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
99 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
87 | |
64 |