Forum Discussion

dabutchart's avatar
dabutchart
Frequent Visitor
4 years ago
Solved

Summerizing data over 2 tables

I have 2 tables. Table1 has a column StaffNum.

 

Table2 has columns CourseTitle & StaffNum

 

Is it possible to create a table where column 1 is all the StaffNums from Table1 and column 2 contains all the courses relating to that StaffNum. For example, the output could be

 

StaffNumCourseTitle
123Course1
123Course2
123Course3
123Course4
234Course1
345Course2
345Course4
  • Hi dabutchart ,

     

    Create the following data model, then refer to the corresponding fields in the table visual and filter the rows that are not empty in the fiter.

    If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.


    Best Regards,
    Henry


    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

6 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    dabutchart , isn't the table you want (with columns StaffNum and CourseTitle) the same as Table2 that you mention you have (which has columns CourseTitle and StaffNum)?

    How is the table you want different to Table2?

    • dabutchart's avatar
      dabutchart
      Frequent Visitor

      The difference would be that the output table would contain all StaffNums from Table1 and the CourseTitles from Table2. 

      • Anonymous's avatar
        Anonymous
        Not applicable

        dabutchart , sorry but I cannot see the difference. Could you please post an example showing Table1, Table2, and the desired output table?

  • v-henryk-mstf's avatar
    v-henryk-mstf
    Icon for Community Support rankCommunity Support

    Hi dabutchart ,

     

    Create the following data model, then refer to the corresponding fields in the table visual and filter the rows that are not empty in the fiter.

    If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.


    Best Regards,
    Henry


    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.