Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
Hi
I am hoping you can help me.
I need to get a list of top 6 clients based on the highest sales volume
Secondly I want to get an average of the volume of these clients over the total client volume by sales
Thanks
G
Solved! Go to Solution.
Thanks for the @ so I would come back
Supponsing you have a Sales measure ( [Sales] )
If this helped, please consider giving kudos and mark as a solution
@me in replies or I'll lose your threadconsider voting this Power BI idea
Francesco Bergamaschi
MBA, M.Eng, M.Econ, Professor of BI
Hi , Thank you for reaching out to the Microsoft Community Forum.
To help you identify your top clients and measure their impact on your overall sales, we built a Power BI report using two tables based on the details provided by you: Customers and Sales, connected by a relationship on CustKey. We created DAX measures to calculate total sales, the combined sales of your top 2 clients and the percentage those top clients contribute to the total. This gives you a clear view of who your highest-value clients are and what share of your revenue they represent.
Please check the attached .pbix file and share your thoughts.
Hi all, just to give some context. Im looking for the top 2 Clients here based on sales and want to get the percentage based on the overall volume and sales amount
Thanks for the @ so I would come back
Supponsing you have a Sales measure ( [Sales] )
If this helped, please consider giving kudos and mark as a solution
@me in replies or I'll lose your threadconsider voting this Power BI idea
Francesco Bergamaschi
MBA, M.Eng, M.Econ, Professor of BI
is mine or somebody else's answer a solution?
If this helped, please consider giving kudos and mark as a solution
@me in replies or I'll lose your thread
consider voting this Power BI idea
Francesco Bergamaschi
MBA, M.Eng, M.Econ, Professor of BI
Hi,
I am not sure how your semantic model looks like, but I tried to create a sample pbix file like below.
Please check the below picture and the attached pbix file.
función WINDOW (DAX) - DAX | Microsoft Learn
Sales: =
SUM( sales[sales] )
Sales top 6 clients: =
CALCULATE (
[Sales:],
KEEPFILTERS (
WINDOW (
1,
ABS,
6,
ABS,
ALL ( customer[customer] ),
ORDERBY ( [Sales:], DESC )
)
)
)
Average sales top 6 clients: =
IF (
[Sales top 6 clients:],
AVERAGEX ( ALL ( customer[customer] ), [Sales top 6 clients:] )
)
Hi,
without tables, model etc the only thing we can do is give you the DAX code of a generic measure for the Sales of the top 6 customers based on sales itself
If this helped, please consider giving kudos and mark as a solution
@me in replies or I'll lose your threadconsider voting this Power BI idea
Francesco Bergamaschi
MBA, M.Eng, M.Econ, Professor of BI
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.