We will now create a function to obtain the maximum value for sum_amount present in our report. We will then use the said value to obtain its corresponding customer and apply a bold style onto it.
MaxSumAmount
sum_amount
=IF([sum_amount]=[MaxSumAmount];"true";"false")
This formula will analyze row by row if the current value of sum_amount equals MaxSumAmount (the maximum value for sum_amount). If such a condition is true
, the name of the customer shall be put in bold, if it is false
, it will retain the current style.
We created a function Maximum of the type Summary so that it obtains the greatest value for sum_amount. We selected the message object, which contains the description of the current customer, and configured its style to be Style.bold when the current customer is the one who possesses the maximum amount value.