Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hello. I have a SQL Server table with an encrypted Column that uses CEK_Auto1 Encryption key (deterministic). It converted the column into a Hex format (0x0126E595C47C89086...). In PowerBI I need to decrypt this column (my user should have been given the SQL privileges to do so). The Column's original datatype is nvarchar(100) but in reality it is just numbers being stored in nvarchar type.
In PBI the column shows up as "Binary". How do I Decrypt this column in PBI?
Thanks
Solved! Go to Solution.
Hi RustyNails,
According to yiur description, it seems that you want to convert binary to hex or text, right? If so, you could try below M code to see whether it work or not.
= Table.AddColumn(Source, "Custom", each Binary.ToText([a],BinaryEncoding.Base64))
or
= Table.AddColumn(#"Added Custom", "Custom.1", each Binary.ToText([a],BinaryEncoding.Hex))
You could refer to Binary.ToText ,Converting Binary to hex value or numeric value or this blog for details.
Best Regards,
Zoe Zhi
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi RustyNails,
According to yiur description, it seems that you want to convert binary to hex or text, right? If so, you could try below M code to see whether it work or not.
= Table.AddColumn(Source, "Custom", each Binary.ToText([a],BinaryEncoding.Base64))
or
= Table.AddColumn(#"Added Custom", "Custom.1", each Binary.ToText([a],BinaryEncoding.Hex))
You could refer to Binary.ToText ,Converting Binary to hex value or numeric value or this blog for details.
Best Regards,
Zoe Zhi
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 53 | |
| 37 | |
| 35 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 74 | |
| 70 | |
| 39 | |
| 35 | |
| 23 |