Forum Discussion

rmcgrath's avatar
rmcgrath
Advocate III
1 year ago
Solved

Line Chart plots everything in one line?

I have tried everything I can think of to fix this...but in my line chart, Power BI keeps graphing each set on the same line, even with a legend?

 

The X-Axis is Week.Day and is of type "decimal number".  So I don't understand why I am only getting one plot line?

  • Hi rmcgrath 

     

    Based on the data you attached, those lines sit on different time axes with no day-level overlap.

     

    That means they won’t stack one beneath the other—they’ll appear one after the other, as in the screenshot.

     

    (The only exception would be if you’re comparing day-of-week trends independent of the specific week.)

     

    I’ve also included a PBIX file with an example so you can compare your steps to mine and fix whatever needs adjustme

    If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

3 Replies

  • rmcgrath's avatar
    rmcgrath
    Advocate III
    GroupCodePctLivAgeDaysAgeRndWksDaysRemainWeekDay
    MLL1000195.44%26438538.5
    MLL1000195.40%26538638.6
    MLL1000195.39%26638038
    MLL1000195.35%26738138.1
    MLL1000195.33%26838238.2
    MLL1000195.31%26938338.3
    MLL1000195.28%27039439.4
    MLL1000195.25%27139539.5
    MLL1000195.22%27239639.6
    MLL1000195.21%27339039
    MLL1000195.18%27439139.1
    MLL1000195.15%27539239.2
    MLL1000195.12%27639339.3
    MLL1000195.10%27740440.4
    MLL1000195.08%27840540.5
    OVL23T0899.87%12518618.6
    OVL23T0899.86%12618018
    OVL23T0899.85%12718118.1
    OVL23T0899.84%12818218.2
    OVL23T0899.84%12918318.3
    OVL23T0899.83%13019419.4
    OVL23T0899.82%13119519.5
    OVL23T0899.80%13219619.6
    OVL23T0899.80%13319019
    OVL23T0899.79%13419119.1
    OVL23T0899.78%13519219.2
    OVL23T0899.78%13619319.3
    OVL23T0899.78%13720420.4
    OVL23T0899.76%13820520.5
    OVL23T0899.75%13920620.6

     

    The expected outcome would be a line for each set (MLL10001 and OVL23T08), with PctLiv on the Y-Axis and WeekDay on the X-Axis.  Special Note:  WeekDay is the Week number separated with a "." and then the day.  So, for example, 20.6 would represent the 20th week, Day 6.

    • Ritaf1983's avatar
      Ritaf1983
      Super User

      Hi rmcgrath 

       

      Based on the data you attached, those lines sit on different time axes with no day-level overlap.

       

      That means they won’t stack one beneath the other—they’ll appear one after the other, as in the screenshot.

       

      (The only exception would be if you’re comparing day-of-week trends independent of the specific week.)

       

      I’ve also included a PBIX file with an example so you can compare your steps to mine and fix whatever needs adjustme

      If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly