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

Show data in Bar chart conditionally

Hi All,

I want to show data in Bar chart conditionally for instance

1. take year in Listbox

2. take bar chart with x axis is year and y axis is sales.

I want to display Bar chart with current year data by default and rest of years based selections. (Current year is static and rest of years dynamic).

Thanks,

Nihhal.

1 Solution

Accepted Solutions
ahaahaaha
Partner - Master
Partner - Master

Hi,

May be like this (look attached file)

Sum ({<Year=Year+{2017}>}Sale)


Regards,

Andrey

View solution in original post

3 Replies
Anil_Babu_Samineni

May be this?

If(GetFieldSelections(Year) = 0, Sum({<Year = {'$(=Max(Year))'}>} Sales), Sum(Sales))

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
nihhalmca
Specialist II
Specialist II
Author

Hi Anil - Its not working.

ahaahaaha
Partner - Master
Partner - Master

Hi,

May be like this (look attached file)

Sum ({<Year=Year+{2017}>}Sale)


Regards,

Andrey