Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago

Display Trend Line for 1 Bar Only

I have a clustered column chart with 3 bars.  I want to add a trend line to only 1 of the 3 bars.  It seems like there is only an option for a combined trend, which I cannot use, or 3 individual trends for each bar.  I only want to show the trend on 1 bar.  Is this possible?  Thanks!

8 Replies

  • Anonymous not sure what you are trying to achieve? Can you share some examples?

  • Anonymous's avatar
    Anonymous
    Not applicable

    Power BI only seems to add a trend line for each bar as shown in the first chart when turning off Combine Series.  Or if I change it and turn on Combine Series it adds 1 trend line for the combination of all 3 bars.  I only want to trend one bar, the total submitted as shown in the second chart which I had to recreate in Excel.

     

  • Anonymous you can create a combo chart in Power BI and for line use the following measure:

     

    Line = CALCULATE ( SUM ( Table[Value] ), Table[Type] = "Submitted" )

     

    Check my latest blog post Comparing Selected Client With Other Top N Clients | PeryTUS  I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

    Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.

    • Anonymous's avatar
      Anonymous
      Not applicable

      That calc gives me the sum of the submitted tickets each month and not a trend of the submitted tickets.

       

  • Anonymous that is to give you an idea of how you can achieve this? I don't know how your data is structured and how tables are related etc. Put something together in a pbix file and share it using one drive/google drive with the expected output.

     

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      Sorry, I can't send the data.  But it's very simple, it's 1 table with total tickets submitted, total tickets resolved, total tickets remaining open sum by month.  I add all 4 fields to the chart and set a trend line.  But Power BI doesn't appear to have an option to only allow me to show the trend line for submitted like Excel does.  The 2 pics I attached show Power BI with 3 lines and Excel with only 1 which is what I am trying to accomplish in Power BI.  Seems simple enough, but I don't see an option to only display the one trend line I want in Power BI.

  • Anonymous You need to create dummy data and send it with the expected output. Not sure what else to tell or maybe someone else can help. 

    • Anonymous's avatar
      Anonymous
      Not applicable

      I cannot send a file, but have provided screen shots of the table and visuals.