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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors