Qlik Community

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
IMPORTANT security patches for GeoAnalytics Server available to download: READ DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
tiyasa125
Contributor II
Contributor II

GetCurrentField is not returning field name with space

Dear All,

I have a typical issue with the getcurrentfield function. I have a drill down group name mygroup. This mygroup has three field like [my field], [my field1], [my field2]. I am trying to get the active field name when selected from this group in a chart. I am writing like  = getcurrentfield(mygroup) but it is returning blank. It is working if I don't have space in the field name. Any help is much appreciated, Thanks so much

1 Solution

Accepted Solutions
QFabian
Specialist II
Specialist II

Hi @tiyasa125 , i made this video showing how it works for me, please let me know more details about your problem. I tested as drill-down type too , and it works fine too.

QFabian

View solution in original post

5 Replies
QFabian
Specialist II
Specialist II

Hi @tiyasa125 , i made this video showing how it works for me, please let me know more details about your problem. I tested as drill-down type too , and it works fine too.

QFabian
marcus_sommer
MVP & Luminary
MVP & Luminary

I assume you want to use this information as field within an aggr() or a TOTAL statement or similar. If so your query needs to return a valid fieldname which means that any spaces or special-chars require a wrapping of the fieldname. Therefore try it with:

[$(=getcurrentfield(mygroup))]

- Marcus 

tiyasa125
Contributor II
Contributor II
Author

No Not with aggr. But thanks for your reply

tiyasa125
Contributor II
Contributor II
Author

Hi Yes, now it is working as expected.

Many thanks.

lomah69097
Contributor
Contributor

good article but i want more information about GetCurrentField myaccountaccess