Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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.
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
pls share sample app..would be easy to understand and resolve..
I suspect you might have not given label correctly. I think you have given the Created Quarter label to other field. Pls check once
Actually, It is not picking the Label, It is picking the Fields name used for creating group.
See the attached Screenshot
Hi,
You used the calculated expressions, so give the caption in the Label text box for corresponding dimensions.
Hope this helps you.
Regards,
Jagan.
select each calculation in Cyclic group and add a label under ..as shown below image.
Hi,
Please see below , you need to write label name against your expression or field :
Thanks,
AS
Hi All,
I have already given label Name to each calculated expression and It is not working. Please see screenshot.
Hi ,
Looks to me this is caption issue, uncheck "Show Caption" and see if it works.
Thanks,
AS
I tried this too but not working.