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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
EdsonGomes
Frequent Visitor

FILTRAR 3 MAIORES E OS 3 MENORES.

Eu tenho uma tabela com nome de funcionários e quantidade de venda, onde para cada linha na tabela e uma venda realizada.

Em uma matriz eu coloquei:
Nome funcionários e uma medida quantidade de venda.

Quero adicionar uma segmentação de dados, e escolher um funcionário.

E na matrix quero que apareça apenas os 3 funcionários que vendeu mais do que ele e os 3 que vende mais do ele.

E possível?

1 REPLY 1
amitchandak
Super User
Super User

@EdsonGomes , You need an independent date table.

Create a measure using that

 

select sales =

calculate([sales] , filter(Table, Table[employee] = selectedvalue(Emp[Employee]))

 

Create a measure

final Sales=

sumx(filter(values(Table[Employee]), [sales] >[select sales]),[Sales])

 

Not you can use TOPN filter from viusal level filter of use TOPN function

 

TOP 3= CALCULATE([final Sales],TOPN(3,all(Table[Employee]),[final Sales],DESC),VALUES(Table[Employee]))

 

use only this measure with an employee from the table

 

refer

Need of an Independent Table in Power BI: https://youtu.be/lOEW-YUrAbE

 

TOPN: https://www.youtube.com/watch?v=QIVEFp-QiOk&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=42

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.