Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Hello Fam,
I am using below two measures to calculate Top 20% customers based on sales:-
Solved! Go to Solution.
Hi @Anonymous ,
I created some data:
Here are the steps you can follow:
1. Create measure.
Sum_group =
SUMX(FILTER(ALL(BI_SALESFACT),'BI_SALESFACT'[CUSTOMER_NO]=MAX('BI_SALESFACT'[CUSTOMER_NO])),[NetSales_Cal])
rank =
RANKX(ALLSELECTED(BI_SALESFACT),[Sum_group],,DESC)
Flag =
var _Discount =
CALCULATE(DISTINCTCOUNT('BI_SALESFACT'[CUSTOMER_NO]),ALL(BI_SALESFACT)) / 20
return
IF(
[rank] <=_Discount,1,0)
2. Place [Flag]in Filters, set is=1, apply filter.
3. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @Anonymous ,
I created some data:
Here are the steps you can follow:
1. Create measure.
Sum_group =
SUMX(FILTER(ALL(BI_SALESFACT),'BI_SALESFACT'[CUSTOMER_NO]=MAX('BI_SALESFACT'[CUSTOMER_NO])),[NetSales_Cal])
rank =
RANKX(ALLSELECTED(BI_SALESFACT),[Sum_group],,DESC)
Flag =
var _Discount =
CALCULATE(DISTINCTCOUNT('BI_SALESFACT'[CUSTOMER_NO]),ALL(BI_SALESFACT)) / 20
return
IF(
[rank] <=_Discount,1,0)
2. Place [Flag]in Filters, set is=1, apply filter.
3. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
@Anonymous , refer to the approach in this blog, that can help
https://exceleratorbi.com.au/pareto-analysis-in-power-bi/
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
90 | |
88 | |
83 | |
64 | |
49 |
User | Count |
---|---|
127 | |
108 | |
87 | |
70 | |
66 |