Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
shahafei2
Creator
Creator

Pick match with aggr in bar chart

Hi everyone,

 

I'm trying to compare calculated forecast data and current data in a bar chart

In order to see similar chart to:

clipboard_image_1.png

I'm using:

 

Dimension = Weekday(Date)

 Expressions

                 -QTY = (sum({<Inv_Type={'1'}>}[Qty])+SUM(DISTINCT{<Inv_Type={'2'}>}Qty2))/count(distinct week(Date))

 

                 -QTY *=pick(match(Inv_Type,'1','2'),
Ceil(
SUM(AGGR(
pick(match([M.customer group],'A','B','C','D'),
SUM(Qty)*(1+$(v_Factor_A)),
SUM(Qty)*(1+$(v_Factor_B)),
SUM(Qty)*(1+$(v_Factor_C)),
SUM(Qty)*(1+$(v_Factor_D)),
),[M.customer group],Inv_Type,WeekDay(Date)))
,1),
Ceil(
SUM(AGGR(
pick(match([M.customer group],'A','B','C','D'),
SUM(Qty2)*(1+$(v_Factor_A)),
SUM(Qty2)*(1+$(v_Factor_B)),
SUM(Qty2)*(1+$(v_Factor_C)),
SUM(Qty2)*(1+$(v_Factor_D)),
),[M.customer group],Inv_Type,weekday(Date)))
,1))

 

But for some reason, the Qty* calculation is not shown

any ideas?

clipboard_image_2.png

**The qty expression is presented only**

 

 

 

2 Replies
shahafei2
Creator
Creator
Author

?

Brett_Bleess
Former Employee
Former Employee

Shahaf, likely going to need to attach the app or a sample app with data model etc. in order for someone to pose any ideas on this one...

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.