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

How to Find gap between two different sales in bar chart

Hi Qlikers,

@sunny_talwar  can you look on to this 

I want to show the gap between actual sales and target_sales in the form of bellow picture type

WhatsApp Image 2019-09-15 at 10.56.34 PM.jpeg

Data is like bellow

CategorySub CategoryYearActual_SalesTarget_Sales
AA120181020
AA2201825
AA320194220
AA420191110
BB120181025
BB22018210
BB320193030
CC120181122
CC220182330
CC320184050
CC420192015
CC520191120

 

please give any suggestions

thanks in advance

Labels (1)
2 Solutions

Accepted Solutions
Vegar
MVP
MVP

The gap should be =sum(Actal_Sales)

The expression should be sum(Target_Sales)-sum(Actual_Sales)

View solution in original post

Gopi_E
Creator II
Creator II
Author

Thanks for spending valuable time

I find out the solution

In Bar-Offset I set expression for giving starting position like sum(Actual_Sales) so it will give exactly what I am expecting

Capture.PNG

 

View solution in original post

4 Replies
miskinmaz
Creator III
Creator III

set a bar offset on your third expression of Gap analysis
Gopi_E
Creator II
Creator II
Author

Hi Miskimez,

Thanks for the reply

I set an expression Actal_Sales-Target_sales in bar offset but it will give bellow pic 

Capture.PNGCapture2.PNG

please give any suggestions

Vegar
MVP
MVP

The gap should be =sum(Actal_Sales)

The expression should be sum(Target_Sales)-sum(Actual_Sales)

Gopi_E
Creator II
Creator II
Author

Thanks for spending valuable time

I find out the solution

In Bar-Offset I set expression for giving starting position like sum(Actual_Sales) so it will give exactly what I am expecting

Capture.PNG