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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! 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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.