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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.