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
Anonymous
Not applicable

Declaración de DAX

Hola, Ejemplo de mi conjunto de datos está a continuación, necesito ser capaz de contar los valores SOLAMENTE si los nombres de ambos equipos coinciden Así que si el equipo A - Equipo B, valor es igual a ___ Equipo A Value Team B Apple 1 Banana Banana Banana 1 Apple 1 Apple ¿Alguien me ayudaría a hacer esto en DAX? Gracias
5 REPLIES 5
parry2k
Super User
Super User

@UnknownValue puede publicar los datos de ejemplo en un formato de tabla, es muy difícil leer esto como un párrafo. y también compartir la salida esperada.



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.

Anonymous
Not applicable

Example.PNG

Básicamente

Si Equipo A - Equipo B y luego 2

Si Equipo A !- Equipo B y luego 0

Espero que esto tenga más sentido, la idea es que cuando los nombres de equipo son iguales entre sí la cantidad se está sumando, si no son iguales entre sí, entonces cero para esa fila

Hola , @UnknownValue

También puede crear una columna condicional en el editor de consultas (Transformar datos) y, a continuación, filtrar filas->filas agrupadas ->despivot esta columna.

17.png

El resultado se mostrará como se muestra a continuación:

18.png

muestra pbix adjunta

Saludos
Equipo de soporte de la comunidad _ Eason

Anonymous
Not applicable

Oh chico, ¿no hay forma de editar?

Example.PNG

@UnknownValue agregar una nueva columna con la siguiente expresión y, a continuación, use esta nueva columna en los objetos visuales

New Amount =
IF ( Table[TeamA] = Table[TeamB], Table[Amount], 0 )

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

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.