Last active
March 21, 2017 11:46
-
-
Save Hugoberry/e43d0f1291ca7a1ccc76c6d6189e9714 to your computer and use it in GitHub Desktop.
Converting a Power BI tabular connection string to Binary
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(connectionString as text) => | |
let | |
//Define a semicolon splitter | |
split = Splitter.SplitTextByDelimiter(";"), | |
//Split the connection string by semicaolon and assume that Mashup is the last element | |
mashup = Text.Replace(List.Last(split(connectionString)),"Mashup=","") | |
in | |
//Convert base64 string to binary | |
Binary.FromText(mashup) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment