Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
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

Assign it how? Is there a logic? Based on the weights of Value?

Karunya
Contributor II
Contributor II
Author

Hey Sunny,

Yes.

The targets value shown per unit are per employee/week.

Eg: Considering the same table i shared:

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

 

Target is 100 for unit 100-1 implies, each employee under Unit 100-1 (AA, AB, AC) have target of 100 per week

Hope this makes it clearer.

sunny_talwar

But how do you want to display the final output? I am guessing the table you have shared is how the data looks like, is that right?

Karunya
Contributor II
Contributor II
Author

Right.

 

Its more like I am creating a master table, which can be used in multiple ways.

So the options i have are,

1) have it modified in data load editor, wherin I have to assign value based on pre set conditions

2) Set analysis, which I have to use  at the time of report building

sunny_talwar

2 options listed make sense, but how is the final table need to look like?

Karunya
Contributor II
Contributor II
Author

The final table needs to look like below:

unitMeasureYear WeekEmployeeValue TypeSum(Value)
100-1Calls2019-29AAActual30
100-1Calls2019-29ABActual20
100-1Calls2019-29ACActual30
100-1Calls2019-29AATarget100
100-1Calls2019-29ABTarget100
100-1Calls2019-29ACTarget100

 

So basically the target per unit is now assigned to each employee under that unit.

sunny_talwar

I don't think this can be done directly on the front end... but if you want this, it can be done

unitMeasureYear WeekEmployeeValue TypeActualForecast
100-1Calls2019-29AAActual30100
100-1Calls2019-29ABActual20100
100-1Calls2019-29ACActual30100
Karunya
Contributor II
Contributor II
Author

This wouldnt work, because I built the report based on the master table. Now the new requirement is to have targets at one level more i.e. Employee. so changing master table structure means changing the report entirely.

Rather i was also thinking in line of creating another table with the required fields, using joins. This would help me to refer to another table in set analysis formula. But this definitely not the best way to design a solution i feel.

Is there a way using set analysis to superimpose the targets at unit level to corresponding employees?

 

 

 

Karunya
Contributor II
Contributor II
Author

out of curiosity, how would the below table be done using set analysis? 

unitMeasureYear WeekEmployeeValue TypeActualForecast
100-1Calls2019-29AAActual30100
100-1Calls2019-29ABActual20100
100-1Calls2019-29ACActual30100