Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Tschulianoo
New Member

Card based on Selectedvalue - measure shows data

Hello there, 

 

I am reaching out to you, as I have the following issue. 

 

I prepared a dashboard, based on a Power BI dataset, which has an underlying excel sheet saved on sharepoint online.

 

On one page, I use the data from a table, which has currently only one row of entries (i.e. only one country and the respective details), however this table will expand over time. I use a map, as well as a table for people to select a country and the cards should then show the different characteristics of the country in different cards. If no country is selected the cards should show "-".

 

For this, I use the Selectedvalue measure, such as:

SELECTEDVALUE('Projects'[Next Action], " - ")
 

However, currently it shows already all entries in the cards, without the country being selected on the map or in the table. 

 

Furthermore, I have added an additional country for testing purposes, to see whether this issue is caused by having only one data row. However, if the two countries have the same caracteristics (i.e. Next Action = Shipping products) this card is already "pre filled" without any of the countries being selected. 

 

I thought the reason for this being that there is already only one row with data and is therefore automatically selected, however in a previous version, I have based the dashboard on a excel sheet saved on my desktop and I did not have this issue, even the table had only one "filled" entry. 

 

Is there a way/another measure, etc to work around it and get this issue fixed?

 

I really appreciate your help and inputs. 

 

Kind regards, 

Julian

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Tschulianoo , Based on what I got on this one. In power bi, not selected and all selected are same for a slicer. Use is filtered

 

 if(isfiltered('Projects'[Next Action]) ,SELECTEDVALUE('Projects'[Next Action], " - "),"-")

refer:https://www.youtube.com/watch?v=hXg3kRFSGjA

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
Tschulianoo
New Member

@amitchandak 

 

Thanks a lot, this helps me a lot!

 

amitchandak
Super User
Super User

@Tschulianoo , Based on what I got on this one. In power bi, not selected and all selected are same for a slicer. Use is filtered

 

 if(isfiltered('Projects'[Next Action]) ,SELECTEDVALUE('Projects'[Next Action], " - "),"-")

refer:https://www.youtube.com/watch?v=hXg3kRFSGjA

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.