Forum Discussion
ccrill23
4 years agoNew Member
Dynamically change text box based on slicer selection
Hello, I am currently building a dashboard for my hospitals call centers and would like for the information in my text box to change based on what I have selected in my slicer. So when I have ...
- 4 years ago
Try something like the following measure:
VAR CallCentre = SELECTEDVALUE( Table[Call Centre], BLANK() ) RETURN IF ( CallCentre = "WMC", "Your Text", BLANK() )then drop the measure into a card visual.
bcdobbs
4 years agoCommunity Champion
Try something like the following measure:
VAR CallCentre = SELECTEDVALUE( Table[Call Centre], BLANK() )
RETURN
IF ( CallCentre = "WMC", "Your Text", BLANK() )
then drop the measure into a card visual.
Anonymous
4 years agoNot applicable
Thank you for this. When using this formula, it says the syntax for 'Return' is incorrect.
VAR CallCentre = SELECTEDVALUE('Cost Centers'[Call Center ], BLANK() )
RETURN
IF ('Cost Centers'[Call Center ], = "WMC", "Test", BLANK() )
What are we doing wrong?
- bcdobbs4 years agoCommunity Champion
So in the if statement you've got a comma between Cost Centers'[Call Center ] and equals.
Also worth checking the white space after [Call Center ] eg does your column end with a space?