Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
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.
¡Gracias!
Reggards.
Dc
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.
@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])
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
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
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.