Forum Discussion
Unpivot table w
- Anonymous2 years ago
Hi amolkulkarnigk1 ,
Based on the description, I'm assuming your table looks like this:You can get the value of Wrong Rate by adding a custom column(After the twice Promoted Headers):
Advanced editor.
let Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMtAzMlLSUYKiWJ1opeAiPQW/fCDPLzE3FUg5FhTkQEUC8nMykyuDEktSwSoNQbJJyUDS0MjYBEQZgMVBBlZVQMSNwOKGSrGxAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Column1 = _t, Column2 = _t, Column3 = _t, Column4 = _t]), #"Promoted Headers" = Table.PromoteHeaders(Source, [PromoteAllScalars=true]), #"Promoted Headers1" = Table.PromoteHeaders(#"Promoted Headers", [PromoteAllScalars=true]), #"Added Custom" = Table.AddColumn(#"Promoted Headers1", "Wrong Rate", each Source[Column1]{0}) in #"Added Custom"Best Regards,
Gao
Community Support TeamIf there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!How to get your questions answered quickly -- How to provide sample data in the Power BI Forum -- China Power BI User Group
Hi amolkulkarnigk1 ,
Based on the description, I'm assuming your table looks like this:
You can get the value of Wrong Rate by adding a custom column(After the twice Promoted Headers):
Advanced editor.
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMtAzMlLSUYKiWJ1opeAiPQW/fCDPLzE3FUg5FhTkQEUC8nMykyuDEktSwSoNQbJJyUDS0MjYBEQZgMVBBlZVQMSNwOKGSrGxAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Column1 = _t, Column2 = _t, Column3 = _t, Column4 = _t]),
#"Promoted Headers" = Table.PromoteHeaders(Source, [PromoteAllScalars=true]),
#"Promoted Headers1" = Table.PromoteHeaders(#"Promoted Headers", [PromoteAllScalars=true]),
#"Added Custom" = Table.AddColumn(#"Promoted Headers1", "Wrong Rate", each Source[Column1]{0})
in
#"Added Custom"
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data in the Power BI Forum -- China Power BI User Group