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
DH27
Frequent Visitor

Python Visual - datestamps on x-Axis all over the place

Hi, 

I've created some Python visualisations and for the most part, they are working just fine. 

However, there is one visualisation, where I've got either bizarre date stamps (attachment 1),

or if I convert the data to text in the query-editor, the order is getting disrupted (attachment 2).

In the query-editor, my data remains in the correct order and looks fine. 

 

Any help regarding this problem would be very much appreciated!

 

Attachment 1Attachment 1Attachment 2Attachment 2Attachment 3Attachment 3

 
 
1 ACCEPTED SOLUTION
DH27
Frequent Visitor

Hi,

 

a week has passed and I managed to narrow the problem down to the following phenomenon:

In most of my graphs, the time stamps on the x-axis are mixed up, even though the data is sorted

correctly in the data-menu.

I have made another screenshot of the behaviour to further clear up the problem:

screenshot 1.png

As the visualisation is created with Python Visual, I am not able to sort the data manually in the report-menu.

Furthermore, it looks like only the labels on the x-axis are mixed up, the data itself seems to be sorted correctly.

 

Thanks for any answers regarding this problem.

View solution in original post

5 REPLIES 5
DH27
Frequent Visitor

Hi,

 

a week has passed and I managed to narrow the problem down to the following phenomenon:

In most of my graphs, the time stamps on the x-axis are mixed up, even though the data is sorted

correctly in the data-menu.

I have made another screenshot of the behaviour to further clear up the problem:

screenshot 1.png

As the visualisation is created with Python Visual, I am not able to sort the data manually in the report-menu.

Furthermore, it looks like only the labels on the x-axis are mixed up, the data itself seems to be sorted correctly.

 

Thanks for any answers regarding this problem.

Anonymous
Not applicable

Hi @DH27 ,

 

What's the data type of monat_1 column in Attachment 3? 

Do we have sort by feature in the visual?

1.PNG

 

Best Regards,

Jay

Hi @Anonymous 

 

thanks for your comment, the data type is text.

Unfortunately, I don't have the sort by feature for this visual.

Anonymous
Not applicable

Hi @DH27 ,

 

 

Since i can't restore your scenario, can you share your file to me if you don't have any Confidential Information?

 

Best Regards,

Jay

Hi @Anonymous 

 

below you will find a Power BI file with the unemployment figures I am working on.

The first page has the problem with the mixed up dates, which I was showing in my

inital message in attachment 2, and the second page has the weird time format

of attachment 1.

Unemployment figures 

 

I have used matplotlib and seaborn to create the visualisations.

 

Thanks again for your help,

DH27

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.