The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hello,
I am trying to use the Table.ReplaceValue function and not having much success. I have spent much time looking at and trying various solutions to no avail. Most of the solutions I found were simular to Xiaoxin Sheng's answer in post Solved: Replace value in Power Query based on condition - Microsoft Power BI Community
#"Replaced Value" = Table.ReplaceValue(#"Changed Type",each [Category],each if [PO]=1006 and [Category]="D" then "C" else [Category],Replacer.ReplaceText,{"Category"})
my version is
#"ReplacedValue" = Table.ReplaceValue(#"Renamed Columns", each [EVP], each if [department] = "Unassigned" then "No Department" else [EVP], Replacer.ReplaceText,{"EVP"})
Which of course produces no errors or changes to the EVP column. I am assuming that my version should value in the [department] column and replace the corresponding [EVP] value with "No Department" and if department does not match "Unassigned" then [EVP] would remain as is. Any ideas why this would fail? I am not very clear on what Replacer.ReplaceText is doing so maybe there is a problem there?
I would appreciate your help.
Hi, @bvilten
If your problem is not yet solved, can you provide some sample data for testing? What kind of results do you expect and can you show them with pictures as well?
Best Regards
can you provide some data?
Proud to be a Super User!
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
82 | |
77 | |
46 | |
39 |
User | Count |
---|---|
135 | |
109 | |
70 | |
64 | |
55 |