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.
Equipo HI
Tengo 2 filtrar mi informe a continuación
Tengo la tabla debajo del formato
Fecha | Country_Name | Contar |
20-Mayo-20 | India | 20 |
20-Mayo-20 | América | 10 |
20-Mayo-20 | Sudáfrica | 30 |
21-Mayo-20 | India | 25 |
21-Mayo-20 | América | 10 |
21-Mayo-20 | Sudáfrica | 25 |
24-Mayo-20 | India | 30 |
24-Mayo-20 | América | 10 |
24-Mayo-20 | Sudáfrica | 34 |
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
Solved! Go to 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 )
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.
@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/
@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.
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)
Fecha | Country_Name | Contar | BPID | RES/NO |
20-Mayo-20 | India | 20 | Z10 | RES |
20-Mayo-20 | India | 15 | Z12 | NONRES |
20-Mayo-20 | América | 10 | z12 | RES |
20-Mayo-20 | Sudáfrica | 30 | Z10 | RES |
21-Mayo-20 | India | 25 | Z10 | RES |
21-Mayo-20 | India | 25 | Z14 | RES |
21-Mayo-20 | América | 10 | Z12 | RES |
21-Mayo-20 | Sudáfrica | 25 | Z15 | NONRES |
24-Mayo-20 | India | 30 | Z20 | NONRES |
24-Mayo-20 | India | 34 | Z20 | RES |
24-Mayo-20 | América | 10 | Z35 | RES |
24-Mayo-20 | Sudáfrica | 34 | Z10 | NONRES |
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 )
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.
Gracias Vianl
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |