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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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