Forum Discussion

Jhorman_Gomez's avatar
1 year ago
Solved

Line chart shows multiple lines in Visual Pane when only one measure was selected.

Hello everyone,    I'm having this issue with line charts. I use the dates table in the x-axis and any measure (from the fact table connected to the dates table). Issue is I need to add more measur...
  • v-dineshya's avatar
    v-dineshya
    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