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
Queen_Geek
Helper I
Helper I

sobresalir a la fórmula DAX

Mis datos están todos en columnas en la misma tabla, sin necesidad de relaciones. Necesito encontrar el porcentaje de proyectos que tienen lecciones. La captura de pantalla es la versión de Excel de la salida de datos. La fórmula de Excel es

SUBTOTAL(9,Table1[Column1])/SUBTOTAL(3,Table1[Project]).

¿Cómo puedo traducir esto a DAX?

Lo intenté, pero el % no es correcto (sube un 4,8%).

Recuento de lecciones divididas por el recuento del proyecto
DIVIDE(SUM('Table1'['Lecciones]), COUNTA('Table1'[Proyecto]))

exec summary for power bi help.jpg

4 REPLIES 4
v-eachen-msft
Community Support
Community Support

Hola @Queen_Geek ,

Después de mis pruebas, obtuve el mismo resultado con estas fórmulas. Tal vez sea causado por su filtro o cortadora. Puede agregar el filtro ALL() en su medida.

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

Lo descubrí por mi cuenta. La respuesta fue simplemente

=

DIVIDE(Counta('Table1'[Startup]), COUNTA('Table1'[Project]))
.
amitchandak
Super User
Super User

Eso no ayuda. No hay subtotales en mis datos, está en columnas, como se muestra en la captura de pantalla. ¿Qué no está claro? Aquí hay una captura de pantalla de los datos (parcial) si eso ayuda?

Executive Summary screenshot 2.jpg

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.