This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hola Amigos! queria pedir ayuda para poder solucionar en DAX el siguiente problema. Tengo una tabla con los campos conductores, con su ID y el campo fecha que muestra "la fecha en que presto servicio" dicho conductor
Para poder calcular los dias trabajados utilizo la siguente formula que funciona bien, pero con un detalle. Necesito poder sumar los recuentos distintos de cada chofer y que aparezca en el total del campo.
Esta medida recuenta las fechas disntitas de la tabla
Como veran el resultado del DISTINC COUNT a nivel de filas funciona bien, pero en el total necesito que sume la cantidad de dias totales de todos los choferes para devolver 43 en vez de 16 dias.
¿COMO PUEDO SOLUCIONARLO?
desde ya muchas gracias!
Hi @ivanvera79
Measure =
SUMX ( DISTINCT ( TMS[Conductor1] ), CALCULATE ( TMS[Fin Real] ) )
|
|
Please accept the solution when done and consider giving a thumbs up if posts are helpful. Contact me privately for support with any larger-scale BI needs, tutoring, etc. |
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 3 | |
| 3 | |
| 3 | |
| 3 | |
| 2 |
| User | Count |
|---|---|
| 8 | |
| 8 | |
| 6 | |
| 6 | |
| 6 |