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

Announcements
Now accepting applications for the Qlik Luminary and Partner Ambassador Programs: Apply by July 6!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Help needed to link two tables

Hi QV users.

I have a problem with two tables. The first table contains employees in different sections per month. Only if an employee is in the specific section it is marked with a "1".

The other table contains sales per employee per month.

My problem is that employee no. 3 is not in the company in october, november and december and employee is not in the company in january and february. But for some reason some of their sales are registered in these month.

To link the two tables I have created a key with employee and month. When I create a Pivot table with numbers of employees per section per month it shows everything correct, but when I create a Pivot table with sales per employee per month it shows the sales for employee no. 3 and 4 in the months they are not in the company in a separate row and column marked "-".

Can you help me to show the sales in the correct months but in a new row below the sections with the text "Sales not correct registered"? It should also be possible to select the value "Sales not correct registered" in the Section listbox.

Any ideas?

Thanks in advance

Johnni

Labels (1)
5 Replies
Anonymous
Not applicable
Author

Hi QV users.

Please find a QV-file and a Excel-file attached in the two first post.

Not applicable
Author

On the Sales tab of the xlsx Emp 3 has sales entered for Oct, Nov and Dec, and Emp4 has sales for Jan and Feb.

The join you have is why the sales are showing.

brenner_martina
Partner - Specialist II
Partner - Specialist II

Hi, Johnni,

this is very easy, the sum 29 are employee No 4 in Jan and Feb and No 3 in Oct, Nov and Dec. You entered them a sales value but they didn't work in this months. In your pivot you can supress showing NULL-values for all three dimensions dept, employee and Month. Look at the uploaded File.

Anonymous
Not applicable
Author

Hi Martina,

that was a good suggestion but unfortunately not the answer I was looking for. The sales must be shown in the month they are registered but with a new row created called "Sales not correct registered". If I suppress when value is Null the sales of 29 units is missed.

Below I have manually made a solution which I want QlikView to show unless there is a better way to do it.

Best regards

Johnni

SectionEmployee01-01-201001-02-201001-03-201001-04-201001-05-201001-06-201001-07-201001-08-201001-09-201001-10-201001-11-201001-12-2010Total
A156463484695565
A214128
A456415
B23672564740
B444816
C4638219
D336984135746
Sales not correct registered9546529
Total182118221315261624232319238


Anonymous
Not applicable
Author

Hi QV users.

Maybe it's because of the summer holiday that I don't get any replies solving my problem but I still hope some of you out there can help me.