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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
prakash11440278
Post Prodigy
Post Prodigy

Dynamic Row header change from slicer selection

Hi Team,

 

My requirement is to change the row headers dynamically if i switch the filter from yes & no.

 

If yes means Mine% column need to display and no means Mine. Please help.

 

prakash11440278_0-1604944113042.png

 

 

Thanks in advance.

1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hello @prakash11440278

Are these two columns of different tables? If so, you can create a new table with the following DAX code, and then place the Mine and Value columns of this new table in a table visual and place the YesOrNo column in a slicer to filter the values in the table.

NewTable = UNION(SUMMARIZE(TableNo,TableNo[Value],TableNo[Mine],"YesOrNo","No"),SUMMARIZE(TableYes,TableYes[Value],TableYes[Mine%],"YesOrNo","Yes"))

111307.jpg

111308.jpg

Best regards

Community Support Team _ Jing Zhang

If this post helps,please consider Accepting it as the solution to help other members find it.

View solution in original post

2 REPLIES 2
v-jingzhang
Community Support
Community Support

Hello @prakash11440278

Are these two columns of different tables? If so, you can create a new table with the following DAX code, and then place the Mine and Value columns of this new table in a table visual and place the YesOrNo column in a slicer to filter the values in the table.

NewTable = UNION(SUMMARIZE(TableNo,TableNo[Value],TableNo[Mine],"YesOrNo","No"),SUMMARIZE(TableYes,TableYes[Value],TableYes[Mine%],"YesOrNo","Yes"))

111307.jpg

111308.jpg

Best regards

Community Support Team _ Jing Zhang

If this post helps,please consider Accepting it as the solution to help other members find it.

camargos88
Community Champion
Community Champion

@prakash11440278 ,

 

I don't know if I get it right....

You can create a column for each dataset with the information (YES/NO) and append both tables. So when you change the slicer you get different values.



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

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.

Top Solution Authors