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!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
Hello all,
I would like to have a scatterplot which shows all the data but only lables the top and bottom five, which will change depending on the page filters.
What do I need to do to get this working?
Thanks!
Solved! Go to Solution.
Hi, @Anonymous
According to your description, you want to only show only lables the top and bottom five in scatterplot.
First of all, if you want to display dynamically, then we can't use Page filter, we need to use slicer to filter. Because the Page filter cannot be recognized in the measure.
Here are the steps you can refer to :
(1)This is my test data:
As we need to show top and bottom 5 points , we need to judge by the Y axis value.
(2)We can create a measure like this:
Measure = var _Bottom = RANKX( ALLSELECTED('Table') , CALCULATE( MAX('Table'[y]) ) , ,ASC ,skip)
var _Top= RANKX( ALLSELECTED('Table') , CALCULATE( MAX('Table'[y]) ) , ,DESC ,skip)
return
IF( _Bottom<=5 || _Top <=5 ,1, BLANK())
(3)Then we can put this measure on the "Filter on this visual" and we can get the result as follows:
If this method does not meet your needs, you can provide us with your special sample data and the desired output sample data in the form of tables, so that we can better help you solve the problem. (You can also upload you sample .pbix [without sensitive data] to the OneDrive and share with the OneDrive link to me ! )
Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!
Best Regards,
Aniya Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi, @Anonymous
According to your description, you want to only show only lables the top and bottom five in scatterplot.
First of all, if you want to display dynamically, then we can't use Page filter, we need to use slicer to filter. Because the Page filter cannot be recognized in the measure.
Here are the steps you can refer to :
(1)This is my test data:
As we need to show top and bottom 5 points , we need to judge by the Y axis value.
(2)We can create a measure like this:
Measure = var _Bottom = RANKX( ALLSELECTED('Table') , CALCULATE( MAX('Table'[y]) ) , ,ASC ,skip)
var _Top= RANKX( ALLSELECTED('Table') , CALCULATE( MAX('Table'[y]) ) , ,DESC ,skip)
return
IF( _Bottom<=5 || _Top <=5 ,1, BLANK())
(3)Then we can put this measure on the "Filter on this visual" and we can get the result as follows:
If this method does not meet your needs, you can provide us with your special sample data and the desired output sample data in the form of tables, so that we can better help you solve the problem. (You can also upload you sample .pbix [without sensitive data] to the OneDrive and share with the OneDrive link to me ! )
Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!
Best Regards,
Aniya Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
| User | Count |
|---|---|
| 49 | |
| 37 | |
| 33 | |
| 22 | |
| 18 |
| User | Count |
|---|---|
| 130 | |
| 100 | |
| 56 | |
| 37 | |
| 37 |