Forum Discussion

Joren's avatar
Joren
Regular Visitor
4 years ago
Solved

Need some help with data model - bidirectional

Hi guys,

 

I have the following tables:

  • Employees: A list of employees
  • Certification: A list of dates on which employees have achieved their certification (but only holds an employee ID if they have passed the certification)
  • Refresher courses: A list of dates on which these employees have had yearly refresher courses (but only holds an employee ID if they participated to a refresher course)

 

 

What I want to a achieve is:

  • Have a table visual which shows the employees that haven’t passed their certification exam yet > No issues here
  • Have a table visual which shows only the employees that have their certification, and have done their refresher course > Only works when I have bi-directional relationship between the tables.
  • Have a table visual which shows only the employees that have their certification, but haven’t done their refresher course yet > Only works when I have bi-directional relationship between the tables (but then only shows the employees that have participated to a refresher course).

Any thoughts on the best setup for this? Should I just merge the tables in the Query editor?

 

Thanks!

6 Replies

  • SpartaBI's avatar
    SpartaBI
    Community Champion

    Joren if all tables have one row per Employee (as in the employee column is a unique identifier) then regardless your issues, best practice to merge them to one table (and this is of course will make your solve your requirement easily).
    Is this the situation?
    Let me know if you need help.





          

    Showcase Report – Contoso By SpartaBI

  • Joren's avatar
    Joren
    Regular Visitor

    SpartaBI The Employee ID in the "refresher course" table will not have a unique identifier. For the other tables this is the case.

    • SpartaBI's avatar
      SpartaBI
      Community Champion

      Joren ok, so join the ones you can and then you won't need bidirectional. If you want we can do a quick zoom to look together.

  • Joren's avatar
    Joren
    Regular Visitor

    SpartaBI 
    Seems to solve part of it, but for the "table visual which shows only the employees that have their certification, and have done their refresher course", I'm also getting all the certified employees which aren't in the "refresher course" table.