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
Matheus_Giam
New Member

columna personalizada, con el promedio de línea

¿Cómo crear una columna personalizada, con el promedio de la fila y no con el promedio de la columna? (sin contar cero/en blanco)

Cliente ? jan ? fev ? mar ? abr crear promedio
A - A 2 ? 0 ? 2
B ? 4 ? 3 ? 1 ? 0 ? 2,66
C ? 1 ? 7 ? 4 ? 5 ? 4,74
2 REPLIES 2
v-lili6-msft
Community Support
Community Support

hola @Matheus_Giam

Utilice esta fórmula para agregar una columna personalizada en la consulta de energía:

List.Sum({[jan],[fev],[mar],[abr]})/

( (if [jan] = null or [jan] = 0  then 0 else 1)+
    (if [fev] = null or [fev] = 0  then 0 else 1)+
     (if [mar] = null or [mar] = 0  then 0 else 1)+
      (if [abr] = null or [abr] = 0  then 0 else 1)
)

Resultado:

4.JPG

y aquí está el archivo pbix de muestra, por favor pruébelo.

saludos

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
amitchandak
Super User
Super User

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.