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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.