0 Replies Latest reply: Jul 23, 2018 7:19 AM by Giorgio Meda RSS

    Selecting a single value of a field, according to specific condition

    Giorgio Meda

      Hello everybody,


      I have a fomula that displays the maximum aggregated value of a certain field. This expression is shown here below:


      '*'&num(MAX(TOTAL AGGR(sum({<$(v_CY), $(v_CY_BP), CD_SCENARIO={'ACT'}, [DMD Code] =- {'ND'}>}[AM_NET_SALES]), [Dealer Name]))/1000,'#,###.0')&' k$'


      I would like to know which is the formula to display the Deler Name that corresponds to the maximum value, obtained with the formula above.


      Thank you very much.