top of page
  • Writer's pictureVahid

PAC-MAN Meets Power BI: How to Add Retro Fun to your reports

Are you looking to add some fun and interactivity to your Power BI reports? Check out the DENEB visual and the Vega language. With these items, you can create a classic PAC-MAN game right within your Power BI report.

To get started, you'll first need to add the DENEB visual into your Power BI report. Deneb is available on AppSource, you can download the visual from the Microsoft AppSource marketplace and importing it into your report or click "Get More Visuals" in the "Visualizations" pane and search for "DENEB".

How to add the DENEB visual to a Power BI Report

Once you have added Deneb to your report,you can then click the visual to add it to the report canvas. Add a column or a measure to Deneb's Values data role and then you can now open the Visual Editor by selecting the visual header (...) and then Edit. As a result, the Visual Editor will be in focus mode, and the dialog box for creating a new specification will be displayed. On the "Create New Specification" dialog select Vega tab and then select [empty] and click on create:

How to set the DENEB visual with VEGA language

Now, you need to copy the Vega JSON Specification from visual examples on the Vega website and paste the code in DENEB visual's specification section. To do this, go to the Vega Language website and click on the examples: Scroll down to the bottom to find the Pacman, click on it and in the Pacman example page, scroll down to see the "Vega JSON Specification" and copy the entire code.

This code has been created by Mathias Tiberghien and he expained it very well on this blog post:

Pacman on the Vega language website

Be sure to remove all default code from the specification section on the visual editor of DENEB visual and then paste the code there. Press Ctrl + Enter or click on the apply button and you will see the game: Now it's ready, click on Back to report to bring you back out of focus mode and to the report canvas.

add code from vega website to the Deneb visual and run the pacman game on Power BI

Adjust the size of the visual and have fun with the game!

You can then create some bookmarks and assign them to buttons to play and hide the game. 😎 Download the sample file:



bottom of page