Forum Discussion
Custom legends for line chart
I want only display lagends only in chart. Right now display all details in legends.
Hi prasanthvp02
Add only the grouping field or only the column (or measure) that represents each line name, such as "Current", "Actuals", "Forecast"
I wouldn't suggest this but if your expectation is even more specific try to replicate the custom legend just showing which color represents what. This might be needed if you would like the legend to behave dynamic as PowerBI doesnot support that
A couple of suggestions would be to Hide the built-in legend, and create a custom legend with text boxes/shapes styled to match only the visible lines. For example, even a concatenated measure Legend that only returns values if your actual measure is non-blank.
If this doesn't help, please provide more context.
5 Replies
- MohamedFowzan1
Super User
Hi prasanthvp02
Add only the grouping field or only the column (or measure) that represents each line name, such as "Current", "Actuals", "Forecast"
I wouldn't suggest this but if your expectation is even more specific try to replicate the custom legend just showing which color represents what. This might be needed if you would like the legend to behave dynamic as PowerBI doesnot support that
A couple of suggestions would be to Hide the built-in legend, and create a custom legend with text boxes/shapes styled to match only the visible lines. For example, even a concatenated measure Legend that only returns values if your actual measure is non-blank.
If this doesn't help, please provide more context. - AnonymousNot applicable
Hi prasanthvp02,
Thanks for reaching out to the Microsoft fabric community forum.
It looks like your chart is showing too many entries in the legend likely due to multiple series or measures being used that include extra formatting or aggregation. As MohamedFowzan1 has already responded to your query, kindly go through his response and check if your issue can be resolved.
I would also take a moment to thank MohamedFowzan1, for actively participating in the community forum and for the solutions you’ve been sharing in the community forum. Your contributions make a real difference.
If I misunderstand your needs or you still have problems on it, please feel free to let us know.
Best Regards,
Hammad.- AnonymousNot applicable
Hi prasanthvp02,
As we haven’t heard back from you, so just following up to our previous message. I'd like to confirm if you've successfully resolved this issue or if you need further help.
If yes, you are welcome to share your workaround so that other users can benefit as well. And if you're still looking for guidance, feel free to give us an update, we’re here for you.
Best Regards,
Hammad.
- AnonymousNot applicable
Hi prasanthvp02,
Hope everything’s going smoothly on your end. As we haven’t heard back from you, so I wanted to check if the issue got sorted.
Still stuck? No worries just drop us a message and we can jump back in on the issue.Best Regards,
Hammad.