Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
chapil
Contributor III
Contributor III

How to use lower() in a set analysis

Hi, 

Can someone help me with this formula:

I just want to add somewhere in the formula lower([EXPLAIN]) but I don't know where  

=Only({<[EXPLAIN ]={"*fr*", '*none*'}>} [EXPLAIN ])

 

Thanks in advance

1 Solution

Accepted Solutions
NitinK7
Specialist
Specialist

try once below exp

Lower(Aggr(Only({<[EXPLAIN ]={"*fr*", '*none*'}>} [EXPLAIN ]),[EXPLAIN ]))

or

Aggr(Only({<Lower ([EXPLAIN ] )={"*fr*", '*none*'}>} [EXPLAIN ]),[EXPLAIN ])

View solution in original post

5 Replies
BenjaminT
Partner - Creator
Partner - Creator

Hi, 

I don't think you can modify the left hand side of the set analysis condition. In this case I would typically load another field into the data model that contains the lower case version of EXPLAIN, and use that in the set analysis.

Thanks

Ben

chapil
Contributor III
Contributor III
Author

Thanks 

Yes of course, it will be a good idea but I'm an SU and I don't have any access to develop my own dim ... 

 

NitinK7
Specialist
Specialist

try once below exp

Lower(Aggr(Only({<[EXPLAIN ]={"*fr*", '*none*'}>} [EXPLAIN ]),[EXPLAIN ]))

or

Aggr(Only({<Lower ([EXPLAIN ] )={"*fr*", '*none*'}>} [EXPLAIN ]),[EXPLAIN ])

BenjaminT
Partner - Creator
Partner - Creator

Alternatively, you may be able to use an if statement with Wildmatch(), instead of set analysis,  like this:

only( if(Wildmatch([EXPLAIN], '*fr*', '*none*')>0, [EXPLAIN]))

 

Thanks

Ben

chapil
Contributor III
Contributor III
Author

Thanks a lot, 
It works