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
ChrisIgnyte
New Member

Select a Date Based on Condition without Creating Another Table

Below is a sample of my data:

 

application_id-status_code-status_date

00001-020-09/25/2021

00001-025-12/31/2021

00002-061-01/05/2022

00002-020-06/01/2021

 

I am trying to add a new column identifying the dates where the status code is equal to "020". I can do this by creating a new table and relating the two tables together, but I would like to avoid creating a new table.

2 REPLIES 2
tackytechtom
Most Valuable Professional
Most Valuable Professional

Hi @ChrisIgnyte ,

 

Not sure whether I am on the right track, but are you looking for something like this?

tomfox_0-1647540310927.png

Here the code:

TomsStatusColumn = 
IF ( Table[status_code] = 20, Table[status_date], BLANK() )


Does this help? 🙂

 

/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/



Did I answer your question➡️ Please, mark my post as a solution ✔️

Also happily accepting Kudos 🙂

Feel free to connect with me on LinkedIn! linkedIn

#proudtobeasuperuser 

This is close. Ideally, I would like it to fill all the way down for application_id.

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.