Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and a 50 percent discount on exams.
Get startedEarn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
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.