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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

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

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.