Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Stacked Waterfall Chart --- w/ .QVW and example

Hi Qlik Community!

I have the following waterfall chart -- but I can't seem to solve the error below. I have my chart broken into two dimensions (Parts/Mods) and when using an offset expression, there is a gap between the two bars in the chart. The arrows specify the direction each "semi stack" should "move" to be located in the correct position.

sales waterfall example.png

Would really appreciate some help solving this problem! --- QVW and dataset attached.


I tried to use logic similar to the following to solve..but it didn't work (posted so you can see my logic/reasoning)

Example for conv orders offset expression -- granted this is not the true syntax, merely a description of the logic involved.

if both parts and mods are selected (or no selection specified) ----> offset the mods stack by the total backlog, and offset the parts stack by total backlog + mods conv orders

if only parts selected ---> offset by backlog(parts)

if only mods selected ---> offset by backlog(mods)

1 Solution

Accepted Solutions
sunny_talwar

May be this for bar offset

=If(RowNo() = 1,

if(

Valuelist('Backlog','Conv Orders','Sales Est','GAP','Sales IOP','phase 6','phase 7') = 'Conv Orders', (sum(total ConvCurrentYearTotalOpenBL)

)/1000000,

if(sum(SalesIOP) - sum(SalesEst) >0,

if(Valuelist('Backlog','Conv Orders','Sales Est','GAP','Sales IOP','phase 6','phase 7') = 'GAP' ,

sum(total SalesEst)/1000000, 0),

if(Valuelist('Backlog','Conv Orders','Sales Est','GAP','Sales IOP','phase 6','phase 7') = 'GAP', sum(SalesIOP)/1000000,0))), 0)

Capture.PNG

View solution in original post

3 Replies
sunny_talwar

May be this for bar offset

=If(RowNo() = 1,

if(

Valuelist('Backlog','Conv Orders','Sales Est','GAP','Sales IOP','phase 6','phase 7') = 'Conv Orders', (sum(total ConvCurrentYearTotalOpenBL)

)/1000000,

if(sum(SalesIOP) - sum(SalesEst) >0,

if(Valuelist('Backlog','Conv Orders','Sales Est','GAP','Sales IOP','phase 6','phase 7') = 'GAP' ,

sum(total SalesEst)/1000000, 0),

if(Valuelist('Backlog','Conv Orders','Sales Est','GAP','Sales IOP','phase 6','phase 7') = 'GAP', sum(SalesIOP)/1000000,0))), 0)

Capture.PNG

Sergey_Shuklin
Specialist
Specialist

Not applicable
Author

Hey Sunny,

Thanks for your help! Sorry about the double post.

Sergey also posted a great answer on the linked post (in his response here).

Really appreciate it!

-Brian