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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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.


@ 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!:
The Definitive Guide to Power Query (M)

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.


@ 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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