Hi @Ramole ,
That depends on what would you like to display. And first of all, you need to fill the "Total Loaned Amount" column with actual number of each customer.
After fulfilled above operation, assuming you would let users to see customers in the Gallery of Loan Managment, you could set the Label's Color to:
If((LookUp(Contractor,Name=Self.Text).'Credit Line'-LookUp(Contractor,Name=Self.Text).'Totle Loan Amount')>0,Green,Red)
So if "the customer used all the credit line allocated within the Loan Management list", the text of customer name would show in red, else would show in green. You could also add a Label beside the customer name label and set the Text to below formula to display the credit balance:
Text(LookUp(Contractor,Name= ThisItem.Contract.Value).'Credit Line'-LookUp(Contractor,Name=ThisItem.Contract.Value).'Totle Loan Amount')
Hope this helps.
Best regards,
Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.