Forum Discussion
Line chart shows multiple lines in Visual Pane when only one measure was selected.
- 11 months ago
Hi Jhorman_Gomez ,
The issue comes from how the latest versions of Power BI Desktop are handling the line chart "series" formatting when a date column is on the X-axis. Normally, if you only have one measure in Y-axis, you should see just one line in formatting. But in your case, it is displaying each distinct date value as a separate series. That’s why the format dropdown lists of “lines” named with dates it thinks each point is a separate line.
This started appearing after a recent update Rolling back doesn’t always fix it, because the behavior may be tied to your PBIX file metadata once saved in a newer version.Please try below workarounds to fix the issue.
1. Instead of dragging Date directly to X-axis, try below measure
MonthYear = FORMAT('Date'[Date], "YYYY-MM")
or use your Year-Month column in the Date table. This groups dates and ensures Power BI doesn’t try to treat each date as its own category.
2. Disable “Show all series”, In the formatting pane Lines --> Show for all series, make toggle it Off. That way Power BI won’t try to render formatting options per series.
3. Use a measure as Legend, Create a calculated column in your Date table:
SingleLegend = "Sales"
Then drop it into the Legend well. That forces Power BI to treat the chart as a single line series, which cleans up the format pane.
4. Even if you are not explicitly using hierarchy, Power BI sometimes forces one. Right-click your Date field in the Fields pane --> uncheck Date Hierarchy, and make sure you are using just the raw column.
5. This looks like a bug introduced in the August/September builds of Power BI Desktop. If possible, test with the June 2025 build.
Note: Best workaround is adding a dummy constant Legend "Sales" or using Year-Month instead of full Date. That way you regain control over the line formatting and can safely add multiple measures later.
I hope this information helps. Please do let us know if you have any further queries.
Regards,
Dinesh
Hi Jhorman_Gomez ,
Please check below things to fix the issue.
1. Please check the date column used on the X-axis is date-only, not datetime. You can create a new column using below DAX.
DateOnly = DATE(YEAR([Date]), MONTH([Date]), DAY([Date]))
2. Disable Hierarchy, If Power BI is using a date hierarchy like Year > Quarter > Month > Day, switch to the flat date field instead of the hierarchy.
3. Please check that your measure is properly aggregated and that the visual is not interpreting each row as a separate series.
I hope this information helps. Please do let us know if you have any further queries.
Regards,
Dinesh
Good day, v-dineshya.
I have reviewed what you suggested:
1- most of the time I use dates only, and this is no exception. Column Date is date only and the dimension is marked as dates table.
2- As shown in the screenshot below. I'm not using hierarchy. I should say though, that this issue also appears when I'm using the Year, Quarter, Month or any other combination of fields in the x-axis.
3- Not really sure how to how to check whether the viz is interpreting each row as a separate series, but when I'm debuggin a viz I always work with the underlying table. I've put both in the screenshot below. Doesn't seem to be anything strange, just the map between dates and the agg of sales.
I appreciate your help with this issue, it's never happened before in years of working with Power BI.
- v-dineshya1 year agoCommunity Support
Hi Jhorman_Gomez ,
Thank you for the update. Please provide sample PBIX file. It will help us to replicate the scenario.
Regards,
Dinesh
- Jhorman_Gomez1 year agoHelper I
Hello, v-dineshya , this is the link for the file.
- v-dineshya1 year agoCommunity Support
Hi Jhorman_Gomez ,
It is a expected behaviour in Power BI. i have replicated from my side. I have choosed country field in X-axis. In Lines settings --> Categories field shows all the country values. If we place any field on X-axis, it will show all the values. It is a expected behaviour in Line chart. As you mentioned in your question , you had replicated in other PBIX file, it was worked perfectly. Please share expected output snap.
Regards,
Dinesh