Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Sign up nowGet Fabric certified for FREE! Don't miss your chance! Learn more
Could someone suggest me a query to display top 10 customer names based on employee head count.
Solved! Go to Solution.
@RashmitaR If you dont' want to go down DAX way, you can use Sorty by option of visual to sort by employee head count. This will give you them in order but won't restrict it to just 10 but you can clearly make out top 10.
TOPN(10,employee,employee[employee_head_count],DESC)
Here is a query that does that. Basically, select the drop down for the column, Sort Descending and then Keep Rows, 10.
let
Source = Csv.Document(File.Contents("C:\temp\powerbi\dates.csv"),[Delimiter=",", Columns=4, Encoding=1252, QuoteStyle=QuoteStyle.None]),
#"Promoted Headers" = Table.PromoteHeaders(Source),
#"Changed Type" = Table.TransformColumnTypes(#"Promoted Headers",{{"Date", type date}, {"Value", Int64.Type}, {"Value2", Int64.Type}, {"Value3", Int64.Type}}),
#"Sorted Rows" = Table.Sort(#"Changed Type",{{"Value3", Order.Descending}}),
#"Kept First Rows" = Table.FirstN(#"Sorted Rows",10)
in
#"Kept First Rows"
@RashmitaR If you dont' want to go down DAX way, you can use Sorty by option of visual to sort by employee head count. This will give you them in order but won't restrict it to just 10 but you can clearly make out top 10.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 62 | |
| 58 | |
| 45 | |
| 21 | |
| 18 |
| User | Count |
|---|---|
| 121 | |
| 116 | |
| 37 | |
| 34 | |
| 30 |