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: 
Karunya
Contributor II
Contributor II

Assign values from one level to next

Hey Guys,

I am facing the below issue:

I have a table as shown below 

UnitMeasureYearWeekEmployeeValueTypeSum(Value)
100-1Calls2019-29AAActuals30
100-1Calls2019-29ABActuals20
100-1Calls2019-29ACActuals30
100-1Calls2019-29-Target100

 

I have targets available at Unit level, which now have to be assigned to employees in that Unit.

Is there a way to do this using set analysis? 

Alternatively, is there a way to do the same using data load editor

 

Thanks in advance!

-Karunya

12 Replies
sunny_talwar

Actual will be 

Sum({<[Value Type] = {'Actual'}>}Value)

Forecast will be

If(Sum({<[Value Type] = {'Actual'}>}Value) <> 0, Sum(TOTAL <unit> {<[Value Type] = {'Forecast'}>}Value))

 

Karunya
Contributor II
Contributor II
Author

Thank you very much Sunny!

I have never used Total before, could you explain the working of the formula in a sentence?