Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Multiple line charts

So how  do i generate multiple line charts based on each content of a particular table ie. when i select each row of the table automatically a line graph corresponding to the row should be generated and similarly if i select 2 rows of the table there should be 2 line charts and so on based on the number of selections made on the table . 

  • Anonymous's avatar
    Anonymous
    5 years ago

    Hi Anonymous 

    In addition to  

    Category = VALUES('Table'[Category])

    Measure = 
    VAR _SelectCategory = ALLSELECTED(Category[Category])
    Return
    IF(ISFILTERED(Category[Category]),SUMX(FILTER('Table','Table'[Category] in _SelectCategory),'Table'[Value]),BLANK())

    Build a line chart and result is as below.

    By default:

    Select A:

    Select A & B:

    If this reply still couldn't solve your problem, please show me your table and the result you want.

    Or you can share your pbix file with me by Onedrive for Business.

    You can download the pbix file from this link: Multiple line charts

     

     

    Best Regards,

    Rico Zhou

     

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

4 Replies

  • Anonymous , I doubt any visual like that. If you use a legend line visual and the other table can filter legend.  Each legend will create one line

    • Anonymous's avatar
      Anonymous
      Not applicable

      Is there any market visual that can achieve this

  • Anonymous's avatar
    Anonymous
    Not applicable

    I tried small multiple line chart visual in the market place but it didnt give me the required result

     

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous 

    In addition to  

    Category = VALUES('Table'[Category])

    Measure = 
    VAR _SelectCategory = ALLSELECTED(Category[Category])
    Return
    IF(ISFILTERED(Category[Category]),SUMX(FILTER('Table','Table'[Category] in _SelectCategory),'Table'[Value]),BLANK())

    Build a line chart and result is as below.

    By default:

    Select A:

    Select A & B:

    If this reply still couldn't solve your problem, please show me your table and the result you want.

    Or you can share your pbix file with me by Onedrive for Business.

    You can download the pbix file from this link: Multiple line charts

     

     

    Best Regards,

    Rico Zhou

     

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