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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
PatrickMcLeanGL
Frequent Visitor

How to use SELECTEDVALUE for multiple values selection?

PatrickMcLeanGL_0-1747150015511.png

I am trying to get my card visual to display a sum of the selected values in the slicer but its throws a blank if I select more than one name.

 

1 ACCEPTED SOLUTION
ExcelMonke
Super User
Super User

Hello,

You can consider removing the whole calculate & selectedvalue clauses in your measure (unless I'm missing something you are trying to achieve). Basically, you'll just have the following DAX:

New Paid Measure = 
SUM('glx ADP Hours'[Hours])

As long as your models are set up correctly (i.e. the names list is a dim connected/a field in your fact table) and the slicer is interacting with the card, it should sum for only the names you are selecting. 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

2 REPLIES 2
v-mdharahman
Community Support
Community Support

Hi @PatrickMcLeanGL,

Thanks for reaching out to the Microsoft fabric community forum.

It looks like you are trying to finda way to display the sum of selected values using card visual. As @PatrickMcLeanGL already responded to your query, kindly go through his response and check if it solves your issue. 

 

I would also take a moment to thank @ExcelMonke, for actively participating in the community forum and for the solutions you’ve been sharing in the community forum. Your contributions make a real difference.

 

If I misunderstand your needs or you still have problems on it, please feel free to let us know.  

Best Regards,
Hammad.
Community Support Team

 

If this post helps then please mark it as a solution, so that other members find it more quickly.

Thank you.

ExcelMonke
Super User
Super User

Hello,

You can consider removing the whole calculate & selectedvalue clauses in your measure (unless I'm missing something you are trying to achieve). Basically, you'll just have the following DAX:

New Paid Measure = 
SUM('glx ADP Hours'[Hours])

As long as your models are set up correctly (i.e. the names list is a dim connected/a field in your fact table) and the slicer is interacting with the card, it should sum for only the names you are selecting. 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.