Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Posting on Qlik Community is temporarily paused. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
suvechha_b
Creator III
Creator III

Bar chart in qliksense

How to get the below report in qliksense ?

How to calculate premium for 2 years and display in monthwise.

See sample image.

ThanksCapture.PNG

1 Solution

Accepted Solutions
chrislemm
Partner - Contributor III
Partner - Contributor III

Choose a barchart. Add the month as dimension (num(month) for the numbers instead of Jan. Feb. etc.). Add a measure:

sum( {<Year = {'2019'}>}sales)

and another:

sum( {<Year = {'2018'}>}sales)

This is called set analysis (you'll find a lot of ressources in the community). Basically it pre-filters your measure.

Replace the years with some kind of year(today()) or inyeartoday/lastyeartoday logic if you don't want to change the expressions every year.

 

Greetings.

View solution in original post

4 Replies
jfkinspari
Partner - Specialist
Partner - Specialist

Use Month number as dimension
Use two expressions that each calculates the premium for each year using set analysis
chrislemm
Partner - Contributor III
Partner - Contributor III

Choose a barchart. Add the month as dimension (num(month) for the numbers instead of Jan. Feb. etc.). Add a measure:

sum( {<Year = {'2019'}>}sales)

and another:

sum( {<Year = {'2018'}>}sales)

This is called set analysis (you'll find a lot of ressources in the community). Basically it pre-filters your measure.

Replace the years with some kind of year(today()) or inyeartoday/lastyeartoday logic if you don't want to change the expressions every year.

 

Greetings.

suvechha_b
Creator III
Creator III
Author

Thanks the expression work. But I am struggling to get this below

Capture1.PNG

 

 

and sorting of months in qliksense. Please assist.

My output results is below.

Capture.PNG

 

chrislemm
Partner - Contributor III
Partner - Contributor III

Go to sheet edit mode -> select your barchart -> options (right side) -> Sorting -> Sort Month numeric.