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
mb0307
Responsive Resident
Responsive Resident

Recuento de filas en función de la medida

Hola
Tengo una medida a continuación:
Nuevo cliente: IF([Sales Last Period] á SUM('Sales'[Amount]),"Y","N")
¿Es posible contar o sumar el resultado de una medida para todos los registros con "Y"?
Gracias
2 REPLIES 2
mahoneypat
Employee
Employee

Es posible hacer muchas cosas en medida sin el uso de columnas calculadas. Parece que está tratando de calcular nuevos clientes. Aquí hay un enlace con una manera de hacer eso. Si proporciona datos de ejemplo, se puede proporcionar una medida específica.

https://www.sqlbi.com/articles/computing-new-customers-in-dax/

Si esto funciona para usted, márquelo como la solución. Los elogios también son apreciados. Por favor, avísame si no.

saludos

palmadita





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


parry2k
Super User
Super User

@mb0307 añadir la siguiente medida para el conteo

Count Yes Measure = 
COUNTX ( VALUES ( Table[Customer] ), IF ( [New Customer] = "Y", 1 ) )

Count No Measure = 
COUNTX ( VALUES ( Table[Customer] ), IF ( [New Customer] = "N", 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.

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.