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
Hi All
I have some difficulty having the percentage of the total sales for top customers.
The total sale is 16,159,000
For example, Top 1 customer should show 27.3%(this is calculated manually) instead of 49.07%(Power BI show value as percentage of 4405490/8978819)
How can I get the list of % in the third column? (sales number for individual customers/ total sales for the period-different monthes)
The total sales will change by month, I cannot use an unchanged amount to realize the function. It works when I click the whole year, but it does not work for the individual month when your total sales do not change with different months.
Solved! Go to Solution.
Hi, @WENBOJIANG
You can try the following methods.
Sample data:
Measure:
Sales 2021 = CALCULATE(SUM('Table'[Sales]),FILTER(ALL('Table'),[Year]=2021&&[Type]=SELECTEDVALUE('Table'[Type])))
2021 % of total sales =
Var _total=CALCULATE(SUM('Table'[Sales]),ALL('Table'))
return
DIVIDE([Sales 2021],_total)
Is this the result you expect? If not, please provide more details.
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @WENBOJIANG
You can try the following methods.
Sample data:
Measure:
Sales 2021 = CALCULATE(SUM('Table'[Sales]),FILTER(ALL('Table'),[Year]=2021&&[Type]=SELECTEDVALUE('Table'[Type])))
2021 % of total sales =
Var _total=CALCULATE(SUM('Table'[Sales]),ALL('Table'))
return
DIVIDE([Sales 2021],_total)
Is this the result you expect? If not, please provide more details.
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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 |
---|---|
124 | |
89 | |
84 | |
70 | |
51 |
User | Count |
---|---|
206 | |
143 | |
97 | |
79 | |
68 |