Playing in the Sandbox

Playing in the Sandbox

The neat thing about any technology is that it's rarely a standalone tool. Technology, much like people, rarely completely plays alone. Power BI is an example of a technology that fits into this criterion.

For example, let's say we want to embed Power BI on a webpage. We can connect our webpage to the Power BI report by embedding it in this other webpage. This then takes us outside the Power BI service space in the cloud when we set up this embedded view.

Designing web applications come in many layers. The original mainframe computers with green screens were much easier to work with from the development side because they don't have many ways for the end user to interact with them. The advanced UI we see today on our computers, smartphones, and other devices are what makes it easier for us, as end users, to interact with what's on the screen. Unfortunately, though, they make it much harder to build these applications on the backend because there are more layers to them. Here's how these layers stack up on a high level:

  1. HTML is the structure of the website: think of the tables, the banners, the images, and so on.
  2. CSS is the styling. Think of the font, the colors, and how it's formatting on top of the HTML code.
  3. JavaScript is the way in which we interact with a webpage on top of the HTML structure and the CSS styling. When we click on a link, what does it do? When we click okay when submitting a form, what are the next steps it takes?

Building applications with these languages is a time-intensive and energy-intensive endeavor. However, if you're curious about what this code looks like, right-click on any webpage (including this one), then choose Inspect from the dropdown menu. This opens a panel on the same screen where you can explore the elements, styling, and event listeners on a webpage. To write JavaScript code, check out an IDE (integrated development environment) like Visual Studio for example.

The Power BI Sandbox

Power BI lets us call APIs (within reason) from the Power Query Editor to get our data. We can also connect other applications to the Power BI API initiated from the Power BI service. One way we can play around with this is by using the sandbox environment, a topic covered in a recent video in the Power BI Weekly serial course.

No alt text provided for this image
https://www.dhirubhai.net/learning/power-bi-weekly/power-bi-rest-api-developer-sandbox

Notice the interactions that the sandbox enables. The embedded Power BI report, as well as the styling, get set up through the HTML code and the CSS scripting. However, if we want to expand the space in which our Power BI report sits or choose a filter (among many other things), we automatically write and set up JavaScript that runs in this space.

More About JavaScript

If you want to learn more about JavaScript, check out fellow LinkedIn Learning instructor Morten Rand-Hendriksen's courses on this topic! Here's a recent course released in the library which also includes the neat feature of GitHub Codespaces to try out code without having to set up a JavaScript environment of your own.

No alt text provided for this image
https://www.dhirubhai.net/learning/hands-on-introduction-javascript

I took the course below two years ago when I was first dipping my toes into the waters of JavaScript. Morten does a great job with analogies and explaining key topics of JavaScript so that we can apply them to our own work!

No alt text provided for this image
https://www.dhirubhai.net/learning/javascript-essential-training

JavaScript isn't an easy language to pick up. I work mostly with data science languages (SQL, R, and Python), so I use JavaScript much less than I do those three. However, I've found that JavaScript is immensely helpful to know how to read. And to that end, I actually find it's a bit easier to read than other languages for some reason. I'm not sure if it's because of the curly braces and semicolon syntax, but either way, that's been my own experience for learning this language.

Coming Up

I know that probably everyone says this at this time of year, but I can't believe it's already December. I'm currently working on a time series modeling course for the LinkedIn Learning library. I'll also be continuing the Power BI Weekly series into the coming year! I'm very excited to continue to share weekly tips and tricks (like the Power BI sandbox discussed above) in the serial course that help others make Power BI more useful and applicable in their own work! Stay tuned for more to come!

-HW

John Davidson

Senior Principal, Interdisciplinary, Service Engineering

2 年

Great article Helen Wall - I'll definitely check out those JavaScript resources! Agree JS code seems to be easier to read (in most cases). I just finished a great JS book, really helped my understanding of the language. It was a bit JQuery heavy but I still got value from it (realise JQuery is now pretty much deprecated due to performance issues & better front-end tech). Off to have a look at GitHub Codespaces & have a play around with some JS code ?? (was wondering about installing Node.JS - can hold off a bit then....).

要查看或添加评论,请登录

Helen Wall的更多文章

  • Flying on Autopilot

    Flying on Autopilot

    I remember taking a plane flight several years ago with a roller coaster landing. It was an otherwise uneventful short…

    2 条评论
  • Releasing Snakes into the Wild

    Releasing Snakes into the Wild

    This week brings big news in both the Excel and Python communities! Python in Excel is now generally available as of…

    4 条评论
  • Slithering Back In

    Slithering Back In

    I'm finally catching up on the latest editions of my newsletter after a bit of a break. Writing newsletters or any kind…

    2 条评论
  • The Modern Updates

    The Modern Updates

    As I was perusing potential updates for my home recently, I started to think about how the definition of "modern" will…

  • WINDOWs of the World

    WINDOWs of the World

    It's really hard to get very far in data science without knowing SQL. Within SQL there are different levels of…

    3 条评论
  • Straightening Things Out

    Straightening Things Out

    When I took linear algebra in college, my favorite part of the class was the end of it. The course was highly…

    2 条评论
  • SWITCH It Up

    SWITCH It Up

    In order to master managing data models, learning how to leverage conditional logic is a must. We see conditional logic…

    3 条评论
  • Seeing Dots

    Seeing Dots

    I use data visualizations not only to communicate data models to end-users who are stakeholders, but I also personally…

    5 条评论
  • The Digital Rolodex

    The Digital Rolodex

    A few months ago, I was doing my civic duty as part of a potential jury panel. While we were waiting for the court to…

    4 条评论
  • Making the "Old" New

    Making the "Old" New

    I talk with a lot of people about whether their organization uses custom visuals in Power BI. Their answers often vary…

    4 条评论

社区洞察

其他会员也浏览了