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

Cuente con la primera agrupación de casos de resultados de calificación por ubicación

Morning All, esperando poder conseguir un poco de ayuda con una fórmula en la que me he quedado atascado.

Estoy tratando de contar el número de instancias en función de los resultados de auditoría calificados por ubicación y el clúster de instancias más reciente.

ResultDateFaseAuditScoreSortAuditScoreSetInOrderAuditScoreShineAuditScoreSafetyResultDateSoWTipoUbicaciónÍndiceCalificaciónQualfyingCountQualifyingResultNeeded
4/22/2020Establecer en orden44 4Miércoles, 22 de abril de 20202Cell1669197
4/9/2020Establecer en orden3.53.8 4Jueves, 9 de abril de 20202Cell1670197
3/26/2020Establecer en orden43.4 4jueves, 26 de marzo de 20202Cell1671197
3/9/2020Establecer en orden43.4 4lunes, 9 de marzo de 20202Cell1672197
2/29/2020Establecer en orden3.63.4 4Sábado, 29 de febrero de 20202Cell1673197
2/28/2020Establecer en orden3.13.1 4viernes, 28 de febrero de 20202Cell1674197
2/10/2020Establecer en orden3.13.7 4lunes, 10 de febrero de 20202Cell1675197
1/31/2020Establecer en orden42.8 4viernes, 31 de enero de 20202Cell1676 97
1/15/2020Establecer en orden3.62.8 4miércoles, 15 de enero de 20202Cell1677 97
12/31/2019Establecer en orden3.12.8 3.571martes, 31 de diciembre de 20192Cell1678 97
12/17/2019Establecer en orden3.63.1 3.8martes, 17 de diciembre de 20192Cell1679197
12/5/2019Establecer en orden43.4 4Jueves, 5 de diciembre de 20192Cell1680197
4/23/2020Tipo3.5 3.6jueves, 23 de abril de 20201Cell2715153
4/23/2020Tipo3.1 3.8jueves, 23 de abril de 20201Cell2716153
4/22/2020Tipo3.5 3.6Miércoles, 22 de abril de 20201Cell2717153
4/8/2020Tipo2.7 3.2Miércoles, 8 de abril de 20201Cell2718 53
3/26/2020Tipo2.3 2.93jueves, 26 de marzo de 20201Cell2719 53
3/11/2020Tipo3.1 3.4miércoles, 11 de marzo de 20201Cell2720153
2/24/2020Tipo3.6 4lunes, 24 de febrero de 20201Cell2721153
1 ACCEPTED SOLUTION
Syndicate_Admin
Administrator
Administrator

No @adamnimmo ,

Cree dos columnas así:

Column 1 = 
VAR thislocation = Sheet1[Location]
VAR FirstLessThan3Index =
    CALCULATE (
        MIN ( Sheet1[Index] ),
        FILTER ( ALLEXCEPT ( Sheet1, Sheet1[Location] ), [Qualifying] = BLANK () )
    )
RETURN
    IF (
        FirstLessThan3Index > Sheet1[Index]
            && Sheet1[Location] = thislocation,
        1,
        0
    )
Column 2 = 
VAR thislocation = Sheet1[Location]
RETURN
    SUMX ( FILTER ( Sheet1, Sheet1[Location] = thislocation ), [Column 1] )

column2.PNG

Por cierto, archivo .pbix adjunto.

Saludos

Icey

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

View solution in original post

7 REPLIES 7
Syndicate_Admin
Administrator
Administrator

No @adamnimmo ,

Cree dos columnas así:

Column 1 = 
VAR thislocation = Sheet1[Location]
VAR FirstLessThan3Index =
    CALCULATE (
        MIN ( Sheet1[Index] ),
        FILTER ( ALLEXCEPT ( Sheet1, Sheet1[Location] ), [Qualifying] = BLANK () )
    )
RETURN
    IF (
        FirstLessThan3Index > Sheet1[Index]
            && Sheet1[Location] = thislocation,
        1,
        0
    )
Column 2 = 
VAR thislocation = Sheet1[Location]
RETURN
    SUMX ( FILTER ( Sheet1, Sheet1[Location] = thislocation ), [Column 1] )

column2.PNG

Por cierto, archivo .pbix adjunto.

Saludos

Icey

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

@Icey Eres brillante, muchas gracias esto funciona perfecto.

Icey
Community Support
Community Support

Hola @adamnimmo ,

Cree dos columnas así:

Column 1 = 
VAR thislocation = Sheet1[Location]
VAR FirstLessThan3Index =
    CALCULATE (
        MIN ( Sheet1[Index] ),
        FILTER ( ALLEXCEPT ( Sheet1, Sheet1[Location] ), [Qualifying] = BLANK () )
    )
RETURN
    IF (
        FirstLessThan3Index > Sheet1[Index]
            && Sheet1[Location] = thislocation,
        1,
        0
    )
Column 2 = 
VAR thislocation = Sheet1[Location]
RETURN
    SUMX ( FILTER ( Sheet1, Sheet1[Location] = thislocation ), [Column 1] )

column2.PNG

BTW, archivo .pbix adjunto.

Saludos

Icey

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

parry2k
Super User
Super User

@adamnimmo datos es muy difícil de entender con toda la columna conectada, puede pegar los datos en formato de tabla o compartir a través de Excel y también publicar el resultado requerido.



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.

Seguro que @parry2k aquí están los datos en una tabla de Excel.

Ejemplo.xlsx

@adamnimmo gracias por el archivo de Excel, pero ¿qué es la lógica para lograr el resultado?



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 Tengo dos ubicaciones de ejemplo (Cell1 y Cell2) para Cell1 tenemos 9 auditorías calificadas (todas las puntuaciones superiores a 3.0), sin embargo, también tenemos una brecha en las auditorías de calidad simultáneas (fila 9-11). Así que dentro de este ejemplo de celda quiero contar solamente el último grupo de auditorías calificadas (7x) ya que estos son los últimos resultados simultáneos. La misma lógica es verdadera para el ejemplo de Cell2, solo necesito devolver la última agrupación de resultados simultáneos (3x).

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.