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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

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.