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

Comparar el valor fijo frente a la suma de los valores

Hola

Estoy construyendo un informe en el que necesito comparar la suma mensual (real) con un objetivo fijo (objetivo). Lo probé por mi cuenta, pero no estoy del todo allí.

PRUEBA: IF(TOTALMTD(SUM('Sheet1'[REAL HRS]))>'Sheet1'[TARGET HRS],1,0)
Esto da como resultado un ERROR. ¿Esperando que alguien pueda ayudar?
8 REPLIES 8
Ashish_Mathur
Super User
Super User

Hola

Comparta algunos datos y muestre el resultado esperado. ¿Necesita una columna calculada o una solución de medida?


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

@Ashish_Mathur @amitchandak Gracias por las respuestas. Estoy adjuntando una pequeña muestra de los datos y esperando que pueda utilizarlo para ayudarme. Todos los días hay ocurrencias de tiempo de inactividad que se suman (en minutos) y necesitamos comparar la SUMA por ubicación con un objetivo mensual fijo. Vea a continuación y hágamelo saber si necesita más información de mí.

Ubicación 1 Objetivo mensual: 9.425 horas

Ubicación 2 Objetivo mensual: 9.025 horas

Ubicación 3 Objetivo mensual: 15,60 horas

LocationStart_TimeEnd_TimeMinutes del tiempo de inactividad

11/9/2020 9:48:14 PM1/9/2020 9:50:47 PM2
11/9/2020 8:49:08 PM1/9/2020 9:06:49 PM17
31/9/2020 4:44:57 PM1/9/2020 5:06:29 PM22
21/9/2020 2:33:13 PM1/9/2020 3:33:44 PM60
21/8/2020 2:33:30 PM1/8/2020 2:33:58 PM0
21/8/2020 10:23:06 AM1/8/2020 2:13:54 PM230
21/8/2020 9:32:42 AM1/8/2020 9:36:34 AM4
21/7/2020 3:13:12 PM1/7/2020 3:50:16 PM37
31/7/2020 2:38:18 PM1/7/2020 3:43:08 PM65
31/7/2020 12:46:42 PM1/7/2020 1:16:07 PM30
31/7/2020 4:14:40 AM1/7/2020 4:21:09 AM7
21/6/2020 8:38:14 PM1/6/2020 8:41:07 PM3
21/6/2020 7:55:26 PM1/6/2020 7:58:19 PM3
21/6/2020 5:19:10 PM1/6/2020 5:27:23 PM8
31/6/2020 1:39:55 PM1/6/2020 3:16:11 PM97
21/6/2020 12:57:08 PM1/6/2020 1:00:23 PM3
31/6/2020 9:56:46 AM1/6/2020 10:37:30 AM41
31/5/2020 6:06:42 PM1/5/2020 6:09:29 PM3
21/4/2020 10:16:24 PM1/4/2020 10:23:21 PM7
21/4/2020 8:30:09 PM1/4/2020 8:35:33 PM5
31/3/2020 11:28:34 AM1/3/2020 12:06:14 PM38
11/3/2020 9:19:03 AM1/3/2020 9:23:14 AM4
11/3/2020 9:12:24 AM1/3/2020 9:16:54 AM4
11/3/2020 9:06:54 AM1/3/2020 9:10:12 AM4
21/3/2020 6:02:02 AM1/3/2020 6:06:43 AM4
31/3/2020 1:10:35 AM1/3/2020 4:22:49 AM192
11/2/2020 2:27:38 PM1/3/2020 2:27:25 AM720
11/2/2020 2:19:31 PM1/2/2020 2:21:58 PM2
11/2/2020 2:11:28 PM1/2/2020 2:18:59 PM7
11/2/2020 1:38:54 PM1/2/2020 2:08:39 PM30
11/2/2020 3:17:09 AM1/2/2020 3:57:12 AM40
21/2/2020 1:20:59 AM1/2/2020 1:23:22 AM3
21/2/2020 12:06:47 AM1/2/2020 12:12:51 AM6
11/1/2020 8:25:46 PM1/1/2020 9:13:39 PM48
21/1/2020 7:51:33 PM1/1/2020 7:53:58 PM2
21/1/2020 6:31:38 PM1/1/2020 7:05:15 PM34
11/1/2020 6:17:04 PM1/1/2020 6:22:03 PM5

Hola

Puede descargar mi archivo PBI desde aquí.

Espero que esto ayude.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

@Ashish_Mathur Gracias. He descomprimido el archivo y el archivo lee corrupto o no válido.

Hola, @leejoel

¿Podría decirme si su problema ha sido resuelto?
Si es así, marque las respuestas útiles o agregue su respuesta como Respondida para cerrar este hilo.

Saludos
Equipo de Apoyo Comunitario _ Eason

Es el archivo .pbix. ¿Por qué lo desablasitas?


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
amitchandak
Super User
Super User

Total de MTD necesita una columna de fecha

tratar como

PRUEBA: IF(TOTALMTD(SUM('Sheet1'[REAL HRS]),'Date'[Date]]> sum('Sheet1'[TARGET HRS]),1,0)

Supongamos una tabla de fechas aquí

Para obtener lo mejor de la función de inteligencia de tiempo. Asegúrese de que tiene un calendario de fechas y se ha marcado como la fecha en la vista de modelo. Además, únase a él con la columna de fecha de su hecho/s. Consulte:
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi
https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/

Intenté esto y todo vuelve como un valor '0'.

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.