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
dpcmpbll
Frequent Visitor

Status change based on a date from a different table

Hi everyone.  I have the first 3 columns of this table:

dpcmpbll_0-1712749175441.png

and I want to add the 4th column based on this table:

dpcmpbll_1-1712749239789.png

Using a Measure would also work for me, if that is a better way to do it.

 

Any help would be very appreciated!

1 ACCEPTED SOLUTION
ryan_mayu
Super User
Super User

@dpcmpbll 

you can try to create a column

Column =
var _ud = maxx(FILTER('Table (2)','Table'[Unit]='Table (2)'[Unit]),'Table (2)'[Upgrade Date])
return if('Table'[Date]>=_ud && not(ISBLANK(_ud)),"Y")
 
11.PNG
 
pls see the attachment below




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @dpcmpbll ,

 

Your solution is great, ryan_mayu . It worked like a charm! Here I have another idea in mind, and I would like to share it for reference.

 

Create a measure:

_upgraded = 
VAR CurrentDate = MAX('Unit'[Date])
VAR CurrentUnit = SELECTEDVALUE('Unit'[Unit])
VAR UpgradeDate = LOOKUPVALUE('Update'[Upgrade Date], 'Update'[Unit], CurrentUnit)
RETURN
IF(
    AND(
        NOT(ISBLANK(UpgradeDate)),
        CurrentDate >= UpgradeDate
    ),
    "Y",
    BLANK()
)

 

Or create a calculated column:

Upgraded = 
VAR UpgradeDate = RELATED('Update'[Upgrade Date])
RETURN
IF(
    AND(
        NOT(ISBLANK(UpgradeDate)),
        'Unit'[Date] >= UpgradeDate
    ),
    "Y",
    BLANK()
)

 

They all work very well.

vhuijieymsft_0-1712815321934.png

 

pbix file is attached.

 

If you have any further questions please feel free to contact me.

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

ryan_mayu
Super User
Super User

@dpcmpbll 

you can try to create a column

Column =
var _ud = maxx(FILTER('Table (2)','Table'[Unit]='Table (2)'[Unit]),'Table (2)'[Upgrade Date])
return if('Table'[Date]>=_ud && not(ISBLANK(_ud)),"Y")
 
11.PNG
 
pls see the attachment below




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Thanks ryan_mayu!  This worked great and I appreciate the quick response.

 

you are welcome





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




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