Forum Discussion
Anonymous
7 years agoNot applicable
Dynamically change text box or card value
Hi Experts How would you dynamically change the value in a card or text box based on the election made in two slicers. 1. Slicer options are. Year either 2017, 2018 Dec 2. Slicer options are. A...
- 7 years ago
Hi Anonymous,
You could add below measure to card visual.
Measure = SELECTEDVALUE ( Table1[Year] ) & UNICHAR ( 10 ) & SELECTEDVALUE ( Table1[Category] )Best regards,Yuliana Gu
v-yulgu-msft
7 years agoMicrosoft Employee
Hi Anonymous,
You could add below measure to card visual.
Measure =
SELECTEDVALUE ( Table1[Year] ) & UNICHAR ( 10 )
& SELECTEDVALUE ( Table1[Category] )
Best regards,
Yuliana Gu
- Anonymous7 years agoNot applicable
You say to "add a measure" to the visualization but you don't say how to do it.
v-yulgu-msft wrote:Hi Anonymous,
You could add below measure to card visual.
Measure = SELECTEDVALUE ( Table1[Year] ) & UNICHAR ( 10 ) & SELECTEDVALUE ( Table1[Category] )Best regards,Yuliana Gu- Anonymous5 years agoNot applicable
Thank you. You made my day.
- Anonymous7 years agoNot applicable
Thanks for the excellent feedback....can you explain what the UNICHAR (10) does so i can learn
- v-yulgu-msft7 years agoMicrosoft Employee
Hi Anonymous,
UNICHAR function returns the Unicode character referenced by the numeric value. unichar(10) returns a unicode in your measure, and it is recognised by a text. Here are some links for you to better understand its usage.
DAX UNICHAR Function in Power BI
Concatenate text with newlines in Power BI
Best regards,
Yuliana Gu