Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
I have the attached QV document with two text boxes: one for the company names and another one for the revenue of each company.
I want to create a third text box showing only the name of the company with highest revenue. Then, as soon as I will add more companies in the QV document I always want this third box to show the name of the company with the highest revenue.
Do you know how to do that ?
Thanks,
dani
=firstsortedvalue(aggr(concat(COMPANY,', '),REVENUE),-aggr(max(REVENUE),REVENUE))
=FirstSortedValue(COMPANY, -REVENUE)
Great !!! Thanks Gysbert ! That works now !
One more question...
In case the highest revenue is the same for two companies, what I need to do to make sure than the third text box displays the name of the two companies then ?
thanks,
dani
=firstsortedvalue(aggr(concat(COMPANY,', '),REVENUE),-aggr(max(REVENUE),REVENUE))
Thanks !