Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
CountMcCracker
Frequent Visitor

Hash SHA256 in Dataflows Gen2

Is it possible to create a hash key using the SHA256 algorithm in dataflows gen2? The function I am invoking is returning an error. Is there an issue with the function or is SHA256 not supported?

 

Here is the function: 

 

let
    Hash = (input as text) as text =>
        let
            // Convert text to binary
            inputBinary = Text.ToBinary(input, TextEncoding.Utf8),

            // Compute SHA-256 hash
            sha256Binary = Binary.Hash(inputBinary, HashAlgorithm.SHA256),

            // Convert hash to hex string (64 characters)
            Hex = Binary.ToText(sha256Binary, BinaryEncoding.Hex)
        in
            Hex
in
    Hash
1 ACCEPTED SOLUTION
vojtechsima
Super User
Super User

Hey, @CountMcCracker ,

you have issues because Binary.Hash doesn'T exist.

 

Check this post to implement it:
https://community.fabric.microsoft.com/t5/Power-Query/SHA256-in-Power-Query-and-DAX-Performance-Anal...






Any kudos or recognition appreciated. To learn more on the topic, check out my blog and follow me on LinkedIn.

View solution in original post

4 REPLIES 4
vojtechsima
Super User
Super User

Hey, @CountMcCracker ,

you have issues because Binary.Hash doesn'T exist.

 

Check this post to implement it:
https://community.fabric.microsoft.com/t5/Power-Query/SHA256-in-Power-Query-and-DAX-Performance-Anal...






Any kudos or recognition appreciated. To learn more on the topic, check out my blog and follow me on LinkedIn.

Thank you much! I really appreciate it!

Hi @CountMcCracker ,
Thanks for reaching out to the Microsoft fabric community forum. 

 

I would also take a moment to thank @vojtechsima   , for actively participating in the community forum and for the solutions you’ve been sharing in the community forum. Your contributions make a real difference.

I hope the below details help you fix the issue. If you still have any questions or need more help, feel free to reach out. We’re always here to support you .

 

 

Best Regards, 
Community Support Team  

Hi @CountMcCracker ,

I hope the above details help you fix the issue. If you still have any questions or need more help, feel free to reach out. We’re always here to support you .

 

Best Regards, 
Community Support Team  

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.