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
yidaveding
Regular Visitor

Columna de visualización basada en la selección de filtros

Hola

Tengo dos imágenes de tabla (T1 y T2) y un hierachy padre/hijo. La Tabla 1 muestra PADRE y Importe total. Quiero que la tabla 2 muestre PARENT_Column o CHILD_Column dependiendo de la selección en T1. Si hay CUALQUIER selección DE PADRE en T1, T2 mostrará la columna CHILDREN.

El siguiente cálculo COLUMN siempre devuelve FALSE, independientemente de la selección en T1:

new_column-IF(ISFILTERED(TableName[ColumnName]), PARENT_COLUMN, CHILD_COLUMN)

Sé que el formulario anterior puede funcionar como un MEDIDA, pero no funciona como una COLUMNA.

Gracias

David

2 REPLIES 2
Greg_Deckler
Super User
Super User

@yidaveding - Vea si esto ayuda: https://community.powerbi.com/t5/Quick-Measures-Gallery/Dynamic-EVERYTHING-measures-axis-legend-titl...


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
AllisonKennedy
Super User
Super User

Las columnas calculadas se calculan antes de los objetos visuales del informe y, por lo tanto, no se pueden actualizar con las selecciones de segmentación de datos y filtro. Deberá utilizar una medida para obtener actualizaciones basadas en la selección.

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

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.