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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
JollyRoger01
Helper III
Helper III

How to include hardcoded table data in a Power Query rather than sending a seperate source file

I have seen a lot of users on here post queries that include tables in some weird binary format that saves having to also send the data source e.g.

 

 

Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WSlSK1Yl......

 

 

Can someone please tell me what this is called and how I can translate my csv file into this format so I can just post a single query on the forum that people can run without additional files (in Excel)?

 

3 REPLIES 3
v-kelly-msft
Community Support
Community Support

Hi @JollyRoger01,

 

You could decode the text into binary format using Binary.From or Binary.FromText:

https://docs.microsoft.com/en-us/powerquery-m/binary-fromtext

https://docs.microsoft.com/en-us/powerquery-m/binary-from

 

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

 

AlB
Community Champion
Community Champion

Hi @JollyRoger01

Just go to "Enter data" and paste your data there. PQ will automatically create a new query with that code at the beginning for you

   

 

AlB_0-1623224650332.png

 

SU18_powerbi_badge

Please accept the solution when done and consider giving a thumbs up if posts are helpful. 

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

 

I think this might be a version thing. I am using Excel 2016 and I don't have that option. I can do so in Power BI Desktop though.

Helpful resources

Announcements
December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.

Top Solution Authors