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
Anonymous
Not applicable

Display only the first date for status changes only

I need help with a large table that I have.

I would like to display only the following columns: ID, TAG, Team, Status and Changed Date.

However, I would like to ignore when the TAG changes (and all other changes), except for Status changes and then only get the FIRST DATE when the Status was changed.

See examples below.

BEFORE

IDTAGTeamStatusChanged Date
007GoodTeam ANew01/06/2020
007BadTeam BNew02/06/2020
007NeutralTeam BClosed02/06/2020
007BadTeam BClosed03/06/2020


AFTER

IDTAGTeamStatusChanged Date
007GoodTeam ANew01/06/2020
007NeutralTeam BClosed02/06/2020

 


I appreciate your help in advance
Thanks

6 REPLIES 6
parry2k
Super User
Super User

@Anonymous try this measure, in the final output table, use this measure for the date and remove another changed date column

 

Measure x = 
VAR __m = CALCULATE ( MIN ( 'Table (4)'[Changed Date] ), ALLEXCEPT ( 'Table (4)', 'Table (4)'[ID],  'Table (4)'[Status] ) )
RETURN IF ( MAX ( 'Table (4)'[Changed Date] ) == __m, __m )

 

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!

Visit us at https://perytus.com, your one-stop shop for Power BI related projects/training/consultancy.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

@parry2k  thank you, but I'm geetting an error "The expression specified in the query is not a valid table expression"

@Anonymous I believe you changed the table and column name in the measure per your model, correct?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

@parry2k yes, I did. This is what I have:

Measure x =
VAR __m = CALCULATE ( MIN ( 'Test Scripts'[Changed Date]),
ALLEXCEPT ( 'Test Scripts', 'Test Scripts'[Work Item Id], 'Test Scripts'[State] ) )
RETURN IF ( MAX ( 'Test Scripts'[Changed Date] ) == __m, __m )

@Anonymous so you are adding this as a measure, can you share the screenshot of the error. This all look ok to me.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

@parry2k 
Thanks for that. I added as a measure and it worked perfectly as a measure.
However, I would like to filter by date using my slicer and unfortunately slicers can't use measures.
Is there any other way for me to do this?

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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