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
Anonymous
Not applicable

Excluir valores vacios para sacar el promedio

Hola Comunidad,

 

Esperando que se encuentren bien, me gustaria plantear mi problema, desarrolle unas columnas calculadas, donde estas columnas luego las utilizo para sacar un solo promedio, son 4 columnas Normativa, Gestion, Planes y Subcontrato, el problema es que la columna del Subcontrato vienen valores vacios, y me produce este error en vez de ser 100% como cumplimiento me da como resultado 90%, esta es la formula en dax 

 

 

tabla1.png

 

Fórmula:

Cumplimiento 
e2.png

 

Fórmula columna calculada subcontrato:

 

pr.png

 

 

se aceptan soluciones gracias. 

2 REPLIES 2
v-yuaj-msft
Community Support
Community Support

Hi @Anonymous ,

 

I think the problem should lie in the DAX formula in "Subcontrato" column. Could you please provide more detailed information?

Can you share some sample data and the expected result to have a clear understanding of your question?

You can save your files in OneDrive, Google Drive, or any other cloud sharing platforms and share the link here.

 

Best Regards,

Yuna

StefanoGrimaldi
Resident Rockstar
Resident Rockstar

en cada promedio agrega un calculate que diga asi 

calculate(averagex(....), [columna usada en el average]<>blank() )

esto excluira del promedio los valores en blanco sin datos.





Did I answer your question? Mark my post as a solution! / Did it help? Give some Kudos!

Proud to be a 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.