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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

To find out the row item that is active before expired date.

Hello Friends, I would like to kow how many unique contract number that their expired date is still after todays date. For example, the picture attached below show that C00001 is not expired as per todays date and C00002 has expired. So only C00001 can consider active. May I know how can I code this ? 

Screenshot 2022-05-16 110425.png

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous ,

New column

 

=

Switch(True(),

[Contract Expiry Date] >= today(), "Active"

"Expired")

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous ,

New column

 

=

Switch(True(),

[Contract Expiry Date] >= today(), "Active"

"Expired")

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Thank you so much !! this is very helpful !!!😁

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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