From the course: Data Visualization with Python in Excel
Unlock this course with a free trial
Join today to access over 24,900 courses taught by industry experts.
Creating dynamic measures with Python in Excel
From the course: Data Visualization with Python in Excel
Creating dynamic measures with Python in Excel
- [Instructor] One of the most exciting capabilities in BI tools like Power BI or Tableau is creating dynamic measures, which allow users to interactively choose which metrics to display in a visualization. This keeps dashboards compact and highly functional. Unfortunately, replicating this feature in Excel has not been so easy, but Python in Excel greatly simplifies it. Let's try it out with the exercise file "dynamic measures". Now, this example is a bit more complicated so I've already basically built out this model. We'll walk through what's here. We're using the MPG dataset, which I've already loaded into Python in the MPG worksheet. Next, let's address some of the auxiliary tasks we need to handle. I've created a helper table for the aggregation methods in the helper worksheet, which will crosswalk the user's aggregation selection from a dropdown menu into the exact aggregation type syntax required by pandas. So the idea here is that the user can get a sum, average, max, and so…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
(Locked)
Building a moving average chart3m 7s
-
(Locked)
Creating dynamic measures with Python in Excel4m 35s
-
(Locked)
Challenge: Combine use cases for real-world scenarios1m 52s
-
(Locked)
Solution: Combine use cases for real-world scenarios2m 18s
-
(Locked)
Using Copilot to generate Python visualizations5m 44s
-
(Locked)
Challenge: Enhance AI-generated visualizations1m 48s
-
(Locked)
Solution: Enhance AI-generated visualizations3m 7s
-
(Locked)
-