Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I am having one table from there I want to fetch top 10 customer and bottom 10 customer in one visual.
Solved! Go to Solution.
Hi,
I tried to create a sample pbix file like below. (top3 and bottom3 show up together).
Please check the picture and the attached pbix file.
I hope the below sample can provide some ideas on how to create a solution for your datamodel.
Sales measure: =
SUM( Data[Sales] )
top three and bottom three measure: =
VAR _topthreelist =
SUMMARIZE (
TOPN ( 3, ALL ( Data[Customer] ), [Sales measure:], DESC ),
Data[Customer]
)
VAR _bottomthreelist =
SUMMARIZE (
TOPN ( 3, ALL ( Data[Customer] ), [Sales measure:], ASC ),
Data[Customer]
)
VAR _unionlist =
UNION ( _topthreelist, _bottomthreelist )
RETURN
CALCULATE ( [Sales measure:], KEEPFILTERS ( _unionlist ) )
Hi,
I tried to create a sample pbix file like below. (top3 and bottom3 show up together).
Please check the picture and the attached pbix file.
I hope the below sample can provide some ideas on how to create a solution for your datamodel.
Sales measure: =
SUM( Data[Sales] )
top three and bottom three measure: =
VAR _topthreelist =
SUMMARIZE (
TOPN ( 3, ALL ( Data[Customer] ), [Sales measure:], DESC ),
Data[Customer]
)
VAR _bottomthreelist =
SUMMARIZE (
TOPN ( 3, ALL ( Data[Customer] ), [Sales measure:], ASC ),
Data[Customer]
)
VAR _unionlist =
UNION ( _topthreelist, _bottomthreelist )
RETURN
CALCULATE ( [Sales measure:], KEEPFILTERS ( _unionlist ) )
Thank You.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 103 | |
| 80 | |
| 59 | |
| 51 | |
| 46 |