🎃 Power BI Candy Quest 🎃

Tools used in this project
🎃 Power BI Candy Quest 🎃

Power BI Candy Quest

About this project

Choosing the optimal combination

I used Pandas to choose the combination of treats. The function I wrote utilizes the brute force method* to check every possible combination of three treats and ensures that all the properties are present within it at least once. This operation results in more than one potentially winning combination - to choose one of them I considered three scenarios:

  • a combination with the best overall winning percentage,
  • a combination with the lowest possible sugar percentage,
  • a combination with the lowest possible price percentage.

This approach helps to choose not only from the most popular sweets, but also considers lowering the sugar intake and maximizing cost-effectiveness.

Having these combinations chosen, I exported the data to visualize them in Power BI.

  • For larger datasets it could become too slow, but in case of such a small dataset it worked very well.

Visualizing the data

After selecting three combinations of three treats each I ended up with a rather small dataset that did not offer much potential for data visualization. Given the light-hearted theme of this project I took an unusual approach, adding a short story and creating a visual narrative that incorporates some decision-making. I'm sure the idea can be developed further to create a data-driven adventure game inside Power BI!

Note: the background pictures are AI-generated using Bing Image Generator. All other elements - the idea, the story, the execution, are entirely my work.

Discussion and feedback(9 comments)
comment-1977-avatar
Enrique Ruiz
Enrique Ruiz
6 months ago
"Get help > BOO!" made me laugh out loud. This is AMAZING!

comment-2186-avatar
Irina Cojocariu
5 months ago
I love your project! I have one very small observation. When I first went through the steps of your story I chose "Treat" (I was hungry) and when I reached the end I couldn't help but wonder what would have happened if I had chosen "Trick". I was already invested, so I refreshed the report and started again and then fully understood the treemap reference. I'm not sure if it was by design (I see how this might be hard to integrate in the story), but I would have liked to have the option to go back to the first fork in the road after reaching the end. Otherwise, I loved the creativity :)

comment-2261-avatar
Ana Borsoi
Ana Borsoi
5 months ago
It was hilarious and made me want to eat some candies. 😅 I loved it, thanks for sharing!

comment-2266-avatar
Amy Huff
Amy Huff
5 months ago
I love the parting shot, "Remove that treemap ASAP!" Very clever and creative. Now I'm going to go finish off the leftover Halloween candy!!

comment-2361-avatar
Aftab Uddin
Aftab Uddin
4 months ago
Hi Marek! Great work! May I know how you've executed all of it? What part(s) of the project was accomplished by python? Also, If you have shared the project with source code anywhere, could you give the link? I'd love to study it further.
2000 characters remaining
Cookie SettingsWe use cookies to enhance your experience, analyze site traffic and deliver personalized content. Read our Privacy Policy.