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
Newby
Frequent Visitor

Visuals

I have the same report for different portfolios. I download the data for the individual portfolio using a portfolio ID as a parameter in a SQL query and use this data in various visuals. I would like to rename the data column to that of the portfolio id (which I know how to do based on this), but as this video shows, any preset visuals will fail as the visual does not recognise the "new" column name that is based on the parameter. Is there a way of overcoming this issue?

 

My suggestion would be to allow a formula in the "Rename for this visual" to govern what shows in the visual legend, which is not currently possible. Any other ideas of how to display a parameter value in a visual without having to reselect columns every time or to "Rename for this visual" every time? So for example, in the chart below, I want to show the portfolio id instead of "Portfolio" where portfolio id depends on a parameter.

 

Newby_0-1659958026446.png

 

1 REPLY 1
RicoZhou2
Resolver I
Resolver I

Hi @Newby ,

 

According to your statement, I think you want to show selected portfolios id dynamiclly in Power BI Legend.

As far as I know, Power BI doesn't support us to add measure into Legend field or let column header be dynamic.

So I suggest you to add ids in legend directly.

For reference: Get started formatting Power BI visualizations - Power BI | Microsoft Docs

 

Best Regards.

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.