The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
I'm following the https://dataveld.com/2019/03/20/display-points-within-a-distance-radius-on-a-power-bi-map/ to create points within a distance radius on a simple pbi map. I have everything working except the Map Point Size is not working which then doesn't display any points on the map. Below is the map point size measure. Do I need to change something to get my points to show up on the map. According to David Eldersveld, the map point size is a parameter for a variable distance threshold. With this parameter factoring into a size measure, it shows only points that fall within the user-selected maximum distance. All points the don’t meet the IF condition do not display on the map. When I take off the map point size under size the dots show up but then the distance slider won't work.
With map point size under size
Solved! Go to Solution.
Hi @dwel0120 ,
Try:
Map Point Size =
IF (
ISFILTERED ( 'Selector'[City] ),
IF (
[Distance (mi)] <= [Maximum Distance (mi) Value],
IF ( [Distance (mi)] = 0, 1, 0.25 ),
0
),
1
)
Best Regards,
Kelly
Did I answer your question? Mark my reply as a solution!
Hi @dwel0120 ,
Try:
Map Point Size =
IF (
ISFILTERED ( 'Selector'[City] ),
IF (
[Distance (mi)] <= [Maximum Distance (mi) Value],
IF ( [Distance (mi)] = 0, 1, 0.25 ),
0
),
1
)
Best Regards,
Kelly
Did I answer your question? Mark my reply as a solution!
Hi @dwel0120 ,
Can you share me your .pbix file with some dummy data for test?
Remember to remove the confidential information.
Best Regards,
Kelly
Did I answer your question? Mark my reply as a solution!
Your original code change worked!! I had switched the data source in one of the values I was tyring and forgot to switch back. Thank you so much!! I have been trying to figure this out for days. I really appreciate it!
Hi @dwel0120 ,
Glad to help.🙂
Best Regards,
Kelly
Did I answer your question? Mark my reply as a solution!
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
78 | |
71 | |
52 | |
50 |
User | Count |
---|---|
123 | |
119 | |
76 | |
64 | |
60 |