Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
seanpratt
Helper III
Helper III

Necesidad de contar todos los valores "Y" de la medida

Parece bastante simple. He creado una tabla basada en algunas medidas aquí y mi tabla ahora se parece a la siguiente. Todo lo que quiero es ver una visualización de "tarjeta" con "9" en ella. Pero no puedo hacer que funcione.

Básicamente seleccionamos un rango de fechas (Tabla de pagos) y luego seleccionamos un valor (tabla de entrada variable) y si la columna "Días con pagos%" está por encima del valor entre esos días, los contaríamos.

Cada fórmula que hago da como resultado un CALCULATE se ha utilizado en una expresión True/False que se utiliza como una expresión de filtro de tabla. Esto no está permitido. error.

6 REPLIES 6
parry2k
Super User
Super User

@seanpratt comparten datos de ejemplo, miden la salida probada y esperada y se pondrán en conocimiento de la solución.

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.

@parry2k archivo adjunto aquí

Ejemplo PBIX

@seanpratt por lo que desea contar donde LEAVEIN es "Y", ¿correcto?



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.

@seanpratt probar esta medida

Tenants = COUNTX ( VALUES ( Payment[Tenant] ), IF ( [LEAVEIN] = "Y", 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 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.

¡Eso funcionó! Esta es tal vez una pregunta tonta, pero ¿qué no proporciona una opción "falsa" a esa fórmula?

Originalmente lo insumí como

COUNTX ( VALUES ( Payment[Tenant] ), IF ( [LEAVEIN] = "Y", 1,0 ) )

y el ",0" arruinó las cosas. Así que acabo de copiar y pegar el tuyo y funcionó perfectamente. ¿Qué hace dejar fuera la opción a la fórmula?

(También te agregué a LinkedIn! ¡Un compañero Canuck como yo!)

¡Exactamente!

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.