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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
jk13
Frequent Visitor

How to Lookup a value from a filtered table

Hi all,

 

i have the following data structure tables:

 

requests

request_id name
1

james

2rob
3sam

 

activities

activity_id request_id event      date
11CREATE2022-01-10
21UPDATE2022-01-12
32CREATE2022-01-12

 

I want to add a column "create_date" to the requests-table with the date from the activities where the event is CREATE.

 

There is a one-to-many relationship between requests and activities.

 

I know this should not be that hard, but somehow i struggle to come op with an easy solution. My idea was using lookupvalue based on the filtered activities-table.

 

Thanks for your help!

1 ACCEPTED SOLUTION
Samarth_18
Community Champion
Community Champion

Hi @jk13 ,

 

Create column with below code:-

create date = 
CALCULATE(
    MAX(activities[date]),
        activities[event] = "CREATE"
)

Output:-

Samarth_18_0-1641978701116.png

 

 

Thanks,

Samarth

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

View solution in original post

1 REPLY 1
Samarth_18
Community Champion
Community Champion

Hi @jk13 ,

 

Create column with below code:-

create date = 
CALCULATE(
    MAX(activities[date]),
        activities[event] = "CREATE"
)

Output:-

Samarth_18_0-1641978701116.png

 

 

Thanks,

Samarth

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.