Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.
I just need to replace one cell in power query (not as easy as I thought. Here is the scenario:
Jerry Lucero (no real names) is stepping down as coordinator of the masters music program, but is still going to be coordinator for the other music program. Here he is in the power query view.
When I go to replace values and just click on the one cell, it replaces all the values in the column, not just that one cell.
How do I just replace the single cell value in that one row without changing all the other values in the column? I thought about conditional values, but in my real life data file, I have several conditional columns already. I am looking for a simplier way. I could change the source file in Excel, but I have made a lot of changes to the power query.
Thank you.
Data files - PBIX and XLS: https://drive.google.com/drive/folders/1W1QKc7IBq2sJGckSd7xGcyU9bF9GKcG6?usp=sharing
Solved! Go to Solution.
Hi @rlsmith1994 ,
My solution is to add an index and replace the specific cell.
For example, replace only Jerry Lucero in line 20 with ABC.
1.Add an index column.
2.Add a custom column.
You can check more details from my attachment.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @rlsmith1994 ,
My solution is to add an index and replace the specific cell.
For example, replace only Jerry Lucero in line 20 with ABC.
1.Add an index column.
2.Add a custom column.
You can check more details from my attachment.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @rlsmith1994, you'll need to create a composite key (i.e. combination of more than one column to identify the particular row in the table) which will help you to identify the exact row you want to change. Now, create a new conditional column "coordinator NEW" and assing a new value when composite key value is equal to what you need, otherwise keep the previous value from existing "coordinator" column. After that you can cancel composite key as well as old "coordinator" column. Good luck 🙂
P.S. to create a composite key, all parts of it (i.e. columns) should be of the same type. If it's not a case, use formatting functions to align all of them to the same data type.
Check out the November 2023 Power BI update to learn about new features.
Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.
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!