Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Sharika_Natasha
New Member

How to configure and create KPI with python in Power BI using dynamic table

I want to create a dashboard using dynamic table where columns are not consistent.

For example: Lets say initially, we are getting five columns (A, B C, D, E) from an excel sheet. But after next refresh, we will have three columns (A, C, D). The KPIs will be enabled/disabled based on available columns. I want to configure this dynamic table using python and create the KPIs with python libraries so that I can use conditions for the KPI. I have tried using the python visual but no luck so far. 

image.png

Any help on this thread will be appreciated.

0 REPLIES 0

Helpful resources

Announcements
Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.