Category: Interesting & Fun Applications

  • Business Ops 3.0.2: Updated External Tools

    Business Ops 3.0.2: Updated External Tools

    Howdy folks, and Happy New Year!

    We’ve just released Business Ops 3.0.2, which contains long-awaited updates for the following External Tools:

    Thank you for your patience with the timing of this release. We hope you enjoy it!

    – James

    Download the latest version of Business Ops now!

    About

    The Business Ops tool is designed to simplify your Development Experience with Power BI Desktop. There are a lot of challenges remembering where all the best power bi external tools are stored.  Many MVPs contribute amazing projects to make your development experience better.  The installer is intended to streamline and increase your efficiency when working in Power BI. Download this installer and you can add all the best External Tools directly into Power BI Desktop. Our release includes all the best External tools for Power BI Desktop. This will enable you to have a one stop shop for all the latest versions of External Tools.

    If you like the content from PowerBI.Tips, please follow us on all the social outlets. Stay up to date on all the latest features and free tutorials.  Subscribe to our YouTube Channel.  Or follow us on the social channels, Twitter and LinkedIn, where we post all the announcements for new tutorials and content.

    Introducing our PowerBI.tips SWAG store! Check out all the fun PowerBI.tips clothing and products:

    Hasta La Vista Data
    Go Ahead Make My Data
    PBIX Hat


  • The Dice Game

    The Dice Game

    Well, it’s Friday, time to take a little break and play the Dice Game! The Power BI community is creative and is always developing amazing ideas. This is another incredible example that you can play right in Power BI! The brain child of this game is Kerry Kolosko, an Analyst out of of Australia.

    Play the game

    Below is a sample of the game. Again, fully built in PowerBI. Check out give it a good old roll of the dice!

    The Magic in the Game

    There are animations moving elements all on the report canvas. Rounded buttons to click on. All sorts of neat visual elements. These creative elements are capable via a custom visual, HTML Content. The HTML Content visual is maintained by Daniel Patrick-Marsh.

    Daniel’s work on custom visual development is top notch. So if you are super impressed with this report go download this visual from App Source.

    DOWNLOAD HTML Content Visual

    Download the Game

    For those of us who are really curious and want to see all the code. Download the full Dice Game found here.

    DOWNLOAD the Dice Game

    Please Follow

    If you like the content from PowerBI.Tips please follow us on all the social outlets. Stay up to date on all the latest features and free tutorials.  Subscribe to our YouTube Channel.  Or follow us on the social channels, Twitter and LinkedIn where we will post all the announcements for new tutorials and content.

    Introducing our PowerBI.tips SWAG store. Check out all the fun PowerBI.tips clothing and products:

    Check out the new Merch!

    Hasta La Vista Data
    Go Ahead Make My Data
    PBIX Hat


  • Power BI Quiz – Themes

    Power BI Quiz – Themes

    This month I had the privilege of participating in the Power BI Quiz. If you don’t know about the Power BI Quiz show, this is an event that is put on by Just Blindbaek. Just does a great job of creating a Season of Quizzes. Experts from across the Power BI community are co-hosts and submit questions about a specific topic.

    This week the topic was all about themes. Thus, I whipped up some questions and had an absolute blast!

    Thank you to everyone who was able to participate and play the game.

    Full Episode

    Play the Game

    If you’d like to play the game with your team or just for fun here is the official link.

    Next Game

    If you like this video and would like to participate you have one more chance for season 2.

    Next up will be the Christian Wade from the Microsoft Power BI team discussion the Semantic Models.

    Join the Live stream with Christian Wade and Just Blindbaek on 10/21/2020 at 1 PM CDT

    Be sure to subscribe to Just’s channel on YouTube if you enjoy his content.

    If you like the content from PowerBI.Tips please follow us on all the social outlets. Stay up to date on all the latest features and free tutorials.  Subscribe to our YouTube Channel.  Or follow us on the social channels, Twitter and LinkedIn where we will post all the announcements for new tutorials and content.

    Introducing our PowerBI.tips SWAG store. Check out all the fun PowerBI.tips clothing and products:

    Check out the new Merch!

    Hasta La Vista Data
    Go Ahead Make My Data
    PBIX Hat


  • Temple of DAX – 3D

    Temple of DAX – 3D

    To celebrate joining the Power BI Cat team next week, I thought I would update a DAX game I built last November (2018) which was a DAX-based maze game in Power BI that allowed you to navigate a character through a series of user-created maps in a top-down view.

    The details for that game are in this blog posting. http://radacad.com/fun-with-dax-a-maze-ing-dax.

    The update I wanted to make was to see what is involved in creating a 3D, first-person version of the same maze.  The following is how I got on.

    The PBIX File for the Temple of DAX – 3D can be downloaded using this link and here is a link to the publish to web version.

     

    Like the 2D version, the report imports a CSV file which it uses to generate the map.  I pretty much used exactly the same code to import the CSV file and pivot the coordinates to a format for suitable for processing in DAX.

    All you need to create/edit your own custom maps is to open and edit a CSV file using your preferred editor and place an X character where you would like a wall to be and an I character for the insight (or exit).  Excel is great for this particular task as you can size and align the columns nicely to easily see where walls will be.

    The following image shows the data1.csv file opened in MS Excel, with all columns set to the same width of 15-pixels.  Once modifications are complete, save the file as CSV (not xlsx) in the folder the PBIX file uses to import from.

    Once again, I’d like to thank Margarida Prozil for providing a custom control to manage the navigation.  This is an updated version of the D-PAD called a 3D-Pad.  You can grab a copy from her GitHub repo if you are keen to work with this control.

    https://github.com/mprozil/dPad-3D/tree/master/dist

    The control has four arrows.  The Up/Down arrows move you back and forward through the map, while the left/right arrows spin you 45 degrees.  This is different behaviour to the D-Pad in the 2D version of the maze.

    I’d also like to thank Mike Carlo at PowerBI.Tips for providing the wonderful background image and the overall visual design of the game.  It was Mikes idea for the evil laugh on the intro page.  This started to drive me a bit nutty as it would play everytime I saved the file.

    The Game Logic

    Like the 2D game, this version uses SVG as the method to draw the graphics to the screen.  Each time an arrow is clicked, a new view needs to be generated based on the interaction, so a calculated measure takes into account the new position or perspective and generates a fresh SVG to be displayed using the Image control by CloudScope.

    The SVG image displayed in the Image Control is a nested set of mini SVG polygons that draw the outline of various shapes into an outer SVG file.  The performance is pretty good and I have still yet to hit any limitations on text size to store the final SVG set.

    The 3D world

    The first challenge was to figure out how to convert coordinates in a table in the data model into an image that looks like you are walking through a maze.

    The map I use in the uploaded PBIX file is 26 steps and 36 steps long, so it isn’t big.  If a step has been designated as a wall, it effectively has 4 walls (panels) around its perimeter, and when a series of X values in the CSV run next to each other, a longer wall effect is created.

    Each of the panels for a step in the board has 5 points.  I initially created these panels as 100 x 100 walls, but I found it added the extra point at the top to help me work out which way was up when I was first playing with the 3D to 2D projection code.

    The Calculated table called 3D Worlds takes the basic X/Y coordinates from the CSV file and generates a 3D world of X/Y/Z points for every panel on every all in the maze.

    The image below shows all X/Y/Z coordinates for 1 step in the CSV map.  The first column shows there are four panels.  Think of these as like north, east, south and a west facing wall.  Each wall as five points.  These five points define each corner of the wall in terms of a 3D world and the X, Y and Z columns for each row specify exactly where each point should be in a three-dimensional plane.

    3D to 2D projection

    The next challenge is to take the 3D coordinates and convert this information into an image that represents what you should see based on your location in the map, along with the direction you are looking.  There was no way I was going to figure the maths for this out from scratch, and after a few internet searches and a bit of reading, I found this article to have all the information I needed.

    https://en.wikipedia.org/wiki/3D_projection

    The key information is in the section on Perspective Projection, including the algorithm I ported into the DAX measure in the game.

    The basic principle is to define a 2D plane (or screen) called a viewport that sits a specific distance from the eyeball. Then an imaginary line is calculated between the eyeball and every X/Y/Z point from the 3D World table.  If any of these lines pass through the viewport, they can be plotted onto the viewport at a specific 2D x/Y coordinate.

    The code I used from the Wikipedia article is the following:

    The Main Map calculated measure contains all the DAX code to convert the 3D data points to 2D coordinates using SVG.

    The section of code in the Map Map calculation that matches first the algorithm from the Wikipedia article is here :

    I’m not going to pretend to understand this any more than it reminds me of math classes from when I was 15, working out SIN, COSINE equations.  I swore then I would never use them for real, so I guess I owe my old maths teacher an apology.

    The good news is I didn’t need to understand the code in the end.  Once I’d added it to the DAX calculated measure and started generating SVG polygons, it’s quickly looked the way I wanted.

    I probably spent less than 2 hours getting this aspect of the game to work.  There was a little fine-tuning while I worked out what the various elements were, but this was much easier than I anticipated.

    A nested set of CONCATENATEX functions in the Main Map calculated column, loop through every object defined in the 3D World table and converts points to 2D versions.  A series of filters are applied to stop plotting any graphics that fall outside the 2D viewport, such as walls that are behind you (taking into account the direction you are looking).

    The objects are drawn from furthest to nearest to make sure far away objects do not appear if they are covered by a nearer object.  This also means portions of further away objects will appear as expected if they can be partially seen.

    Other filters are applied to stop panels of walls being plotted when they simply cannot be seen.

    Mini Map

    A separate Mini Map calculated measure generates a non-3D version of the map and gets added to a separate Image Viewer custom control to show your position in the map.  A small red triangle shows your position and direction and a small white square shows the exit.  In this case, it’s inside the letter E.

    3D Dpad

    Margarida Prozil supplied me with an updated 3D control that sits on the top of three separate columns in the database.  X and Y (rows and columns) control the square you currently occupy, while the third column is V (for view perspective).  X and Y represent how many squares wide, or long the map is.  V represents the angle in steps of 45 degrees and there are 8 possible values (0, 45, 90, 135, 180, 225, 270  and 315).  The example map is 26 squares wide, 36 squares long so combined with the 8 views, mean the control can be set to 7,488 possible values.  A custom control can only manage about 30,000 points, so take this into account for larger custom maps.

    Summary

    I’m pretty happy with the 3D effect and can see it can be used with other X/Y/Z based 3D coordinates plotted to a 2D view plane.  When I was debugging this, I had slicers for height on the screen so I could use a slider to create an effect of flying up in the air – and the maze still rendered as expected.  Power BI seems to cope with the workload pretty well, despite not really optimised for this kind of work.  In future versions, I may add more objects and detail to push the engine harder and see where breaking points are.

    There probably aren’t too many business use-cases in Power BI for this type of report aside from educational.  Feel free to have a look through the PBIX file where you may pick up some useful ideas, tips and tricks in the DAX.

    There is a small bug at the start of the game when the bookmark drops you into the maze and you need to click the up arrow a few times to get going.  Once you are on your way, it’s pretty good.  I’ll try to get that resolved in the next few days.

     

     

     

  • New Game – aMAZEing DAX

    New Game – aMAZEing DAX

    If you haven’t had your mind melted over the past few games that Phil Seamark has developed here is one more, aMAZEing DAX.  This month’s game is a Gauntlet styled game that uses SVGs, and some fun DAX to allow you to navigate through a maze.  Game play engine developed by Phil Seamark, and Graphics Design by Seth Bauer.

    Play the game below, or hit this link for the full screen version:

    To download your own copy of this game follow this link.

    If you liked this game Check out these other great games:

    To read about how this game was built jump on over to Phil’s blog post.

  • Game Time – DAX Mission Impossible

    Game Time – DAX Mission Impossible

    PowerBI.Tips and Phil Seamark are proud to release our third game written in Power BI, DAX Mission Impossible.  This game is similar to the game play of the old game of Hang Man.  However, Phil and I decided that was a bit morbid so instead we decided to change the style of the game a bit.  Your mission, should you choose to accept it is to disarm the bomb by guess letters that comprise a DAX formula.  You have 5 chances, to guess the expression correctly.  If you guess the wrong letter, the Power BI Logo will slowly dis-appear, and once it is all gone… Boom…

    Play the game below:

    For a full screen version of the game follow this link.  Phil Seamark has also completed a very well documented blog on how this game is built.  To read more about it follow this link.  We hope you enjoyed this game.  If you are curious and want to download the file to see how it works follow this link to get a free download.

      Be sure to follow:

    If you like the content generated from PowerBI.Tips please follow me on all the social outlets to stay up to date on all the latest features and free tutorials.  Subscribe to me on YouTube.  Or follow me on the social channels, Twitter and LinkedIn where I will post all the announcements for new tutorials and content.

    YouTube Linkedin Twitter
  • Tic Tac Power BI

    Tic Tac Power BI

    I am proud to announce another joint development game between Philip Seamark and myself (Mike Carlo) of a Tic Tac Toe game.  To read about how this game was made jump over to Phil’s blog post found here.  If you just want to play the Tic Tact Toe game you can do so below in this Embedded sample found below:

     

    To play the game in full screen mode visit this link.  Additionally, ff you want your own copy of Tic Tac Toe you can download your copy here.

    Be sure to follow:

    If you like the content generated from PowerBI.Tips please follow me on all the social outlets.  Stay up to date on all the latest features, free tutorials and downloads.  Subscribe to me on YouTube.  Or follow me on the social channels, Twitter and LinkedIn, where I will post all the announcements for new tutorials and content.

    YouTube Linkedin Twitter
  • Power BI and Sudoku – Yes Please

    Power BI and Sudoku – Yes Please

    This week Philip Seamark, an avid Power BI developer has released a joint project with PowerBI.Tips, a full Sudoku game in Power BI.  To be totally honest with you Phil did all the hard work, I just contributed the pretty background and provided some suggestions.  To learn more about how Phil build this amazing game within Power BI check out his blog post about it here.

    The Game

    If you want to play this Power BI file you can do so below:

    To play the Sudoku game in full screen use this link.

    Want the file:

    If you are interested in looking at this file to see how it works you can download the file using the link below.

    [product id=”18054″ ]

    Be sure to follow:

    If you like the content generated from PowerBI.Tips please follow me on all the social outlets to stay up to date on all the latest features and free tutorials.  Subscribe to me on YouTube.  Or follow me on the social channels, Twitter and LinkedIn where I will post all the announcements for new tutorials and content.

    YouTube Linkedin Twitter