Forum Discussion
selectedvalue shows blank
Hi, wonder you can advise.
I would like to concatenate 3 text columns: Role, Company and Department.
I used the following format:
Hi Anonymous
SELECTEDVALUE('user HR'[Role] ) returns blank when more than one value in 'user HR'[Role] is active (selected) in the current filter context. That's most likely what is happening
Please mark the question solved when done and consider giving kudos if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
Cheers
2 Replies
- AlB
Community Champion
Hi Anonymous
SELECTEDVALUE('user HR'[Role] ) returns blank when more than one value in 'user HR'[Role] is active (selected) in the current filter context. That's most likely what is happening
Please mark the question solved when done and consider giving kudos if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
Cheers
- AnonymousNot applicable
AlB , thank you!
I think that's what it was. I added an extra filter to the measure and now it works 🙂
Role =
VAR min_level =
MIN ( 'user AD'[User Org Level] )
RETURN
CALCULATE (
SELECTEDVALUE ( 'user HR'[Role] ) & "/ "
& SELECTEDVALUE ( 'user HR'[Company] ) & "/ "
& SELECTEDVALUE ( 'user HR'[Departament] ),
'user AD'[User Org Level] = min_level
)