Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi PowerBiers, I need you superior brain power!
I have a set of codes; Skills, Industries that are associated to People looking for jobs and those looking to hire people, as well as the job records and Organisations.
Below three examples tables;
Company | Code Type | Code | Candidate | Code Type | Code | Job | Code Type | Code | ||
BT | Skills | JAVA | John Smith | Skills | JAVA | Developer | Skills | JAVA | ||
BT | Skills | .NET | John Smith | Skills | .NET | Developer | Skills | .NET | ||
BT | Industry | Telecoms | John Smith | Industry | Telecoms | Developer | Industry | Telecoms | ||
John Smith | Skills | SQL | Developer | Skills | VBA |
I need to represent in a table that totals these matches on codes and then show whether a sales/activity transaction has occurred.
Candidate | Contacts/Contact with an action related to person | Jobs | Companies |
John Smith | 50/5 | 25/10 | 15/5 |
Joe Bloggs | 45/40 | 10/0 | 5/5 |
Solved! Go to Solution.
Hi @Anonymous,
You can refer to below steps to create the summary table if it suitable for your requirement:
Steps:
1. Summary three table and add the tag.
Summary= UNION(SELECTCOLUMNS(Sheet2,"Type","Company","Name",[Company],"Code",[Code Type]&" "&[Code]),SELECTCOLUMNS(Sheet3,"Type","Candidate","Name",[Candidate],"Code",[Code Type]&" "&[Code]),SELECTCOLUMNS(Sheet4,"Type","Job","Name",[Job],"Code",[Code Type]&" "&[Code]))
2. Use var function to store the above table, and add variables to log the table count.
Summary = var temp= UNION(SELECTCOLUMNS(Sheet2,"Type","Company","Name",[Company],"Code",[Code Type]&" "&[Code]),SELECTCOLUMNS(Sheet3,"Type","Candidate","Name",[Candidate],"Code",[Code Type]&" "&[Code]),SELECTCOLUMNS(Sheet4,"Type","Job","Name",[Job],"Code",[Code Type]&" "&[Code])) var Contacts=COUNTROWS(FILTER(temp,[Type]="Candidate")) var Company=COUNTROWS(FILTER(temp,[Type]="Company")) var Job=COUNTROWS(FILTER(temp,[Type]="Job")) return temp
3. Summary temp table and calculate the count.
Summary = var temp= UNION(SELECTCOLUMNS(Sheet2,"Type","Company","Name",[Company],"Code",[Code Type]&" "&[Code]),SELECTCOLUMNS(Sheet3,"Type","Candidate","Name",[Candidate],"Code",[Code Type]&" "&[Code]),SELECTCOLUMNS(Sheet4,"Type","Job","Name",[Job],"Code",[Code Type]&" "&[Code])) var Contacts=COUNTROWS(FILTER(temp,[Type]="Candidate")) var Company=COUNTROWS(FILTER(temp,[Type]="Company")) var Job=COUNTROWS(FILTER(temp,[Type]="Job")) return SUMMARIZE(FILTER(temp,[Type]="Candidate"),[Name], "Current Contacts/All",COUNTROWS(FILTER(temp,[Name]=EARLIER([Name])))&"/"&Contacts, "Suitable Job/All",COUNTROWS(INTERSECT(SELECTCOLUMNS(FILTER(temp,[Type]="Candidate"&&[Name]=EARLIER([Name])),"Code",[Code]), SELECTCOLUMNS(FILTER(temp,[Type]="Job"),"Code",[Code])))&"/"&Job, "Suitable Company/All",COUNTROWS(INTERSECT(SELECTCOLUMNS(FILTER(temp,[Type]="Candidate"&&[Name]=EARLIER([Name])),"Code",[Code]), SELECTCOLUMNS(FILTER(temp,[Type]="Company"),"Code",[Code])))&"/"&Company )
Notice: the company count means the suitable company records count.(not the unique value)
Regards,
Xiaoxin Sheng
Hi @Anonymous,
You can refer to below steps to create the summary table if it suitable for your requirement:
Steps:
1. Summary three table and add the tag.
Summary= UNION(SELECTCOLUMNS(Sheet2,"Type","Company","Name",[Company],"Code",[Code Type]&" "&[Code]),SELECTCOLUMNS(Sheet3,"Type","Candidate","Name",[Candidate],"Code",[Code Type]&" "&[Code]),SELECTCOLUMNS(Sheet4,"Type","Job","Name",[Job],"Code",[Code Type]&" "&[Code]))
2. Use var function to store the above table, and add variables to log the table count.
Summary = var temp= UNION(SELECTCOLUMNS(Sheet2,"Type","Company","Name",[Company],"Code",[Code Type]&" "&[Code]),SELECTCOLUMNS(Sheet3,"Type","Candidate","Name",[Candidate],"Code",[Code Type]&" "&[Code]),SELECTCOLUMNS(Sheet4,"Type","Job","Name",[Job],"Code",[Code Type]&" "&[Code])) var Contacts=COUNTROWS(FILTER(temp,[Type]="Candidate")) var Company=COUNTROWS(FILTER(temp,[Type]="Company")) var Job=COUNTROWS(FILTER(temp,[Type]="Job")) return temp
3. Summary temp table and calculate the count.
Summary = var temp= UNION(SELECTCOLUMNS(Sheet2,"Type","Company","Name",[Company],"Code",[Code Type]&" "&[Code]),SELECTCOLUMNS(Sheet3,"Type","Candidate","Name",[Candidate],"Code",[Code Type]&" "&[Code]),SELECTCOLUMNS(Sheet4,"Type","Job","Name",[Job],"Code",[Code Type]&" "&[Code])) var Contacts=COUNTROWS(FILTER(temp,[Type]="Candidate")) var Company=COUNTROWS(FILTER(temp,[Type]="Company")) var Job=COUNTROWS(FILTER(temp,[Type]="Job")) return SUMMARIZE(FILTER(temp,[Type]="Candidate"),[Name], "Current Contacts/All",COUNTROWS(FILTER(temp,[Name]=EARLIER([Name])))&"/"&Contacts, "Suitable Job/All",COUNTROWS(INTERSECT(SELECTCOLUMNS(FILTER(temp,[Type]="Candidate"&&[Name]=EARLIER([Name])),"Code",[Code]), SELECTCOLUMNS(FILTER(temp,[Type]="Job"),"Code",[Code])))&"/"&Job, "Suitable Company/All",COUNTROWS(INTERSECT(SELECTCOLUMNS(FILTER(temp,[Type]="Candidate"&&[Name]=EARLIER([Name])),"Code",[Code]), SELECTCOLUMNS(FILTER(temp,[Type]="Company"),"Code",[Code])))&"/"&Company )
Notice: the company count means the suitable company records count.(not the unique value)
Regards,
Xiaoxin Sheng
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
98 | |
80 | |
64 | |
57 |
User | Count |
---|---|
145 | |
111 | |
92 | |
84 | |
66 |