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! Learn more

Reply
ReadTheIron
Helper III
Helper III

Creating text column with values from two related tables

I'm trying to create a text column displaying information from two related tables:

Asset List
AssetFullLatest Failure
Asset11/2/2021
Asset23/6/2021
Asset34/10/2021

 and

Daily Reports
AssetFullAsset ID
Asset11
Asset22
Asset11
Asset33

 

They have a many-to-one relationship, Daily Reports to Asset List. I'm trying to create a text column that displays Asset ID and Latest Failure. 

Asset List
AssetFullLatest FailureIDDate
Asset11/2/20211: 1/2/21
Asset23/6/20212: 3/6/21
Asset34/10/20213: 4/10/21

 

I've tried IDDate = FILTER(RELATED('Daily Reports'),'Asset List'[AssetFull])) & ":" & 'Asset List'[Latest Failure], but this gives me a syntax error.

 

Relatedly, when I was testing this with values in the same table, the date value displayed as the full date/time (Asset1: 01/02/2021 12:00 AM) - is there a way to display only the short date in the new column?

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @ReadTheIron ,

Here are the steps you can follow:

1. Create calculated column.

Date =
VAR _1=CALCULATE(MAX('Daily Reports'[Asset ID]),FILTER(ALL('Daily Reports'),'Daily Reports'[AssetFull]=EARLIER('Asset List'[AssetFull])))
return
_1&":"&[Latest Failure]

2. Result:

vyangliumsft_0-1637113677440.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi  @ReadTheIron ,

Here are the steps you can follow:

1. Create calculated column.

Date =
VAR _1=CALCULATE(MAX('Daily Reports'[Asset ID]),FILTER(ALL('Daily Reports'),'Daily Reports'[AssetFull]=EARLIER('Asset List'[AssetFull])))
return
_1&":"&[Latest Failure]

2. Result:

vyangliumsft_0-1637113677440.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

amitchandak
Super User
Super User

@ReadTheIron , Filter create a table or filter in measure or column?

 

related can not be used to bring data from many side

 

what output you need ?

 

refer 4 ways to copy data from one table to another
https://www.youtube.com/watch?v=Wu1mWxR23jU
https://www.youtube.com/watch?v=czNHt7UXIe8

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

This is the output I need:

Asset List
AssetFullLatest FailureIDDate
Asset11/2/20211: 1/2/21
Asset23/6/20212: 3/6/21
Asset34/10/20213: 4/10/21

 

Thanks for the video links; I'm reviewing them now.

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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