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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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