Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
FirstSortedValue(COUNTRY, aggr(
(Sum ({1< FLAG = {'MND'},YEAR = {'$(vYear)'},MONTH = {'*'},F_PPP = {'>0'},T_PPP = {0} >} COUNTER) /
sum({1< FLAG = {'MND'},YEAR = {'$(vYear)'} ,MONTH={'*'},F_PPP={'>0'}>} F_CUSTOMER_BASE )
),COUNTRY))
The calculation is made correct. But I need to ignore the selected countries made in the listbox this influences the country returned by the expression.
any suggestions ?
thanks!
BR. Ben
Think you might need a 1 in for firstsortedvalue if you want to ignore all selections or do Country =
Try:
FirstSortedValue({<COUNTRY= >}COUNTRY, aggr(
(Sum ({1< FLAG = {'MND'},YEAR = {'$(vYear)'},MONTH = {'*'},F_PPP = {'>0'},T_PPP = {0} >} COUNTER) /
sum({1< FLAG = {'MND'},YEAR = {'$(vYear)'} ,MONTH={'*'},F_PPP={'>0'}>} F_CUSTOMER_BASE )
),COUNTRY))
Or replace <COUNTRY= > with 1
Hope this helps!
Something like below..
FirstSortedValue(COUNTRY, aggr(
(Sum ({1< FLAG = {'MND'},YEAR = {'$(vYear)'},MONTH = {'*'},F_PPP = {'>0'},T_PPP = {0},COUNTRY = , >} COUNTER) /
sum({1< FLAG = {'MND'},YEAR = {'$(vYear)'} ,MONTH={'*'},F_PPP={'>0'},,COUNTRY = , >} F_CUSTOMER_BASE )
),COUNTRY))
I tried that. The 1 in the formula alreay excludes made selections in the calculation.
thanks anyway
Think you might need a 1 in for firstsortedvalue if you want to ignore all selections or do Country =
Try:
FirstSortedValue({<COUNTRY= >}COUNTRY, aggr(
(Sum ({1< FLAG = {'MND'},YEAR = {'$(vYear)'},MONTH = {'*'},F_PPP = {'>0'},T_PPP = {0} >} COUNTER) /
sum({1< FLAG = {'MND'},YEAR = {'$(vYear)'} ,MONTH={'*'},F_PPP={'>0'}>} F_CUSTOMER_BASE )
),COUNTRY))
Or replace <COUNTRY= > with 1
Hope this helps!
Thanks!
<COUNTRY= > did the trick