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

Use dimensionality in drill down group in bar chart

I have a bar chart with a drill-down group containing three expressions of a timestamp 

year(timestamp), month(timestamp), day(timestamp)

When the lowest level (day) is shown in the chart I want year and month in the title. Some posts here use dimensionality to test what level is shown, but that does not seem to work in a chart.

Is there another way to know what level of the drill down group is shown ?

Labels (1)
1 Solution

Accepted Solutions
stevejoyce
Specialist II
Specialist II

To determine in title, i think you must derive based on possible count, mimicking what the drill down does.

if(count(distinct year(timestamp)) >1, 'year',

  if(count(distinct month(timestamp)) >1, 'month',

  year(timestamp) & month(timestamp)

))

View solution in original post

3 Replies
Or
MVP
MVP

For QlikView, you should be able to use GetCurrentField(Groupname) to find out which field is currently active in the group.

stevejoyce
Specialist II
Specialist II

To determine in title, i think you must derive based on possible count, mimicking what the drill down does.

if(count(distinct year(timestamp)) >1, 'year',

  if(count(distinct month(timestamp)) >1, 'month',

  year(timestamp) & month(timestamp)

))

curiousfellow
Specialist
Specialist
Author

That does not seem to work because it is a calculated field.