Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

Mapping between four table

Hi, I have four type of tables and I must map them to get count result for reporting but I have issues about it. Please help me on solving this problem. First I want to show you my minimal design this columns needed for mapping

 

My employee table

idname

position_id

1Nabi

1

2John

2

3Jack

1

 

My position table

idname
1Software Developer
2Data analyst

 

My training table

idname
1Power bi
2SQL
3C#

 

My pos_tra_mapping table. This is how I managed training for position like(man - for mandatory, asap - for As soon as possible, pref - for Preffered trainings)

 

idposition_idtraining_idtype
111man
212pref
313asap
422asap

 

And finally my emp_tra_mapping. Is employee passed this trainings or not. At the end I must create matrix for trainings will show after this table how my report must look like.

idemp_idtraining_idtraining_date
1112020-06-01
212null
3132019-06-01
4222020-06-01
531null
632null
7332019-06-01

 

Now lets look at my final report. Must train gets from emp_tra_mapping where his position in pos_tra_mapping for selected training is "man". Mandatory already trained gets count from emp_tra_mapping where not null and where his position in pos_tra_mapping for selected training is "man". pref and asap also as an mandatory

CoursesPower biSQLC#
Mandatory must train200
Mandatory already trained100
ASAP must train012
ASAP already trained012
Pref must train020
Pref already trained000

 

Hope you understand me what I want 😞

4 Replies

  • Hi Anonymous ,

     

    Just want to check if you have got any relationships between these tables set-up in Power BI?

    If yes, can you share screenshot on the data model please?

     

    Thanks,

    Pragati

     

    • Anonymous's avatar
      Anonymous
      Not applicable

       

      Yes sure this is my data model, I already merged tables and already done with this but I need help on modeling report like my excell file.

      • lbendlin's avatar
        lbendlin
        Super User

        Based on your business logic follow the filter direction arrows in your data model and see if they allow you to apply the desired filters.  Adjust the direction as needed.

  • Anonymous's avatar
    Anonymous
    Not applicable

     

    This is the excell form, and what I wnt from my power bi to create this kind of table. Im having issues of percentage in rows