Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and a 50 percent discount on exams.
Get startedEarn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
I have Table with two column. first column is "Indicator" and second column is "Sub-Indicator". I want to replace all the indicator value with coresponding Sub-Indicator value.
Solved! Go to Solution.
@nandukrishnavs,
Add a new blank query in Power BI Desktop, then paste the following code into Advanced Editor of the blank query. Please note that the highlighted code do the replace value job.
let Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WclTSUUpRitWJVnICslLBLGcgK00pNhYA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type text) meta [Serialized.Text = true]) in type table [Indicator = _t, #"Sub-Indicator" = _t]), #"Replaced Value" = Table.ReplaceValue(Source,each [Indicator],each [#"Sub-Indicator"],Replacer.ReplaceText,{"Indicator"}) in #"Replaced Value"
Another method is to duplicate the sub-indicator column, and then remove the Indicator column.
Regards,
Lydia
@nandukrishnavs,
Add a new blank query in Power BI Desktop, then paste the following code into Advanced Editor of the blank query. Please note that the highlighted code do the replace value job.
let Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WclTSUUpRitWJVnICslLBLGcgK00pNhYA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type text) meta [Serialized.Text = true]) in type table [Indicator = _t, #"Sub-Indicator" = _t]), #"Replaced Value" = Table.ReplaceValue(Source,each [Indicator],each [#"Sub-Indicator"],Replacer.ReplaceText,{"Indicator"}) in #"Replaced Value"
Another method is to duplicate the sub-indicator column, and then remove the Indicator column.
Regards,
Lydia
User | Count |
---|---|
87 | |
72 | |
69 | |
64 | |
56 |
User | Count |
---|---|
99 | |
92 | |
84 | |
74 | |
66 |