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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
DanCasSan
Helper V
Helper V

Valores repetidos en la matriz

Hola socios!

Estoy realizando el siguiente cálculo:

CFO BCP = CALCULATE(SUM(TBL_Patrimonio[MTO_CONCEPTO]),TBL_Patrimonio[DESC_CONCEPTO] IN {"CROSLAND CFO","FAMILY OFFICE BCP"})

Pero, cuando pongo mi matriz con los datos está repitiendo los mismos valores para cada descripción.

¿Qué debo modificar para lograr que se cumpla lo que estoy poniendo en la fórmula? Los datos están en una sola tabla.

result_repit.JPG

¡Gracias!

Reggards.

Dc

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hola

¿Funciona?

CFO BCP á CALCULATE(SUM(TBL_Patrimonio[MTO_CONCEPTO]),filter(TBL_Patrimonio,TBL_Patrimonio[DESC_CONCEPTO] á"CROSLAND CFO"&&TBL_Patrimonio[DESC_CONCEPTO] á"FAMILY OFFICE BCP"))

Espero que esto ayude.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
AllisonKennedy
Super User
Super User

@DanCasSan Cuando se utiliza un CÁLCULO, se modifica el contexto de filtro del informe y se proporciona el mismo valor. Puede usar un filtro de nivel visual o probar un SUMX en su lugar. El SUMX mantendrá el contexto de filtro actual de la tabla y agregará el contexto de filtro adicional que se aplica a ella.

CFO BCP á SUMX( FILTER(TBL_Patrimonio, ,TBL_Patrimonio[DESC_CONCEPTO] IN "CROSLAND CFO","FAMILY OFFICE BCP"-), TBL_Patrimonio[MTO_CONCEPTO])


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

mahoneypat
Microsoft Employee
Microsoft Employee

Puesto que está filtrando la misma columna en la medida que se utiliza en el objeto visual, los filtros de medida están sobrescribiendo la del objeto visual. Si solo desea mostrar resultados para esos dos valores, puede modificar la medida de esta manera.

CFO BCP = CALCULATE(SUM(TBL_Patrimonio[MTO_CONCEPTO]),KEEPFILTERS(TBL_Patrimonio[DESC_CONCEPTO] IN {"CROSLAND CFO","FAMILY OFFICE BCP"}))

Si eso no es lo que está buscando, por favor muestre la salida deseada.

saludos

palmadita





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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

Top Solution Authors