Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
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
Output Column is Renewal Status column
Solved! Go to Solution.
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"
)
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"
)
Thank you, that worked!!
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.