Forum Discussion
Anonymous
5 years agoNot applicable
Dax Help!!
Hi, I'm looking for a DAX formula which can help me get the below mentioned results. Account Name Country Revenue XYZ Singapore 1000 Ignore This XYZ Thailand 800 Ignore Th...
- 5 years ago
Anonymous ,
new column =
var _max = maxx(filter(Table, [Account Name] = earlier([Account Name])),[Revenue])
return
if( [Revenue] =_max, [Country],blank())
amitchandak
5 years agoSuper User
Anonymous , Try like
new column =
var _max = maxx(filter(Table, [Account Name] = earlier([Account Name])),[Revenue])
return
if( [Revenue] =_max, "Consider this", "Ignore This")
- Anonymous5 years agoNot applicable
Hi amitchandak ,
Thank you for your swift response.
I'm looking for the result as below:
Account Name Country Revenue Country_Result XYZ Singapore 1000 XYZ Thailand 800 XYZ Vietnam 900 XYZ Sri Lanka 1200 Sri Lanka ABC Singapore 400 Singapore DEF Philippines 200 Philippines If the the critiria isn't matching, I should get a blank else the Country name.
- amitchandak5 years agoSuper User
Anonymous ,
new column =
var _max = maxx(filter(Table, [Account Name] = earlier([Account Name])),[Revenue])
return
if( [Revenue] =_max, [Country],blank())