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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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