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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Syndicate_Admin
Administrator
Administrator

Cómo filtrar automáticamente los demás valores de la misma tabla en función de la medida N superior en Power BI

Hola a todos

¿Puedo saber si puedo obtener sugerencias sobre cómo filtrar el valor TOPN junto con otros campos en la tabla?

funciona perfectamente con TOPN con un campo utilizado para TOPN

Si agrego cualquier otro campo de valor, entonces no está funcionando.

RanjanThammaiah_0-1683603242597.png

TopN PL =

DÓNDE SelectedTop = VALOR SELECCIONADO('Parámetro 2'[parámetro])
DEVOLUCIÓN
INTERRUPTOR(VERDADERO(),
SelectedTop = 1, [1.TVPS],
RANKX (TODOSELECCIONADO('S&P-Open'[PursuitLeaderName]),[1.TVPS])
<= SelectedTop,[1.TVPS])

1 REPLY 1
Syndicate_Admin
Administrator
Administrator

@RanjanThammaiah,

AFAIK, las expresiones de medida se calculan en función de la fila actual y el grupo de contexto. La operación para agregar nuevos campos al objeto visual debe interrumpir la agregación de contexto de la fila actual y puede afectar a los resultados de los cálculos de la fórmula.

Contexto de fila y contexto de filtro en DAX - SQLBI

Si no desea que estos afecten el cálculo, puede intentar agregar todas las funciones para ignorar los filtros específicos.

Administración de "todas" las funciones en DAX: ALL, ALLSELECTED, ALLNOBLANKROW, ALLEXCEPT - SQLBI

Saludos

Xiaoxin Sheng

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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