Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have 2 table,
Data Table:
Id | names |
1 | A |
2 | B |
3 | B |
4 | C |
5 | C |
6 | D |
7 | E |
Team Mapping Data:
member name | Team Name |
A | Team A |
B | Team B |
C | Team A |
I want a team column against each Id. If there is no match it should show as Unassigned. I tried Applymap but getting an error: map_id not found
[Data ]:
LOAD *,
ApplyMap('[Team Mapping]', [Team Name],'Unassigned') As Team
;
Can anyone help me on this one. Thanks in Advance
Hi
Can u share the Code what you have written
Have you used mapping keyword and also check that the mapping table should have only 2 columns
Thanks
I'm using this code::
[Team Mapping data]:
LOAD
[member name],
[team name]
FROM [lib://Raw/test_qlik.xlsx]
(ooxml, embedded labels, table is [Team Mapping data]);
[Data]:
LOAD
[Id],
[Names]
FROM [lib://Raw/test_qlik.xlsx]
(ooxml, embedded labels, table is Data);
[Data ]:
LOAD *,
ApplyMap('[Team Mapping]', [Team Name],'Unassigned') As Team
;
Hi
Can you tell me which columns are Common between the 2 tables?
Thanks
Member Name and names are columns
Hi
Try this and let me know if it works
[Team Mapping data]:
Mapping
LOAD
[member name] as [Names],
[team name]
FROM [lib://Raw/test_qlik.xlsx]
(ooxml, embedded labels, table is [Team Mapping data]);
[Data]:
LOAD
[Id],
[Names],
ApplyMap('[Team Mapping]', [Names],'Unassigned') As Team
FROM [lib://Raw/test_qlik.xlsx]
(ooxml, embedded labels, table is Data);
Hope this Helps
Thanks
Unqualify *;
[Team Mapping]:
Mapping
LOAD
[member name] as [Names],
[team name]
FROM [lib://Raw/test_qlik.xlsx]
(ooxml, embedded labels, table is [Team Mapping data]);
[Data]:
LOAD
[Id],
[Names],
ApplyMap('[Team Mapping]', [Names],'Unassigned') As Team
FROM [lib://Raw/test_qlik.xlsx]
(ooxml, embedded labels, table is Data);
Hi Mamta,
This might help you
[Team Mapping]:
Mapping
LOAD
[member name] as [Names],
[team name]
FROM [lib://Raw/test_qlik.xlsx]
(ooxml, embedded labels, table is [Team Mapping data]);
[Data]:
LOAD
[Id],
[Names],
ApplyMap('Team Mapping', Names,'Unassigned') As Team
FROM [lib://Raw/test_qlik.xlsx]
(ooxml, embedded labels, table is Data);
Regards,
Prashant
Thank you Prashant
It works fine now