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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
KuntalSingh
Helper V
Helper V

Need help to get top 10 values of Gross invoice amount per user

Hi Team

I need help  to get the sample of every users on the basis of top 10 gross invoice amount per user.

Company CodeDocument IdCurrent AgentGross invoice amount
92402000876918Shubham36714
1002000809485Anju22875622
90602000875950Shubham85518.02
90302000866446Anju19375483.73
12002000872146Garima2463930
90302000874847Anju8485980
92402000871904Anju351404.68
90702000755331Anju5106282.44
90502000871145Garima2201834
90502000871143Garima2266592
44002000861694Kanupriya21506289.84
90502000861186Garima2190224.23
90502000860607Jitesh1626179.53
90502000857056Jitesh161318.15
90502000828781Garima2579010
90502000828780Garima2579010
13002000876862Anju24768
90602000876360Neetu282185.84
11002000875612Kanupriya3973720.8
90302000874832Kanupriya186422.4
90302000874132Kanupriya115206
11002000873783Kanupriya122041.5
11002000873773Kanupriya138431
95002000873095Kanupriya149120
41002000872766Kanupriya236468.17
90302000868028Raghav50535.16
11002000822759Ankita76853.4
92702000868021Jitesh138493.01
90302000840440Ankita433708
12002000720674Ankita68885.65
92702000867939Jitesh107685.71
11002000867937Garima2493817.62
90502000867892Garima2256633
90502000867887Garima2256633
11002000867757Jitesh1115406.81
90202000867682Kanupriya2036418.05
95002000867679Kanupriya1606701
1002000867620Jitesh337826
1002000867619Jitesh1180
1002000867618Jitesh338121
1002000867617Jitesh1180
1002000867614Jitesh294985.13
90602000867603Jitesh1140110.46
11002000867072Kanupriya2260326.05
15002000866854Kanupriya1858254.09
11002000866621Kanupriya1745529.12
11002000864948Neetu71923.8
11002000864947Neetu71923.8
11002000864946Neetu71923.8
11002000864945Neetu71923.8
11002000864943Neetu71923.8
11002000864940Neetu71923.8
11002000864939Neetu71923.8
12002000864847Raghav2500
92402000864636Raghav96048
15002000864627Raghav2740.03
90302000864540Raghav572632
90302000864533Raghav2196633
1002000864456Raghav8604.97
1002000864452Raghav10357.46
90602000864286Shubham1978812.8
92002000864205Raghav12960
92002000864202Raghav54000
92002000864201Shubham283500
90002000864158Raghav611484
1002000864023Raghav224000.58
90602000863874Raghav270900.01
90502000863762Raghav866599.23
90502000863760Raghav210188.67
91002000863402Raghav247893
90302000862913Neetu527311.44
90602000860025Shubham7508615.86
91002000860018Shubham2124000
90302000857815Shubham32431615.6
15002000856799Shubham871698
12002000856731Shubham1521380
12002000856089Shubham1283172.23
11002000855998Shubham71453
11002000855996Shubham121885
15002000855288Shubham20994.75
15002000855286Shubham22700
1 ACCEPTED SOLUTION
v-stephen-msft
Community Support
Community Support

Hi @KuntalSingh ,

 

To get the sample of every user on the basis of top 10 gross invoice amount per user in Power BI Desktop, you can follow these steps:

1.Open Power BI Desktop and load the data from your table.
2.Create a new measure to calculate the total gross invoice amount for each user. You can use the following DAX formula:

 

TotalAmount = SUM('YourTableName'[Gross invoice amount])

 


Replace 'YourTableName' with the name of your table.

 

1.Create a new table visual and add the Current Agent column to the Rows field and the TotalAmount measure to the Values field.
2.Sort the table by the TotalAmount measure in descending order.
3.Right-click on the table and select "Top N" from the context menu.
4.In the "Top N" dialog box, select "Top" and enter "10" in the "N" field.

5.Click "OK" to apply the filter.

 

This will give you a table with the top 10 users based on their gross invoice amount. You can then use this table to create a sample of every user.

 

Here's the example. I set up TOP 3.

vstephenmsft_0-1688522902179.png

 

 

                                                                                                                                                         

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.           

View solution in original post

2 REPLIES 2
v-stephen-msft
Community Support
Community Support

Hi @KuntalSingh ,

 

To get the sample of every user on the basis of top 10 gross invoice amount per user in Power BI Desktop, you can follow these steps:

1.Open Power BI Desktop and load the data from your table.
2.Create a new measure to calculate the total gross invoice amount for each user. You can use the following DAX formula:

 

TotalAmount = SUM('YourTableName'[Gross invoice amount])

 


Replace 'YourTableName' with the name of your table.

 

1.Create a new table visual and add the Current Agent column to the Rows field and the TotalAmount measure to the Values field.
2.Sort the table by the TotalAmount measure in descending order.
3.Right-click on the table and select "Top N" from the context menu.
4.In the "Top N" dialog box, select "Top" and enter "10" in the "N" field.

5.Click "OK" to apply the filter.

 

This will give you a table with the top 10 users based on their gross invoice amount. You can then use this table to create a sample of every user.

 

Here's the example. I set up TOP 3.

vstephenmsft_0-1688522902179.png

 

 

                                                                                                                                                         

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.           

ThxAlot
Super User
Super User

INVC.pbix

ThxAlot_0-1688409577116.png



Expertise = List.Accumulate(


        {Days as from Today},


        {Skills and Knowledge},


        (Current, Everyday) => Current & Day.LeanAndPractise(Everyday)


)



Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.

Top Solution Authors