Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
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. |
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
10 | |
10 | |
9 | |
9 |
User | Count |
---|---|
20 | |
13 | |
12 | |
11 | |
8 |