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
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
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.