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
yasirsd
Frequent Visitor

Los datos repetidos deben contar como un mes y año siguiente

Queridos

Necesito contar los datos solo una vez después del mes y el año. en este momento está agregando todos los valores y entregando un resultado incorrecto. en Tiempo de producción de columna muestra el mismo valor para cada descripción del código de evento. que no quiero. por favor, ayúdenme.

PBi Question1.png

10 REPLIES 10
amitchandak
Super User
Super User

@yasirsd, intenta como

sumx(summarize(Table,Table[Month year],"_1",distinctcount(Table[event code])),[_1])

Consulte: https://community.powerbi.com/t5/Desktop/SUM-of-AVERAGE/td-p/197013

Tahreem24
Super User
Super User

@yasirsd ,

Por favor, comparta algunos datos de captura de pantalla o de muestra de su problema y ese DAX que utilizó para esto.

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

Querido

Se actualiza la captura de pantalla.

Gracias

@yasirsd lo que desea que sea la salida esperada? Además, puede compartir los datos como una tabla en lugar de una imagen.



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.

añoMesCódigo de eventoFrecuenciaHorasTiempo de producciónResiduos
2019Enero370340280 1 1176175
2019Enero10379702030281765 443
2019Enero370350610 2 0176185
2019Enero210300000 9 51761 699
2019Enero103315180 3 1176231
2019Enero310331000 3 1176263
2019Enero370340000 1 1176175
2019Enero370730000 1 0176101
2019Enero370340120 7 1176587
2019Enero210330730 4 1176388
2019Enero10380505010 8176 0
2019Enero103315300 2 0176133
2019Enero310332000 5 2176500
2019Enero201301700 3 2176446
2019Enero103317990 6 5176918
2019Enero701300000 4 2176377
2019Enero103797010 1 017658
2019Enero103316040 5 1176295
2019Enero70130100020 91762 383
2019Enero103805030 3 0176 0
2019Enero201303000 1 117674
2019Enero103317820 5 1176295
2019Enero701301040 1 017639
2019Enero1038050602734176 0
2019Enero103317000 5 1176351
2019Enero370350310 1 0176117
2019Enero37030000032111763 984
2019Enero310330000 1 017659
2019Enero103317290 1 017689
2019Enero103317410 2 0176118
2019Enero370330620 8 2176817
2019Enero370309020 1 017695
2019Enero370340240 4 1176297
2019Enero370350130 7 1176547
2019Enero103712310 2 0176172
2019Enero103310940 1 017659
2019Enero370350110 3 1176400
2019Enero310332030 2 1176332
2019Enero703301000 1 017623
2019Enero370345230 1 017688
2019Enero10331707021 51761 588
2019Enero103316700 1 2176120
2019Enero370701130 9 3176756
2019Enero370340710 1 017659
2019Enero210310000 4 2176536
2019Enero370750420 1 017659
2019Enero10331781020 51761 637
2019Enero10380700051241767 539
2019Enero210390000 5 2176438
2019Enero10339930016 0176948
2019Enero310331030 1 0176100
2019Enero20170600021 61762 607
2019Enero103313000 0 117659
2019Enero103301000 1 017659
2019Enero10331626013 21762 089
2019Enero103797050 5 51761 507
2019Enero370360110 3 1176297
2019Enero370360210 2 0176144
2019Enero103700000 2 0176 0
2019Enero370340220 6 2176752
2019Enero103399010 1 0176 0
2019Enero310300000 3 2176370
2019Enero301792010 8 2176853
2019Enero70130101011 41761 077
2019Enero801301010 1 3176660
2019Enero370340270 1 017659
2019Enero10380501021 3176 0
2019Enero370381790 1 017699
2019Enero103317420 3 1176238
2019Febrero103315980 1 018236
2019Febrero103327130 1 4182481
2019Febrero10379702019141823 311
2019Febrero210300000 2 0182202
2019Febrero103315180 3 0182206
2019Febrero370330320 1 018259
2019Febrero370350140 4 2182319
2019Febrero310331000 5 2182546
2019Febrero201301000 1 018259
2019Febrero370340120 3 1182203
2019Febrero21033073019 51821 596
2019Febrero103317140 1 1182164
2019Febrero103805050 2 3182 0
2019Febrero370381510 2 0182118
2019Febrero370330340 1 018291
2019Febrero103303110 2 2182256
2019Febrero201305000 1 018285
2019Febrero201301700 5 0182315
2019Febrero103317990 2 218259
2019Febrero370330430 1 1182189
2019Febrero201300000 2 0182150
2019Febrero103711120 1 018247
2019Febrero701300000 3 2182223
2019Febrero103310020 4 1182275
2019Febrero370350620 1 018288
2019Febrero370330330 4 8182673
2019Febrero103312010 2 0182123
2019Febrero103316040 8 1182710
2019Febrero70130100024121823 163
2019Febrero103805030 1 0182 0
2019Febrero10331782011 5182913
2019Febrero103317460 2 0182116
2019Febrero1038050603028182 0
2019Febrero103317000 2 1182406
2019Febrero301300000 1 018229
2019Febrero103312160 1 0182166
2019Febrero370350310 3 1182294
2019Febrero370300000 2 0182145
2019Febrero310330000 3 1182177
2019Febrero370330920 2 0182161
2019Febrero103316000 1 0182100
2019Febrero370350000 1 0182121
2019Febrero103710250 1 018227
2019Febrero103316760 8 41821 099
2019Febrero103317410 6 1182698

Lo que necesito es que, para enero de 2019, sólo cuente el tiempo de producción 176. actualmente está agregando todos los datos jan2019 y dando valor en miles. Tengo los mismos datos para varias máquinas. algunas máquinas tienen jan,2019 tiempo de producción cero. si uso mínimo me da valor cero.

Tengo el número de serie de la máquina para diferenciar los datos entre diferentes máquinas.

Hola @yasirsd ,

Prueba a medir así:

Measure =
CALCULATE (
    FIRSTNONBLANK ( 'Table'[Production Time], 1 ),
    ALLEXCEPT ( 'Table', 'Table'[year], 'Table'[month] )
)

Saludos
Liang
Si este post ayuda, entonces considera Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.

@yasirsd probar esta medida

Measure = 
SUMX ( SUMMARIZE( Table, Table[Date], Table[Machine], "Max Production", MAX( Table[Production] ),
[Max Production]
)

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!



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
Super User
Super User

@yasirsd cambiar la agregación a MIN o MAX en lugar de SUM, para cambiar la agregación, haga clic en la flecha siguiente en la sección de colocación del valor del objeto visual y elija la agregación MIN/MAX.

si no funciona, lee este post para obtener tu respuesta rápidamente.

https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

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!



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.

Hola

Min o Max no funciona ya que tengo algunos meses con 0 valores.

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.