We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register 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
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 57 | |
| 38 | |
| 33 | |
| 19 | |
| 16 |
| User | Count |
|---|---|
| 68 | |
| 66 | |
| 41 | |
| 34 | |
| 25 |