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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.