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

Return String if / Set-Analysis with text

Hello Guys,

Name Month Year Message
Max 1 2022 Yes
Max 2 2022 Maybe
Max 3 2022 Maybe
Max 4 2022 No
Max 5 2022 Yes

 

Im looking for a way to create a set analysis, but the result isnt a value but a text.
It should be like if Month=5 and year=2022, then 'Yes' else blank.

Would you use a set-analysis for it with 'only' function?

Labels (2)
1 Solution

Accepted Solutions
vinieme12
Champion III
Champion III

IF you trying to create a calculated Message field, then use

=IF(Month=5 and Year=2022,'Yes')

OR 

IF you are trying to retrieve the text value from the Message  field that exists in your data , then use

only({<Month={'5'},Year={'2022'}>} Message)

or MaxString({<Month={'5'},Year={'2022'}>} Message)

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.

View solution in original post

1 Reply
vinieme12
Champion III
Champion III

IF you trying to create a calculated Message field, then use

=IF(Month=5 and Year=2022,'Yes')

OR 

IF you are trying to retrieve the text value from the Message  field that exists in your data , then use

only({<Month={'5'},Year={'2022'}>} Message)

or MaxString({<Month={'5'},Year={'2022'}>} Message)

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.