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
Jos13
Helper III
Helper III

Valores superiores a la duración media

Hola a todos

Tengo los siguientes datos

data.png

Tengo una medida como sigue

Avg_resolution - AVERAGEX('Table','Table'[R_Time_sec])
tab.png

¿Es posible mostrar esos problemas con una resolución media mayor que el valor medio (17.330). El objeto visual de tabla requerido tendrá "Problema 2". Por favor, ayúdame en esto.

Gracias de antemano

11 REPLIES 11
AntrikshSharma
Community Champion
Community Champion

si desea mostrar una lista de problemas mayor que el promedio, entonces podría probar esto:

=
VAR AvgRes = [Avg_resolution]
VAR IssuesHigherThanAvg =
    FILTER (
        ADDCOLUMNS ( Table, "Average Resolution", [Avg_resolution] ),
        [Average Resolution] > AvgRes
    )
VAR Result =
    CONCATENATEX (
        IssuesHigherThanAvg,
        Table[Issue] & " " & [Average Resolution],
        ","
    )
RETURN
    Result

Hola @AntrikshSharma ,

Esta medida funciona bien. Traté de excluir la parte concatenada ya que no es necesario, entonces generó algún error.

Mi resultado esperado se verá así

op 2.png

Gracias

Si

Perdón por la confusión.

El requisito es el siguiente. Sólo quería mostrar problemas con el tiempo de resolución mayor que el tiempo medio de resolución.

op 2.png

Gracias

Si

Pruebe lo siguiente: á VAR AvgRes á [Avg_resolution] VAR IssuesHigherThanAvg ? FILTER ( Table, [Average Resolution] > AvgRes ) VAR Result ? CALCULATE ( [Avg_resolution], IssuesHigherThanAvg ) RETURN Result Result

Hola

Esta medida devuelve un resultado diferente.

Por favor, encuentre el archivo pbix a continuación

https://drive.google.com/file/d/1UdmNQzsyCsLJ1qKT-4_7fkYzvDOHoqcn/view?usp=sharing

Gracias por el archivo, utilice esto:

Measure 4 =
VAR AvgRes =
    CALCULATE ( [Avg_resolution], ALL ( 'Table'[Issue] ) )
VAR Result =
    CALCULATE (
        [Avg_resolution],
        FILTER ( VALUES ( 'Table'[Issue] ), [Avg_resolution] > AvgRes )
    )
RETURN
    Result

Gracias @AntrikshSharma

Muy apreciado 🙂.

¡Gran! ¡De nada! ¡Que tengas un gran día! 🙂
amitchandak
Super User
Super User

@Jos13 , Probar como

medida :
var _avg - calculate([Avg_resolution],all(Table))
devolución
Countx(filter(summarize('Table'[Job],"_1", [Avg_resolution]),[_1]>__avg),[Job])

Hola @amitchandak ,

Puedo filtrar el "Problema" usando la medida sugerida por usted. Esto solo funciona cuando agredo la medida a la tabla visual.

op1.png

No quiero mostrar la medida en este objeto visual. Sólo quería mostrar el problema con su duración.

Por favor, hágamelo saber si sería posible.

Gracias

Si

@Jos13, Mi mal, deberían ser problemas

medida :
var _avg - calculate([Avg_resolution],all(Table))
devolución
Countx(filter(summarize('Table','Table'[issues],"_1", [Avg_resolution]),[_1]>__avg),[Job])

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.