I have two seperate tables, roads and shops, both containing lat/long coordinates. I want to plot these two tables in the same map. This has been asked many times before, and the answer seems to be to append them into the same table and plot this table. But I also want to be able to filter the roads by some property on them (e.g. speed-limit), but still have all elements of the other table (shops) be present on the map.
I have tried both appending the tables into one table with many columns, and I have tried creating a "road-index" and "shop-index" column, and then have the combined table contain lat/long/road-index/shop-index, and use releations between this and the original tables. In both cases, if I create a slizer on speed-limit, only roads are presented on the map.
Is there way to have the filter only act on the intended "subtable"?
Solved! Go to Solution.
Thanks @lbendlin !
The size hack is a good idea. It is a bit unfortunate that it only works on maps, and is not a generall solution to filter the union of two sets, but it does solve the current problem:-D
I ended up with sometthing like this. For both roads and shops I first make a "Index" column. Then I append them together in All_coordinates. Now I can filter in the roads / shops, and only the active one will get size 1, everyone else will get size None (or whatever the if returns in that case, the effect is anyway that they dont show up). I define the measue "size" and use it as the size in the map.
Thanks @lbendlin !
The size hack is a good idea. It is a bit unfortunate that it only works on maps, and is not a generall solution to filter the union of two sets, but it does solve the current problem:-D
I ended up with sometthing like this. For both roads and shops I first make a "Index" column. Then I append them together in All_coordinates. Now I can filter in the roads / shops, and only the active one will get size 1, everyone else will get size None (or whatever the if returns in that case, the effect is anyway that they dont show up). I define the measue "size" and use it as the size in the map.
Hi @epa095,
Thank you for sharing your workaround and DAX expressions. I think they will help others who faced similar scenarios.
Regards,
Xiaoxin Sheng
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
User | Count |
---|---|
200 | |
70 | |
67 | |
55 | |
52 |
User | Count |
---|---|
253 | |
223 | |
102 | |
81 | |
71 |