Forum Discussion
PowerBINoob24
3 years agoResolver I
Dynamic Text Box - Make Value Blank When Nothing Is Selected
Hi All, I've got a dynamic text box that updates with whatever selection is made in a slicer. My question is, is it possible to have the Dynamic Text Bo be blank until someone selects something in ...
lukiz84
3 years agoMemorable Member
Then how should this work? Use a measure instead.
PowerBINoob24
3 years agoResolver I
I'm pulling in text, not numbers. Not sure how one turns text into a measure.
- grandtotal3 years agoResolver III
you need to have a measure for this, like:
SELECTEDVALUE(<columnName>[, <alternateResult>])
It returns the value when the context for columnName has been filtered down to one distinct value only. Else, alternateResult.
https://learn.microsoft.com/en-us/dax/selectedvalue-function
- PowerBINoob243 years agoResolver I
Okay....so I would have the alternate result be be the blank, correct?
- grandtotal3 years agoResolver III
Yes. You don't have to define because the default is also blank.
Term Definition
columnName The name of an existing column, using standard DAX syntax. It cannot be an expression. alternateResult (Optional) The value returned when the context for columnName has been filtered down to zero or more than one distinct value. When not provided, the default value is BLANK().