The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
I have to replace the only one value i.e. Canada in test column when InventoryDeviceLocation = "CA - Winnipeg, MB - 99 Commerce Dr"
renamed the columns: from Assigned user - Corporate structure - 2nd level to test
test is column name instead of Assigned user - Corporate structure - 2nd level column
im using below both the codes but not replacing the value.. could you please help me on this asap
Table.ReplaceValue(#"Renamed columns",each [test],each if [InventoryDeviceLocation] = "CA - Winnipeg, MB - 99 Commerce Dr" then "Canada" else [test],Replacer.ReplaceValue,{"test"})
Table.ReplaceValue(#"Renamed columns",each [test],each if [InventoryDeviceLocation] = "CA - Winnipeg, MB - 99 Commerce Dr" then "Canada" else [test],Replacer.ReplaceText,{"test"})
Solved! Go to Solution.
Hey @Anonymous ,
Your code looks correct.
Are you getting any error?
Can you show the screenshot of the next step where you are replacing the value in test column?
Also, I am assuming that you copied the value from the [InventoryDeviceLocation] column in your code as even a single space could make a difference
Hey @Anonymous ,
Your code looks correct.
Are you getting any error?
Can you show the screenshot of the next step where you are replacing the value in test column?
Also, I am assuming that you copied the value from the [InventoryDeviceLocation] column in your code as even a single space could make a difference