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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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.

v-jayw-msft
Community Support
Community Support

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

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

Hi @v-jayw-msft 

 

thanks for your comment, the data type is text.

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

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

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

Hi @v-jayw-msft 

 

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.