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 ...
  • 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.