Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

Promedio de fecha seleccionada por valores de recuento

Equipo HI

Tengo 2 filtrar mi informe a continuación

ff.PNG

Tengo la tabla debajo del formato

FechaCountry_NameContar
20-Mayo-20India20
20-Mayo-20América10
20-Mayo-20Sudáfrica30
21-Mayo-20India25
21-Mayo-20América10
21-Mayo-20Sudáfrica25
24-Mayo-20India30
24-Mayo-20América10
24-Mayo-20Sudáfrica34

SI el Usuario selecciona de 20 a 2020 a 26-mayo-2020, pero los datos no se realizaron 23,25,26 fechas

Avaerage INDIA (20+25+30)/3 x 28,3 (suma del recuento dividido por No de datos disponibles fecha)

similares Amrica y Sudáfrica

por favor, nadie ayuda a esto

Gracias

Shanvitha

1 ACCEPTED SOLUTION

Hola @Shanvitha01 ,

Puedes probar medir así:

average_count =
VAR RunningTotal =
    CALCULATE (
        SUM ( 'Table'[Count] ),
        FILTER (
            ALLSELECTED ( 'Table' ),
            SUMX (
                FILTER (
                    ( 'Table' ),
                    EARLIER ( 'Table'[Country_Name] ) = 'Table'[Country_Name]
                ),
                'Table'[Count]
            )
        )
    )
VAR distinct_day =
    CALCULATE ( DISTINCTCOUNT ( 'Table'[Date] ), ALLSELECTED ( 'Table' ) )
RETURN
    DIVIDE ( RunningTotal, distinct_day )

test_average_count.PNG

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.

View solution in original post

5 REPLIES 5
amitchandak
Super User
Super User

@Shanvitha01 , Simple Average debería haber hecho eso, o quieres mostrar en todas las fechas, entonces tienes que usar todas excepto : https://www.sqlbi.com/articles/using-allexcept-versus-all-and-values/

parry2k
Super User
Super User

@Shanvitha01 por qué no está utilizando la función promedio simple en una medida

Avg = AVERAGE ( Table[Count] )

En la tabla visual, utilice el país y la medida superior, y obtendrá el resultado.

Me gustaría elogiossi mi solución me ayudó.👉Si puedes pasar tiempo publicando la pregunta, también puedes hacer esfuerzos para darle 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.

Anonymous
Not applicable

Hola Parrys

Gracias por tu repetición.

He dado 3 columna su trabajo bien.

pero tengo 5 columna no funciona (SUM promedio (COUNT)/NO de filas)

FechaCountry_NameContarBPIDRES/NO
20-Mayo-20India20Z10RES
20-Mayo-20India15Z12NONRES
20-Mayo-20América10z12RES
20-Mayo-20Sudáfrica30Z10RES
21-Mayo-20India25Z10RES
21-Mayo-20India25Z14RES
21-Mayo-20América10Z12RES
21-Mayo-20Sudáfrica25Z15NONRES
24-Mayo-20India30Z20NONRES
24-Mayo-20India34Z20RES
24-Mayo-20América10Z35RES
24-Mayo-20Sudáfrica34Z10NONRES

ABove tabla Salida INDIA (20+15+25+25+30+34)/2-49.6

Por favor, ayúdense en esto

Gracias

Shnavitha

Hola @Shanvitha01 ,

Puedes probar medir así:

average_count =
VAR RunningTotal =
    CALCULATE (
        SUM ( 'Table'[Count] ),
        FILTER (
            ALLSELECTED ( 'Table' ),
            SUMX (
                FILTER (
                    ( 'Table' ),
                    EARLIER ( 'Table'[Country_Name] ) = 'Table'[Country_Name]
                ),
                'Table'[Count]
            )
        )
    )
VAR distinct_day =
    CALCULATE ( DISTINCTCOUNT ( 'Table'[Date] ), ALLSELECTED ( 'Table' ) )
RETURN
    DIVIDE ( RunningTotal, distinct_day )

test_average_count.PNG

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.

Anonymous
Not applicable

Gracias Vianl

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors