Forum Discussion
gwp
9 years agoAdvocate II
Line chart with multiple fields in Legend
In traditional pivot a user can put any number of fields in say the columns of a pivot table. Each of these fields will influence the number of columns shown in the pivot table and will show up in th...
- Anonymous9 years ago
Hi gwp,
Based on my test, currently line char/bar chart not support drag multiple fields to legend. These charts' axis and values field support multiple fields.
For your requirement, you can vote below idea:Ability to use multiple fields on a legend like an Excel pivot chart
Regards,
Xiaoxin Sheng
MalJan19
7 years agoFrequent Visitor
I used this article and modified the code provided to get around the issue of not having multiple fields in the legend. I'm not sure if it would work for every use case, but it's a good starting point.
https://prathy.com/2018/12/dynamic-legend-in-power-bi-visual-linechart/