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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
AnSchmi
Helper II
Helper II

text box not showing alternative text of measure

Dear Team,
 
I'm able to show slicer selection in a card visual with following measure

VAR
VarSelectedValueSELECTEDVALUE('d Item Master'[Production.Possible])
Return
SWITCH(True(),
VarSelectedValue = "Production", "Production",
VarSelectedValue = "Purchase", "Purchase",
"All Products"
)

However I cannot implement the measure in a textbox. 
It is only working when I change the Result value in switch function from text to numeric value. 
 
Any ideas how I can dynamically show the slicer selection in a textbox including an alternative text when nothing is selected ? 
 
Thanks a lot in advance
Best Regards
Andreas
1 ACCEPTED SOLUTION

Dear Gao, 

thats it ! so easy and simple. 
Thanks a lot for your help and have a nice day. 

Best Regards

Andreas

View solution in original post

4 REPLIES 4
elia22gr
Helper II
Helper II

Hi v-cgao-msft,

 

In card visual my measures with text subtitle works fine but in text box or smart narrative visual not working. Have any idea why this is happening?

 

Best Regard,

Eleftheria

v-cgao-msft
Community Support
Community Support

Hi @AnSchmi ,

 

Please consider using Smart Narrative Visual. Just put the name of the measure in the box for how to calculate the value.

vcgaomsft_0-1656039830276.png

vcgaomsft_1-1656039882557.png

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

Dear Gao, 

thats it ! so easy and simple. 
Thanks a lot for your help and have a nice day. 

Best Regards

Andreas

Hi @AnSchmi ,

 

Please consider my reply as a solution, thanks in advance.🤗

 

Best Regards,
Gao

Community Support Team

 

 

Helpful resources

Announcements
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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