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
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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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