Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
srihitha
Contributor III
Contributor III

Nested if

What is the problem with this nested if. I am trying to use it in chart

Year1 and month1 are two fields

If( [year1] = 2013,

         If([month1] =Jan, '2013jan',

         If([month1] =Feb ,'2013Feb' )

)

)

Labels (3)
2 Replies
vinieme12
Champion III
Champion III

If you just need to show month and year together as labels, I would suggest you create new field in your calendar

MonthName(Datefield) as MonthYear

or

Year(Datefield)&Text(Date(Datefield,'MMM')) as MonthYear

 

Then use the MonthYear field in charts

 

or you can combine the Year and Month field as below in a chart

Aggr([year1]&[month1],[year1],[month1])

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
srihitha
Contributor III
Contributor III
Author

Hi Vineeth ,

 

I want to know how to use nested if in qlik sense load scriot and in charts.Hence, I am trying this