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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Nikhil_567
Frequent Visitor

Changing Column headers dynamically

Hello,

I have a requirement in which I need to change the column headers of matrix visual dynamically. Here is the situation-

I have a data table like below-

Data SourceAttribute 1Attribute 2Attribute 3
AzureA B
GBQPQR

And I have prepared a matrix visual like below-

MetricAttribute 1Attribute 2Attribute 3
Sales   

Now, we have a slicer for Data Source and according to the selection of values of the source, the column headers of above matrix visual should dynamically change.

If I select GBQ from Data Source slicer, the column headers in below matrix visual should change like - Attribute 1 should become A and Attribute 2 should remain blank and Attribute 3 should change to B.

And If I select Azure from Data Source slicer, the column headers in below matrix visual should change like - Attribute 1 should become P and Attribute 2 should change to Q and Attribute 3 should change to R.

Suggestons please.

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

Hi @Nikhil_567 

 

Please try this:

Click the Transform data > Select the Attribute(1,2,3) and click Unpivot columns in the Transform pane:

vzhengdxumsft_0-1715049321361.png

Close & Apply

The result is as follow:

vzhengdxumsft_1-1715049398822.pngvzhengdxumsft_2-1715049407652.png

 

Best Regards

Zhengdong Xu
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

1 REPLY 1
v-zhengdxu-msft
Community Support
Community Support

Hi @Nikhil_567 

 

Please try this:

Click the Transform data > Select the Attribute(1,2,3) and click Unpivot columns in the Transform pane:

vzhengdxumsft_0-1715049321361.png

Close & Apply

The result is as follow:

vzhengdxumsft_1-1715049398822.pngvzhengdxumsft_2-1715049407652.png

 

Best Regards

Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.