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
nabu
Frequent Visitor

Check if a contract has a future contract associated to it

Hello, I have a file with contracts that are categorized by status as either expired, active or future based on the valid from and valid to dates. I want to add a Renewal Status column that checks unique contract numbers and lets me know that contract number has a future contract associated with it or not like the output example below.

 

Thank you in advance

 

Input

nabu_1-1655156282937.png

 

 

Output Column is Renewal Status column

nabu_2-1655156306376.png

 

1 ACCEPTED SOLUTION
vapid128
Solution Specialist
Solution Specialist

emmmmmmmm.

add colnum

index = 

switch(true(),

[Status]="Expired",1,

[Status]="Avtive",2,

[Status]="Furture",3,

0

)

 

add colnum

Renewal Status= 

If(calculate(max(index),allexpert(table, table[Contract #])=3,

"Future contract exists",

"Futrue contract does not exist"

)

View solution in original post

2 REPLIES 2
vapid128
Solution Specialist
Solution Specialist

emmmmmmmm.

add colnum

index = 

switch(true(),

[Status]="Expired",1,

[Status]="Avtive",2,

[Status]="Furture",3,

0

)

 

add colnum

Renewal Status= 

If(calculate(max(index),allexpert(table, table[Contract #])=3,

"Future contract exists",

"Futrue contract does not exist"

)

nabu
Frequent Visitor

Thank you, that worked!!

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.