
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dimension group
Hi,
I'm trying to activate a variable when the field is not matching with region, code,s.code.
The QlikView version of the expression uses getcurrentfield() with a group like below,
=if(not(match(GetCurrentField(GROUP_2),'REGION', 'CODE', 'S_CODE')),
round($(eNewTT))
)
I need to do the same in the qliksense in a text object,
=if(not(match($Field,'REGION', 'CODE', 'SCODE')),
round($(eNewTT))
)
But with the above I'm not seeing any output no matter which field is selected?
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Searching a bit in the community you can find the post: "Getcurrentfield() equivalent in Qlik sense" [1]. It appears that the closest you can get is the use of function GetFieldSelections().
Perhaps you can use a similar approach to this example:
1. I have a dataset:
2. Then I have used the expression: =If(Match(GetFieldSelections(GROUP_2),'REGION', 'CODE', 'S_CODE'), 'Match', 'Not Match')
3. The outcome if you don't select a value
4. The outcome if you select one value:
5. The outcome if you select multiple values:
I hope that this information was helpful. In case I have misunderstood the use case scenario, please elaborate in details by providing additional information. However, if it has helped you resolve the issue, addressed your concerns or at least pointed you in the right direction, please mark it as Accepted Solution to give further visibility to other community members.
---

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Searching a bit in the community you can find the post: "Getcurrentfield() equivalent in Qlik sense" [1]. It appears that the closest you can get is the use of function GetFieldSelections().
Perhaps you can use a similar approach to this example:
1. I have a dataset:
2. Then I have used the expression: =If(Match(GetFieldSelections(GROUP_2),'REGION', 'CODE', 'S_CODE'), 'Match', 'Not Match')
3. The outcome if you don't select a value
4. The outcome if you select one value:
5. The outcome if you select multiple values:
I hope that this information was helpful. In case I have misunderstood the use case scenario, please elaborate in details by providing additional information. However, if it has helped you resolve the issue, addressed your concerns or at least pointed you in the right direction, please mark it as Accepted Solution to give further visibility to other community members.
---

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for the detailed explanation. But the expression throws an error.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I think there my be an issue with the expression, can you please copy and paste here the full expression that you are using?
