Forum Discussion
Anonymous
4 years agoNot applicable
Change column attributes (DAX formula)
I would like to change "Type" column attributes by creating a calculated column. The "type B" is more valuable than the "type A". So, for each person in the table, if we have both types then...
- 4 years ago
Anonymous , A new column
new column =
var _cnt = countx(filter(Table, Table[ID] =earlier([ID]) && [Type] = "Type B") , [ID])
return
if(isblank(_cnt), [Type], "Type B")
amitchandak
4 years agoSuper User
Anonymous , A new column
new column =
var _cnt = countx(filter(Table, Table[ID] =earlier([ID]) && [Type] = "Type B") , [ID])
return
if(isblank(_cnt), [Type], "Type B")