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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
GianlucaM
Helper II
Helper II

Wrong Python Visual

Hi 

I'm running some test to check the python visual but i'm having a wierd behaviour from this visual. It is not plotting the right information, here an example. The dataset is wide but very easy and i'm plotting the Age of the customer. As you can see by the table (run in the same power BI model) the plot is displaing wrong info

GianlucaM_0-1666787853142.png

the python script is very easy

 

import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
dataset['Customer_Age'].plot(kind='box', vert=False, figsize=(14,6))
plt.show()
 
Can someone help?

Thanks
G
2 REPLIES 2
amitchandak
Super User
Super User

@GianlucaM , for box plot, you should have more than one row, I think you should add some not summarized column to visual (Python)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi @amitchandak ,

 

there is a hole database behind: the row i'm showing it's a table in power bi to demonstrate that this box plot is plotting wrongly the same database: average and max and min are different and I'm running the same model

Thats the issue

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.