Forum Discussion

hakjanne's avatar
hakjanne
New Member
3 years ago

Encode text to Base64 format using DAX

Hello,

 

I want to build button in my report that directs to URL. URL should be dynamic (so it is fixed with filters in the report) and formatted in Base64 because of "[" and "]" characters.

I found lot of instructions how to change it in PowerQuery but can that be dynamic then as I want?

 

 

Dynamic URL = 
ENCODETOURL(
"https://XXXXXXXOrders
=" &
CONCATENATEX(OrderTable, OrderTable[Order], ","
)
   

 

Thank you in advance,

Janne

3 Replies

  • why Base64 and not standard URL encoding / escaping?  

    • hakjanne's avatar
      hakjanne
      New Member

      My bad, actually stardard URL encoding is what I need 🙂

      • lbendlin's avatar
        lbendlin
        Super User

        Please provide a sample URL that you want encoded. Note that not all characters need to be encoded - it depends on the structure of the URL (sometimes they contain embedded URLs etc)