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
waz02
Regular Visitor

Text Listing the Selected Interactions & Filters

I am working on a report that has multiple categorical variables (e.g., age range, sex, race, location) as well as a filter. All of the visuals are interactive, so if the user selects one [or more] groups all of the graphs on the report will be limited to just that combination of groups. For example, a user could select "30-39" on the age range graph and "Male" from the sex graph and all of the graphs would just show 30-39 year old males.

Since there are many variables, and more than one can be selected at a time, I would like to add a card that lists the groups that are currently selected and are currently represented on the graphs. Is it possible to write code for the selected groups?

For example, I would like a card to read "You have selected the following: males, 30-39."

1 ACCEPTED SOLUTION
VahidDM
Super User
Super User

Hi @waz02 

 

You can create a Measure and use that in the Card like this:

 

Measure = 
Var _S = selectedvalue(Table[Sex])
Var _A = selectedvalue(Table[age ])
Return
"You have selected the following:" & _S & ", " & _A & "."

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: 
www.linkedin.com/in/vahid-dm/

 

 

View solution in original post

2 REPLIES 2
v-henryk-mstf
Community Support
Community Support

Hi @waz02 ,

 

Whether the advice given by @VahidDM  has solved your confusion, if the problem has been solved you can mark the reply for the standard answer to help the other members find it more quickly. If not, please point it out.


Looking forward to your feedback.


Best Regards,
Henry

VahidDM
Super User
Super User

Hi @waz02 

 

You can create a Measure and use that in the Card like this:

 

Measure = 
Var _S = selectedvalue(Table[Sex])
Var _A = selectedvalue(Table[age ])
Return
"You have selected the following:" & _S & ", " & _A & "."

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: 
www.linkedin.com/in/vahid-dm/

 

 

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.