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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Kudoed Authors