Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

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/

thanks @Ashish_Mathur 

You are welcome.


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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.