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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
thiago6661
New Member

measure that "join" two tables - tickets

Hello,

I'm having trouble creating a measure that "join" two tables.
I would like to calculate the tickets that were not assigned by a technician.
For this, I have two tables:

 

tickets -> contains status (open, solved)

tickets_user -> informs who is associated with the ticket (requester or tech)

 

ticket_user.PNGticket_table.PNG

I would like to create a rule where:

Tell
1. ticket_status = 2 from ticket_table
2. ticket_assign_type <> 2 from ticket_user

 

In this way, I will know the open calls that were not associated with a technician.

can you help me?

1 REPLY 1
Anonymous
Not applicable

Depending on other requirements, it could be something similar to this:

 

 

[# tickets] :=
	CALCULATE(
		DISTINCTCOUNT( ticket_user[ticket_id] ),
		KEEPFILTERS( ticket_table[status] = 2),
		KEEPFILTERS( ticket_user[assign_type] <> 2 )
	)

 

Of course, you have to have a relationship between the tables based on ticket_id. Your fact table is ticket_user (the many-side) and a dimension is ticket_table (the one-side). The field ticket_id in both tables should be hidden.

 

Best

Darek

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.