Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
haribabugv
Creator
Creator

Weighted average between dates

Hello Team,

  • I am trying to find the weighted average between two dates for Class A inside a text box. Can you please let me know how to modify this below expression.

if(date(Date) >= '$(vStart)' and date(Date) <= '$(vEnd)',Sum(Aggr(Sum(Actual * Quantity)/Sum(Actual))))


  • In another text box, i am trying to use  max weighted average (Class A,Class B) between vStart and vEnd.


Sample Data:

Capture.JPG

Message was edited by: Hari Babu Added Sample data set and sample file

1 Solution

Accepted Solutions
tresesco
MVP
MVP

3 Replies
tresesco
MVP
MVP

Try to share a sample qvw with inline/excel data and explain the expected output. That way you help us help you better.

haribabugv
Creator
Creator
Author

I have just added it

tresesco
MVP
MVP

Like this? PFA