Forum Discussion
Iaguas
1 year agoFrequent Visitor
Multiple lines in line graph based on two multiselect slicers
Hello everyone, I need to make a dynamic line chart with multiple lines based on two or more multi-select slicers. I know I can do it with one multi-select slicer by adding my data in the legend and...
- Anonymous1 year ago
Thanks for the reply from lbendlin.
Hi Iaguas ,
Please try the following steps:
1.Create a new column.
Segment&State = 'Table'[Segment]&"&"&'Table'[State]2.Create a line chart and use the column created as legend.
3.Result:
Best Regards,
ZhuIf there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Iaguas
1 year agoFrequent Visitor
This is fictitious data, not real and not confidential.
| Order Date | Segment | State | Sales |
| 09/11/2013 | Consumer | Kentucky | 261,96 |
| 09/11/2013 | Consumer | Kentucky | 731,94 |
| 13/06/2013 | Corporate | California | 14,62 |
| 11/10/2012 | Consumer | Florida | 957,5775 |
| 11/10/2012 | Consumer | Florida | 22,368 |
| 09/06/2011 | Consumer | California | 48,86 |
| 09/06/2011 | Consumer | California | 7,28 |
| 09/06/2011 | Consumer | California | 907,152 |
| 09/06/2011 | Consumer | California | 18,504 |
| 09/06/2011 | Consumer | California | 114,9 |
| 09/06/2011 | Consumer | California | 1706,184 |
| 09/06/2011 | Consumer | California | 911,424 |
| 16/04/2014 | Consumer | North Carolina | 15,552 |
| 06/12/2013 | Consumer | Washington | 407,976 |
| 22/11/2012 | Home Office | Texas | 68,81 |
| 22/11/2012 | Home Office | Texas | 2,544 |
| 11/11/2011 | Consumer | Wisconsin | 665,88 |
| 13/05/2011 | Consumer | Utah | 55,5 |
| 27/08/2011 | Consumer | California | 8,56 |
| 27/08/2011 | Consumer | California | 213,48 |
| 27/08/2011 | Consumer | California | 22,72 |
| 10/12/2013 | Corporate | Nebraska | 19,46 |
| 10/12/2013 | Corporate | Nebraska | 60,34 |
| 17/07/2014 | Consumer | Pennsylvania | 71,372 |
| 25/09/2012 | Consumer | Utah | 1044,63 |
| 16/01/2013 | Consumer | California | 11,648 |
| 16/01/2013 | Consumer | California | 90,57 |
| 17/09/2012 | Consumer | Pennsylvania | 3083,43 |
| 17/09/2012 | Consumer | Pennsylvania | 9,618 |
| 17/09/2012 | Consumer | Pennsylvania | 124,2 |
| 17/09/2012 | Consumer | Pennsylvania | 3,264 |
| 17/09/2012 | Consumer | Pennsylvania | 86,304 |
| 17/09/2012 | Consumer | Pennsylvania | 6,858 |
| 17/09/2012 | Consumer | Pennsylvania | 15,76 |
| 20/10/2014 | Home Office | Texas | 29,472 |
| 09/12/2013 | Corporate | Texas | 1097,544 |
| 09/12/2013 | Corporate | Texas | 190,92 |
| 27/12/2012 | Home Office | Texas | 113,328 |
| 27/12/2012 | Home Office | Texas | 532,3992 |
| 27/12/2012 | Home Office | Texas | 212,058 |
| 27/12/2012 | Home Office | Texas | 371,168 |
| 11/09/2014 | Corporate | Illinois | 147,168 |
| 18/07/2013 | Corporate | California | 77,88 |
| 20/09/2014 | Corporate | Florida | 95,616 |
| 12/03/2013 | Corporate | Minnesota | 45,98 |
| 12/03/2013 | Corporate | Minnesota | 17,46 |
| 20/10/2011 | Consumer | Michigan | 211,96 |
| 21/06/2013 | Consumer | Delaware | 45 |
| 21/06/2013 | Consumer | Delaware | 21,8 |
| 18/04/2012 | Consumer | Indiana | 38,22 |
| 18/04/2012 | Consumer | Indiana | 75,18 |
| 18/04/2012 | Consumer | Indiana | 6,16 |
| 18/04/2012 | Consumer | Indiana | 89,99 |
| 12/12/2013 | Corporate | New York | 15,26 |
| 12/12/2013 | Corporate | New York | 1029,95 |
| 18/06/2013 | Consumer | New York | 208,56 |
| 18/06/2013 | Consumer | New York | 32,4 |
| 18/06/2013 | Consumer | New York | 319,41 |
| 18/06/2013 | Consumer | New York | 14,56 |
| 18/06/2013 | Consumer | New York | 30 |
| 18/06/2013 | Consumer | New York | 48,48 |
| 18/06/2013 | Consumer | New York | 1,68 |
| 24/11/2012 | Consumer | California | 13,98 |
Anonymous
1 year agoNot applicable
Thanks for the reply from lbendlin.
Hi Iaguas ,
Please try the following steps:
1.Create a new column.
Segment&State = 'Table'[Segment]&"&"&'Table'[State]
2.Create a line chart and use the column created as legend.
3.Result:
Best Regards,
Zhu
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Iaguas1 year agoFrequent Visitor
Thank you very much for your help!