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

Announcements
Learn how to migrate to Qlik Cloud Analytics™: On-Demand Briefing!
cancel
Showing results for 
Search instead for 
Did you mean: 
suvechha_b
Creator III
Creator III

Expression not working

Hi All ,

Please help me to get the expression correctly for "Days Cover per FC".

When , I am selecting specific product the "Days Cover per FC" is pulling correctly but if I don't select any product the value is wrong .

Sample model attached.

Capture1.PNG

1 Solution

Accepted Solutions
Marcio_Campestrini
Specialist
Specialist

Hi

As you're using TOTAL in your expression, the "Days Cover per FC" will change according your selection.

Why are you using it?

Márcio Rodrigo Campestrini

View solution in original post

3 Replies
Marcio_Campestrini
Specialist
Specialist

Hi

As you're using TOTAL in your expression, the "Days Cover per FC" will change according your selection.

Why are you using it?

Márcio Rodrigo Campestrini
Anil_Babu_Samineni

Does it possible to share the expression, I don't have license software by hand

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Anonymous
Not applicable

Hi, try this expression:

Sum(Aggr((sum(stock_on_hand)/(SUM( {<  period_key = {"<=$(vPrevPeriod1)>=$(vPrevPeriod6)"} >}sales_plan) /6))*(22),[Product Code]))

This is the output:

Regards!!