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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
bheepatel
Resolver IV
Resolver IV

Dynamic Column Names & RLS

Hi everyone,

 

We have a dashboard which multiple clients use and we make use of RLS to ensure a client can only see their own data.

 

The input data for the dashboard has certain columns that are the same across clients, but certain columns that are different. Below is an example of such, where both Client A and B have a Spend ($) column, but the Region and Product Type columns are different.

 

Client IDSpend ($)Region
A1000USA
A2000UK
A3000AUS

 

 

Client IDSpend ($)Product Type
B2000Shoes
B3000Apparel
B4000Accessories

 

Currently, we have merged the two tables as follows:

 

Client IDSpend ($)Custom Field 1
A1000USA
A2000UK
A3000AUS
B2000Shoes
B3000Apparel
B4000Accessories

 

Is there a way to dynamically rename the column based on the Client ID? So if Client A is looking at the dashboard, they would see "Region" and Client B would see "Product Type" instead of "Custom Field 1".

 

Currently we are using pivoting and the matrix table visual but it is not the best workaround. The ideal solution would be to rename the column headers dynamically.

 

Any help would be much appreciated!

 

1 ACCEPTED SOLUTION
v-lili6-msft
Community Support
Community Support

hi  @bheepatel 

Dynamic Column Names could not achieve in power bi for now, the best workaround is unpivot table and use matrix visual to get it.

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-lili6-msft
Community Support
Community Support

hi  @bheepatel 

Dynamic Column Names could not achieve in power bi for now, the best workaround is unpivot table and use matrix visual to get it.

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks @v-lili6-msft 

 

Would you happen to know if dynamic column header is in the pipeline of features to be added in the future?

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

Check out the August 2024 Power BI update to learn about new features.

August Carousel

Fabric Community Update - August 2024

Find out what's new and trending in the Fabric Community.