
I built this report for the Gilbert Municipal Court during my time working for the city of Gilbert as a Power BI Developer. This report displays in the lobby of the court for citizens to see their appointment information. This report is automated in every way.
This was tricky. I needed to build this in Power BI and it needed to have tables that “scroll” in order to display the many court cases happening on any given day. Power BI has no native way of achieving this so I had to utilize custom visuals.
First, I’ll mention that I modeled the data in SQL and connected the PBI report to my database.
Now, back to the table visual. I had to use the Play Axis custom visual to achieve the scrolling effect mentioned. I had to create a series of DAX measures to index my rows and then group them by those indexes in a way that can incorporate new rows coming in throughout the day.
Once achieved, I connected the Play Axis visual to one of these DAX measures and to the table. This created my “scroll,” though it’s more like turning through pages of the table.
Actually, I made a video breaking down how I did this on YouTube, if you care to check it out :)
Next, we needed this report to refresh on its own while remaining open all day, without anyone touching it.
Now, live updates are easy in Power BI, especially if you’re in Direct Query Mode, but we had to do this in Import mode. This means you’d still have to click refresh on your report to get your live updates. I essentially had to figure out a way to “click refresh” without actually clicking anything.
The solution: an HTML script.
Here's how I did it.
First, I generated the HTML link to the published report in the Power BI Service.
Second, I wrote an HTML script that points to the live embedded report link and automatically refreshes the report every hour.
This way, the user can open the HTML file to display their "published to web" report and never have to touch it except to open and close it.
Very cool project to work on and something that directly impacted the community, which I was very proud of.