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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
brightbright
Regular Visitor

Month of February is only displaying once in line chart and should display 2x

Hi

 

I've created a table in Excel that starts in February 2024 and ends in February 2025. From there, I'm using the table in Excel to visualize a line chart that's sorted by the target column and is sorted ascending.

 

I noticed that February is only displayed one time at the end of the chart and has summed the targets from February 2024 to February 2025.

 

You'll also notice in Power BI under the filtering section, that there's a #2 by February.

 

Regarding the table in Excel the date is displayed as Feb-24 but in the fx box the date is displayed 2024.

 

What do I need to do format the date correctly so February 2024 is at the start of the chart and February 2025 is at the end?

 

Screenshots below:

FilterFilterLine chartLine chartDateDate

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

@brightbright So, you will need to create a column that distinguishes February 2024 from February 2025, such as FORMAT([Date], "mmm-yy"). You would then use that in your axis. You will also need a Sort By column such as YEAR([Date]) * 100 + MONTH([Date]).


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
Greg_Deckler
Super User
Super User

@brightbright So, you will need to create a column that distinguishes February 2024 from February 2025, such as FORMAT([Date], "mmm-yy"). You would then use that in your axis. You will also need a Sort By column such as YEAR([Date]) * 100 + MONTH([Date]).


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Thanks, @Greg_Deckler, I'll give this a try. 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors
Top Kudoed Authors