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

View all the Fabric Data Days sessions on demand. View schedule

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...

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...

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.