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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Loubot3000
Resolver II
Resolver II

Table from compressed binary encoded text

Loubot3000_0-1683650400832.png

I have taken over a Power BI report from someone who has now left (so I can't ask them questions), and I came across the attached query which I am trying to wrap my head around. I want to understand how it works and why "2023" isn't in the table.

 

I see that it is doing a binary encoding in base64 of that string (why that string?), and then decompressing it (why encode and then decompress?), then returning the results of that json document (why is it a json document?), and then creating a table by parsing that list. The "let _t = ..." I guess is defining the column or something, but I don't really understand any of the syntax in that bit. Overall, why does this work, and how do I get "2023" to appear?

 

Is it just a matter of that specific string encods and then decompresses into that specific list? And therefore a different string would give a different list?

How would I go about testing all the parts of this DAX individually?

 

Thank you.

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

@Loubot3000 That's an Enter Data query and is just kind of how it works. If you want to really understand what is going on, I made a video on it (below). Also, you should be able to edit the data by clicking on the gear icon for the Source step.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

1 REPLY 1
Greg_Deckler
Super User
Super User

@Loubot3000 That's an Enter Data query and is just kind of how it works. If you want to really understand what is going on, I made a video on it (below). Also, you should be able to edit the data by clicking on the gear icon for the Source step.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.

Top Kudoed Authors