Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

how to display a basic line chart ?

Obviously this is a beginner question... Here is a small set of data that I want to transcript into 3 line charts :     let Source = Table.FromRows(Json.Document(Binary.Decompress(Bina...
  • AnastasiaS's avatar
    3 years ago

    Hello Anonymous 

     

    The summarization will automatically apply when it comes to "numeric" values (the different Stream columns being defined as numeric). If we want to change that for a specific field we can go to the "Column tools" when a field is selected and set to "don't summarize". I think this is what you did.

    In your case, you need to put that Stream1... values on the Y axis; as it's a Y axis, it has to do an aggregation. As you previously set to "do not summarize", power bi will still try to to an aggregation, which will be by default the Count.

     

    This is why you always have 1: it couns the number of values, for each of your date. And thus, for each date, you only have 1 value.

     

    To achieve what you want, you'll need to go back to sum, or min/max (it depends on the case, but for your example min/max could work as well).

     

    To remove that hiererchical part of the date, you need to just click on the "arrow" near your date, and select Date:

    (Optional) Depending on the desired result, you may also need to change the X axis to Categorical to have that exact date shown:

     

    If you want to change the format of your shown date, just go to the formatting pane:

     

    You'll obtain smth like that in the end (of course this is a draft that will need to be updated)

     

    Don't hesitate if smth's not clear!

    Regards,