cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AnSchmi
Helper I
Helper I

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 I
Helper I

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
May 2023 update

Power BI May 2023 Update

Find out more about the May 2023 update.

Submit your Data Story

Data Stories Gallery

Share your Data Story with the Community in the Data Stories Gallery.

Top Solution Authors