The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event! Join us in Stockholm, Sweden from September 24-27, 2024.
2-for-1 sale on June 20 only!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hola buenos dias, continuando con el problema del cambio de color de los botones. Quizas a alguiense le ocurra una idea que pueda realizar la siguiente funcion.
Tengo un boton:
Al pulsarlo abre un desplegable:
Que contiene dos slicer para filtrar los años y los meses.
Pues bien, me gustaria que el boton que hace que se abra el desplegable, cambiara de color si en alguno o en los dos slicer que contiene el desplegable hubuera algo seleccionado.
Se os ocurre comoo poderlo hacer?
Gracias a todos por adelantado
Un saludo
Solved! Go to Solution.
Hi @mchercol
You can refer to the following solution.
I create a table to set it as a slicer.
Then create a measure
Measure = IF(ISFILTERED('Slicer'[Value]),"red","white")
Put it to the condition of the button fill
Output:If the slicer is not filtered, the button will be white, or it will be red.
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@mchercol , I doubt standard visual can do that. Using a bookmark you can hide/show but for that, you need to have a button for each year.
You can explore need button slicer if it can do better job
https://powerbi.microsoft.com/en-us/blog/new-slicer-button-public-preview/
Bookmarks https://radacad.com/bookmarks-and-buttons-making-power-bi-charts-even-more-interactive
https://docs.microsoft.com/en-us/power-bi/desktop-bookmarks
Quizas no me explique muy bien lo que quisiera conseguir.
Lo que necesitaria conseguir es que si alguno de los segmentadores tiene algo selaccionad ( año o mes) es Botón que abre el menú
pudiera cambiar de color, así indicaría que hay algo seleccionado.
Gracias
Hi @mchercol
You can refer to the following solution.
I create a table to set it as a slicer.
Then create a measure
Measure = IF(ISFILTERED('Slicer'[Value]),"red","white")
Put it to the condition of the button fill
Output:If the slicer is not filtered, the button will be white, or it will be red.
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
105 | |
101 | |
81 | |
62 | |
54 |
User | Count |
---|---|
249 | |
119 | |
115 | |
94 | |
70 |