Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
I have a card visual where the name of a location on the map shows on the card when a user selects a location. By default the FIRST Name (alpha) shows up when nothing is selected.
I prefer to show something another text when no location on the map is selected. Can someone please help.
Regards,
Solved! Go to Solution.
Hi @altchung ,
According to your needs, the SELECTEDVALUE function may be a good choice. When a location is selected on the map, it will be displayed on the card. No group displays the value of custom text.
Measure = SELECTEDVALUE(Orders[Product Name],"Not selected")
If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @altchung ,
According to your needs, the SELECTEDVALUE function may be a good choice. When a location is selected on the map, it will be displayed on the card. No group displays the value of custom text.
Measure = SELECTEDVALUE(Orders[Product Name],"Not selected")
If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @altchung
Your measure (you've created a measure for the card, right?) should check if anything is selected on the map (for instance, through the ISFILTERED function on a suitably chosen piece of data) and if there is, it should return what you want it to.
Thank you. Yes, I understand what I need to do, which is use the ISFILTERED function, but unsure what piece of data I pass through it for a map. When I tried to use the "Store Name" variable, so ISFILTERED (store name), this only works when someone selects a store name from a list, but not when they select the store on the map. The only variables available on the map that is related to the store, is the latitude and longitude, but unsure how to write a formulat relating ISFILTERED for latitude and longitude.
Hi @altchung
You can write a measure for the card, something like this:
Selected Name =
SELECTEDVALUE ( YourTable[Name (alpha)], "Text to display if nothing/multiple selected" )
If there is exactly one value visible in the column specified in the 1st argument of SELECTEDVALUE, then that value is returned, otherwise the 2nd argument is returned. If the 2nd argument is omitted, a blank value is returned instead.
Regards,
Owen
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.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
| User | Count |
|---|---|
| 48 | |
| 46 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 70 | |
| 67 | |
| 32 | |
| 27 | |
| 26 |