Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
snemilipuri
Helper I
Helper I

Dynamic Legend Title

Hi,

I have hidden the legend title. Now I want to display a text (using card visualiztion) just before the legends based on filter selection. 

For Ex: Countries .India .China .Nepal .Srilanka

Here countries is the legend title which i have hidden. The resultant is .India .China .Nepal .Srilanka

Now I want to show like below.

Asia  .India .China .Nepal .Srilanka

where Asia is a value selected in filter. 

 

snemilipuri_0-1625656264580.png

 

Please help

4 REPLIES 4
Anonymous
Not applicable

Hi @snemilipuri ,

 

I don't quite understand your requirement but you could use Selectedvalue() function to get the selected value in slicer.

It would be better to show some screenshot to descripe your requirement.

 

Best Regards,

Jay

Fowmy
Super User
Super User

@snemilipuri 

One option is, you can type the legend name 

Fowmy_0-1625659074932.png

I you need it as dynamics lable then create a measure and assign it to a label or use the chart title and the fx there.


Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Thanks for your reply Fowmy. Actually, i have an idea to place the card viz infornt of legends. But can I move legend slightly right side to accomodate this card viz. Like in the image above. 

@snemilipuri 

You can use the Position option under the Legend properties 

Fowmy_0-1626080612009.png

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.