Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Cyclic Group is displaying Express in Chart Header. How to resolve it?

Hi Guys,

I have created a Cyclic Group named as [Date Hierarchy]

Year-->Quarter-->Month-->Week-->Date

For Year I have used field [CREATED YEAR] but for Quarter I have used expression =[CREATED YEAR] &'-'&[CREATED QUARTER]

and given a Label CREATED QUARTER to this expression. Same way for Month

When I used [Date Hierarchy] in my Chart header like this ='Count by '& GetCurrentField([Date Hierarchy]) I am not getting expected result when I select Quarter from Cyclic Group. It is displaying Count by =[CREATED YEAR] &'-'&[CREATED QUARTER]

How can I resolve it?

Do not want to write complex If statement in Chart header.

1 Solution

Accepted Solutions
jonathandienst
Partner - Champion III
Partner - Champion III

GetCurrentField() displays the selected field or expression of the group. It does NOT display the label. Period.

If you want the label names to appear in your app, you will need to write an expression for the label that matches the field name or expression and displays the label text, something like this:

     =Pick(Match(GetCurrentField(groupname), 'expression1', 'expression2', 'expression3'), 'label 1', 'label 2', 'label3')

You could also use wildmatch() with fragments of the full expressions if they are too long, or contain quotes.

HTH

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein

View solution in original post

15 Replies
Anonymous
Not applicable
Author

pls share sample app..would be easy to understand and resolve..


Anonymous
Not applicable
Author

I suspect you might have not given label correctly. I think you have given the Created Quarter label to other field. Pls check once

Not applicable
Author

Actually, It is not picking the Label, It is picking the Fields name used for creating group.

See the attached Screenshot

jagan
Luminary Alumni
Luminary Alumni

Hi,

You used the calculated expressions, so give the caption in the Label text box for corresponding dimensions.

Hope this helps you.

Regards,

Jagan.

Anonymous
Not applicable
Author

select each calculation in Cyclic group and add a label under  ..as shown below image.

amit_saini
Master III
Master III

Hi,

Please see below , you need to write label name against your expression or field :

Thanks,

AS

Not applicable
Author

Hi All,

I have already given label Name to each calculated expression and It is not working. Please see screenshot.

amit_saini
Master III
Master III

Hi ,

Looks to me this is caption issue, uncheck "Show Caption" and see if it works.

Thanks,
AS

Not applicable
Author

I tried this too but not working.