Reply
Syndicate_Admin
Administrator
Administrator
Syndicated - Inbound

top n por dinámica

Source Community: Power BI | Source Author Name: JohnYU
Estimados expertos,

Tengo una tabla con tres campos: ventas, cliente y cantidad

Ahora puedo clasificar las ventas y las ventas de los clientes por separado. Me gustaría utilizar parámetros de campo para la clasificación dinámica Gracias

TOP_dynam =
var n = SELECTEDVALUE('p_TOPN'[index])
var tab1 = ADDCOLUMNS( DISTINCT('Sheet1'[sales]),"rank",[rank_by],"qtySum",[qtySum])
var tab2 = ADDCOLUMNS( DISTINCT('Sheet1'[customer]),"rank",[rank_by],"qtySum",[qtySum])

var res1 = CALCULATE(FIRSTNONBLANK('Sheet1'[sales],'Sheet1'[sales]),FILTER(tab1,[rank]=n))
var res2 = CALCULATE(FIRSTNONBLANK('Sheet1'[customer],'Sheet1'[customer]),FILTER(tab2,[rank]=n))

return res1

screenshot.png

10 REPLIES 10
Natalie_iTalent
Administrator
Administrator

Source Community: Power BI Spanish
Syndicated - Inbound

This response was in Spam Quarantine and is a duplicate false positive.

 

Syndicate_Admin
Administrator
Administrator

Source Community: Power BI | Source Author Name: JohnYU
Syndicated - Inbound

Rara vez uso onedrive o google drive

¿Puedes acceder a esta dirección?

Archivo PBI

Syndicate_Admin
Administrator
Administrator

Source Community: Power BI | Source Author Name: JohnYU
Syndicated - Inbound

Rara vez uso onedrive o google drive

¿Se puede acceder a esta dirección?

Archivo PBI

Syndicate_Admin
Administrator
Administrator

Source Community: Power BI | Source Author Name: JohnYU
Syndicated - Inbound

Rara vez uso onedrive o google drive

¿Puedes acceder a esta dirección?

Archivo PBI

Syndicate_Admin
Administrator
Administrator

Source Community: Power BI | Source Author Name: Ashish_Mathur
Syndicated - Inbound

Todavía no veo ningún contenido en inglés en ese sitio web. ¿Podría compartir el enlace de descarga de Google Drive / One Drive, por favor?

Syndicate_Admin
Administrator
Administrator

Source Community: Power BI | Source Author Name: JohnYU
Syndicated - Inbound

He actualizado la información anterior

Syndicate_Admin
Administrator
Administrator

Source Community: Power BI | Source Author Name: Ashish_Mathur
Syndicated - Inbound

No puedo entender nada en ese sitio web.

Syndicate_Admin
Administrator
Administrator

Source Community: Power BI | Source Author Name: JohnYU
Syndicate_Admin
Administrator
Administrator

Source Community: Power BI | Source Author Name: JohnYU
Syndicated - Inbound

¿Dónde puedo subir el archivo PBI?

Syndicate_Admin
Administrator
Administrator

Source Community: Power BI | Source Author Name: Ashish_Mathur
Syndicated - Inbound

Hola

Comparta el enlace de descarga del archivo PBI.

avatar user

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

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.

Top Solution Authors (Last Month)