Forum Discussion
SELECTEDVALUE doesn't work in a measure table
No it is not a bug. Tables and columns are considers static parts of he data model and do not update based on slicer interaction.
Hi MattAllington,
Thank you for your reply.
There is a mistake in my previous description. The real issue is that the SELECTEDVALUE can't work in IF function, the return value of it always is the default.
My SELECTEDVALUE formula is as following:
tempVal = SELECTEDVALUE(t_stream_type[type], "Cloud")
And the IF formula is as following:
multiplier = IF([tempVal] ="Cloud", 1, 2)
And the slicer 'Stream' has three options as the following picture:
The issue is no mater what I selected in the slicer, the value of multiplier always equal to '1'.
Could you help me ?
- MattAllington7 years ago
Community Champion
How does the column t_stream_type[type] relate to the slicers in your image. It is not clear.
- Hawk_Wang7 years agoRegular Visitor
MattAllington wrote:How does the column t_stream_type[type] relate to the slicers in your image. It is not clear.
Just create a new slicer, and the the 'type' field of t_stream_type to the slicer.