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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Search value from one table to another with a condition

Hello all!

 

I need your help to solve this case :).

 

I have two different tables. The first one (EV_Tickets) contains the ticket number (RFC_NUMBER) and a Request ID. The second table (EV_Actions) contains multiple actions for each ticket and is connected with the first table using ACTION_REQUEST_ID column with REQUEST_ID, which may contain multiple values of REQUEST_ID.

 

The idea is to create a column in EV_Tickets that can extract the following information: extract the GROUP in EV_Actions table but only the one that has ACTION_END_DATE_UT column empty.

 

Here an example:

 

EV_tickets table

RFC_NUMBERREQUEST_ID
P180801_000033837296

 

EV_Actions

ACTION_REQUEST_IDACTION_CREATION_DATEACTION_END_DATE_UTGROUP
83729601/08/2018 8:0401/08/2018 8:04Service Desk N1
83729601/08/2018 8:0601/08/2018 8:06 
83729601/08/2018 8:0601/08/2018 8:06 
83729601/08/2018 8:0601/08/2018 8:06Service Desk N1
83729601/08/2018 8:0601/08/2018 8:06Service Desk N1
83729601/08/2018 8:0601/08/2018 8:06 
83729601/08/2018 8:07 Desarrollo
83729601/08/2018 8:0701/08/2018 8:07Service Desk N1
83729601/08/2018 8:0801/08/2018 8:08Service Desk N1
83729601/08/2018 8:0801/08/2018 8:08Service Desk N1
83729602/08/2018 5:4002/08/2018 5:40Desarrollo
83729602/08/2018 5:4102/08/2018 5:41Desarrollo
83729602/08/2018 5:4202/08/2018 5:42Desarrollo

 

In this example, I need to extract "Desarrollo" GROUP as it's the only one that has the end date empty.

 

I tried with Lookup function and filters but I didn't managed to extract it correctly.

 

Here you have the link to the file if you need it to test.

 

Link to report

 

Thanks a lot 🙂

1 ACCEPTED SOLUTION
Zubair_Muhammad
Community Champion
Community Champion

@Anonymous 

 

As a calculated column, try this

 

Action Group =
CONCATENATEX (
    FILTER (
        RELATEDTABLE ( EV_Actions ),
        ISBLANK ( EV_Actions[ACTION_END_DATE_UT] )
    ),
    [GROUP],
    ","
)

View solution in original post

2 REPLIES 2
Zubair_Muhammad
Community Champion
Community Champion

@Anonymous 

 

As a calculated column, try this

 

Action Group =
CONCATENATEX (
    FILTER (
        RELATEDTABLE ( EV_Actions ),
        ISBLANK ( EV_Actions[ACTION_END_DATE_UT] )
    ),
    [GROUP],
    ","
)
Anonymous
Not applicable

It worked perfectly!!! Thanks a lot for your help and fast reply 🙂

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.

Top Solution Authors
Top Kudoed Authors