cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Mal_Sondh
Helper II
Helper II

Setting up relationships between 3 tables - CrossFilter?

Hi All,

 

I have the attached 3 tables and modeled as shown.

Snapshot table (1)

Exceptions Table (2)

Employee Table (3)

 

I need to show the emloyee information for where they have an exception (Exception Table), how do i create a link between the Exceptions table and the Employee Table - this would be a many to many relationship.
Screenshot 2021-05-25 at 21.49.48.pngI would like to have a visual table to show all the employee information for each Exception type and snapshot key.

 

Any ideas?  Can I use CrossFilter and if so, how would that work?

I had tried this but it didnt give me the ability to view the employee table attributes..

 

Measure = CALCULATE(COUNT(Exceptions [Exception Type], CROSSFILTER(Exceptions [Snapshot Key],Snapshot [Snapshot Key],Both),

CROSSFILTER(Employee [Snapshot Key],Snapshot [Snapshot Key],Both))

 

 

 

 

 

 

Snapshot Table:

Snapshot KeyMonth EndVersionSnapshot Date
530-Apr-21106-May-21
431-Mar-21208-Apr-21
331-Mar-21101-Apr-21
228-Feb-21105-Mar-21
131-Jan-21105-Feb-21

 

Exceptions Table:

 

Exception IDException TypeException EmployeeSnapshot Key
1Missing DataEmp1114
2Missing DataEmp2224
3Missing DataEmp3334
4Duplicate NameEmp4443
5Duplicate NameEmp5553

 

Employee Table:

Employee NumberDivisionDepartmentSnapshot Key
Emp111AAABBB1
Emp222BBBCCC1
Emp333CCCDDD1
Emp444AAACCC1
Emp555BBBCCC1
Emp111AAABBB2
Emp222BBBCCC2
Emp333CCCDDD2
Emp444AAACCC2
Emp555BBBCCC2
Emp111AAABBB3
Emp222BBBCCC3
Emp333CCCDDD3
Emp444AAACCC3
Emp555BBBCCC3
Emp111AAABBB4
Emp222BBBCCC4
Emp333CCCDDD4
Emp444AAACCC4
Emp555BBBCCC4
Emp111AAABBB5
Emp222BBBCCC5
Emp333CCCDDD5
Emp444AAACCC5
Emp555BBBCCC5
1 ACCEPTED SOLUTION

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

5 REPLIES 5
Ashish_Mathur
Super User
Super User

Hi,

Show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Example as follows - the snapshot Key (will be represented by a date picker as a filter) - but for the exceptions noted, i want to see all employee details - in this example i have reduced the size of the employee table but as is a lot wider in reality.

 

 

Screenshot 2021-05-26 at 07.02.46.png

The join between the Exceptons and Employee table is the issue..

 

Any help would be appreciated.

 

Thanks

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

thanks @Ashish_Mathur 

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
PBI_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power BI October Update 2021.jpg

Power BI Release

Click here to read more about the October 2021 Release!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Teds Dev Camp Oct. 2021 768x460.jpg

Power BI Dev Camp - October 28th, 2021

Mark your calendars and join us for our next Power BI Dev Camp!