Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Hello experts,
I am running in to an error of ordering the month in power b visuals in python scripting.
Here is the code i am referring.
Can anyone help me to find me the way of ordering this on the pbi visual?
import matplotlib.pyplot as plt
ax = plt.gca()
dataset.plot(kind='line', x='Month', y='cases', color='red',ax=ax)
dataset.plot(kind='line', x='Month', y='deaths', color='green', ax=ax)
plt.show() when look in to the green line, it also not categorized clearly. can you help me on this?
And when i selected date, why the chart behaves like this?
My expectation was a flowing line chart on the visual. I have selected the current monthe in the filter. This shows the data from Aug 1 to Aug 20, 2021.
instead of
x='Month'
you should have something like
x='YearMonth'
Looks like your date filter does not impact the data frame. Check your data model.