Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
nareshthavidishetty
Creator III
Creator III

Multi coloured drilldown group

Hi,

We have created an drill down group with 3-fields and created an bar chart.

Now we need to coloured 3-dimensions with in group dynamically based on selection.

Ex: Group=Year+Quarter+Month

Year = red()

Quarter = blue()

Month= yellow()

We have used '=If(GetCurrentField(Group) = 'Period', Red(), Blue())  ' this logic but it works for 2-fields with in a group.If we add another colour the logic won't work.


Thanks..

15 Replies
nareshthavidishetty
Creator III
Creator III
Author

Hi,

Group name:Year_Cat

Thanks..

t_chetirbok
Creator III
Creator III

so, you should use

=If(GetCurrentField(Year_Cat)='Year',Red(),If(GetCurrentField(Year_Cat)='Quarter', Blue(),Green()))

tamilarasu
Champion
Champion

Try this

=If(GetCurrentField(Year_Cat)='Year',Red(),

        If(GetCurrentField(Year_Cat)='Quarter', Blue(),

              If(GetCurrentField(Year_Cat)='Month',Green()

                  )

          )

    )

nareshthavidishetty
Creator III
Creator III
Author

Hi,

Thanks you all .It worked.

=If(GetCurrentField(GroupName)='Year',Red(),If(GetCurrentField(GroupName)='Quarter', Blue(),Green()))

as given by Nagaraj.

Thanks..

Anonymous
Not applicable

=If(GetCurrentField(GroupName)='Year',Red(),If(GetCurrentField(GroupName)='Quarter', Blue(),Green()))

engishfaque
Specialist III
Specialist III

Dear Naresh,

Here is another efficient way,

=Pick(Match(GetCurrentField(GroupName), 'Year', 'Quarter', 'Month'), Red(), Blue(), Yellow())

Kind regards,

Ishfaque Ahmed