This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowJuly 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more
Hello guys,
I need to dynamically show and hide differents R visuals based on the selection in one slicer. I'm looking for a way to chage the dimensions (width and height), the position, or just make on R visual completelly transparent.
Anyone of you did this before?
Thanks in adavenced.
Solved! Go to Solution.
Hello @Anonymous and thaks for your support, I'm out of time now and I kinda solve my problem creating differente visuals , using bookmarks unckecking the data option and with different buttons triggering those bookmarks. Anyway I'd try your suggestion for a v2 of my model.
Thanks to all!
![]()
Hi @SebastianLM,
In my opinion, you can try to write a measure to check selected value and return tag.
Then drag this measure to visual level filter to R visual, use advanced filter mode with tag value to control display status of records in R visual.
Regards,
Xiaoxin Sheng
Hello @Anonymous and thanks for your reply,
I created the tag measure and put it in to the visual level filter, but I'm not sure what do you mean with "advanced filter mode with tag value to control display status of records in R visual". Could you please explain me this a lil bit more?
Hi @SebastianLM,
You can write measure with dax function to create variable to stored selected value form slicer. Add if statement to check selected value, if matched to condition, return 'Y', other return 'N'.
After above steps, drag this measure to visual level filter of R visual.
Switch filter mode to 'is', filter item to 'Y'. Then you can use slicer to control R visual display or not display records.
Regards,
XIaoxin Sheng
Hello @Anonymous and thaks for your support, I'm out of time now and I kinda solve my problem creating differente visuals , using bookmarks unckecking the data option and with different buttons triggering those bookmarks. Anyway I'd try your suggestion for a v2 of my model.
Thanks to all!
![]()
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!
Check out the July 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 25 | |
| 23 | |
| 19 | |
| 17 | |
| 14 |
| User | Count |
|---|---|
| 25 | |
| 23 | |
| 20 | |
| 20 | |
| 19 |