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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Happytravel2025
Regular Visitor

Dynamic text box and Card?

Hello,

 

I am wondering if there is any way I can change the text box  and card as the pic based on the change of the

slicer?

 

Q1.png

 

1 ACCEPTED SOLUTION
TomMartens
Super User
Super User

Hey @Happytravel2025 ,

 

you can create measures that return a value based on the selection inside a slicer, then you can add the measure to the textbox's title.

Inside the measure, use SELECTEDVALUE( ...) to store the slicer selection inside the variable.

Then, if necessary, use SWITCH( ... ) to return the value you want to visualize.

Hopefully, this helps to tackle your challenge.

Regards,
Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

View solution in original post

9 REPLIES 9
Bibiano_Geraldo
Super User
Super User

Hi @Happytravel2025 ,

You have to use SELECTEDVALUE function, something like this:

SelectedCategoryText = SELECTEDVALUE('YourTable'[YourColumn])
v-sgandrathi
Community Support
Community Support

Hi @Happytravel2025,

 

Has your issue been resolved?If the response provided by the community member addressed your query, could you please confirm? It helps us ensure that the solutions provided are effective and beneficial for everyone.

If yes, kindly accept the useful reply as a solution and give us Kudos. It would be appreciated.

 

Thank you for your understanding!

Hi @Happytravel2025,

 

May I ask if you have gotten this issue resolved?

If it is solved, please mark the helpful reply or share your solution and accept it as solution, it will be helpful for other members of the community who have similar problems as yours to solve it faster.

 

Thank you.

Hi @Happytravel2025,


we haven't heard back from you regarding our last response and wanted to check if your issue has been resolved.

If our response addressed by the community member for  your query, please mark it as Accept Answer and give us Kudos. Should you have any further questions, feel free to reach out.
Thank you for being a part of the Microsoft Fabric Community Forum!

I am sorry. I used other method so I haven't tried it yet. I will try once I need it. Thank you.

Hi @Happytravel2025,

 

May I ask if you have gotten this issue resolved?

If it is solved, please mark the helpful reply or share your solution and accept it as solution, it will be helpful for other members of the community who have similar problems as yours to solve it faster.

 

Thank you.

Hi @Happytravel2025,

 

Just checking in. Have you had a chance to try the workaround we discussed earlier?
Please let us know if you need any help or have any questions.

Looking forward to your update!

Best regards,

Sahasra.

TomMartens
Super User
Super User

Hey @Happytravel2025 ,

 

you can create measures that return a value based on the selection inside a slicer, then you can add the measure to the textbox's title.

Inside the measure, use SELECTEDVALUE( ...) to store the slicer selection inside the variable.

Then, if necessary, use SWITCH( ... ) to return the value you want to visualize.

Hopefully, this helps to tackle your challenge.

Regards,
Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

I will try now! Thank you

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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