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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
jschwabish
Regular Visitor

Confirming a suspicion about line charts in PBI

Hi everyone,

 

I'm new to using PBI and am very excited about what appears to be a very active community group. 

 

I was hoping someone could confirm a suspicion I have about creating a simple line chart in PBI. Let's say I have three columns, one with month (let's say in integers for the moment), one with year (e.g., two years), and the 3rd with some data values for each year-month combination. If I want to plot the time series in a line chart with all 24 values, I need to convert the year-month columns to a single DATE variable, correct? I can't simply create a line chart with 24 values as I would in Excel, right?

 

Thanks! 

1 REPLY 1
greggyb
Resident Rockstar
Resident Rockstar

You cannot combine fields as axis labels in a line chart.

 

Thus you'd end up with a line with one point per year of data when using year as the axis label, and with 12 points (one per grouped month value) when using month as the axis label.

 

You do need to create a new field that is distinct for year-month combinations. This does not necessarily have to be a date field unless you want it to be. I utilize a field with the date format of "yyyy mmm" (four digit year, space, three character month abbreviation) as my axis label in situations like this. You'll need to have a field to sort by otherwise your months will be sorted alphabetically within a given year.

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.

Top Solution Authors