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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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!!
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 9 | |
| 7 | |
| 6 | |
| 6 | |
| 5 |
| User | Count |
|---|---|
| 24 | |
| 21 | |
| 17 | |
| 14 | |
| 13 |