Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Estoy trabajando para crear una tarjeta de puntuación para una categoría. No sé si lo que estoy tratando de hacer es posible.
Me gustaría crear una función dax que compare todos los valores de texto (Tamaño) dentro de un grupo (Environment). Si los valores de texto no son los mismos dentro de un grupo determinado, debe devolver un 0 para el registro; si son los mismos dentro de un grupo dado, entonces devuelva un 1.
Consulte la tabla siguiente para saber cómo debería ser el resultado. Gracias por la ayuda!
Ambiente | Tamaño | Valor de retorno |
Desarrollo | Standard_B4ms | 0 |
Desarrollo | Standard_B8ms | 0 |
Producción | Standard_DS3_v2 | 0 |
Producción | Standard_DS4_v2 | 0 |
Qa | Standard_DS3_v2 | 1 |
Qa | Standard_DS3_v2 | 1 |
Etapa | Standard_DS3_v2 | 1 |
Etapa | Standard_DS3_v2 | 1 |
Uat | Standard_DS3_v2 | 0 |
Uat | Standard_DS4_v2 | 0 |
@chall069 ,
Aquí está la fórmula:
@chall069 añadir la siguiente medida y eso lo hará
Measure =
VAR __c = CALCULATETABLE ( VALUES ( 'Table (2)'[Size] ), ALLEXCEPT ( 'Table (2)', 'Table (2)'[Environment] ) )
RETURN
IF ( COUNTROWS ( __c ) > 1, 0, 1 )
Me gustaría❤ elogiossi mi solución ayudara.👉Si puedes pasar tiempo publicando la pregunta, también puedes hacer esfuerzos para dar a Kudos quien haya ayudado a resolver tu problema. ¡Es una muestra de agradecimiento!
⚡Visítenos enhttps://perytus.com, su ventanilla única para proyectos/formación/consulta relacionadas con Power BI.⚡
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Gracias por la ayuda