March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe 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
Source Table
Date | Category | customore name | Sales |
4/6/2021 | Equity | a | 123 |
4/6/2021 | Equity | b | 345 |
4/6/2021 | Equity | c | 567 |
4/6/2021 | Equity | d | 789 |
4/6/2021 | Equity | e | 1011 |
4/6/2021 | Equity | f | 1233 |
4/6/2021 | Equity | g | 1455 |
4/6/2021 | Equity | h | 1677 |
4/6/2021 | Equity | i | 1899 |
4/6/2021 | Equity | j | 2121 |
4/6/2021 | Equity | k | 2343 |
4/6/2021 | Equity | l | 2565 |
4/6/2021 | Commodity | d | 453 |
4/6/2021 | Commodity | e | 564 |
4/6/2021 | Commodity | f | 234 |
4/6/2021 | Commodity | g | 453 |
4/6/2021 | Commodity | h | 564 |
4/6/2021 | Commodity | i | 234 |
4/6/2021 | Commodity | a | 399 |
4/6/2021 | Commodity | b | 564 |
4/6/2021 | Commodity | c | 729 |
5/6/2021 | Equity | g | 894 |
5/6/2021 | Equity | h | 1059 |
5/6/2021 | Equity | i | 1224 |
5/6/2021 | Equity | j | 342 |
5/6/2021 | Equity | l | 1554 |
5/6/2021 | Equity | d | 1719 |
5/6/2021 | Equity | e | 1884 |
5/6/2021 | Equity | f | 2049 |
5/6/2021 | Equity | g | 2214 |
5/6/2021 | Equity | h | 234 |
5/6/2021 | Equity | i | 2544 |
5/6/2021 | Equity | k | 2565 |
I need a top 3 customer name by sales and filtered by category and date divided by total sales filtered by category and date
eg. date 4/6/2021 top 3 customer sales =7029 for category equity divided by totalsales of equity category and date4/6/2021 is 16128
o/p= 7029/16128
= 44%
@Anshenterprices
Create the following measure:
top 3 customers % =
var __top3 =
CALCULATE(
SUM('Customer Table'[Sales]),
TOPN(3,VALUES('Customer Table'),CALCULATE( SUM('Customer Table'[Sales] )))
)
var __total = SUM('Customer Table'[Sales])
return
DIVIDE( __top3 , __total )
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
23 | |
15 | |
12 | |
9 | |
8 |
User | Count |
---|---|
41 | |
32 | |
29 | |
12 | |
12 |