Forum Discussion
Quynhtran
5 years agoRegular Visitor
Return values from conditional column within each group
Hello everybody, I would like to create new column [Name Revised], which updates the correct name for each ID. For example, if there are in the same ID, the correct name is the name that have the...
- 5 years ago
Name Revised CC =
VAR _currentID = Data[ID]
VAR _mindate =
CALCULATE ( MIN ( Data[Date] ), FILTER ( Data, Data[ID] = _currentID ) )
RETURN
CALCULATE (
DISTINCT ( Data[Name] ),
FILTER ( Data, Data[ID] = _currentID && Data[Date] = _mindate )
)
Jihwan_Kim
Super User
5 years ago
Name Revised CC =
VAR _currentID = Data[ID]
VAR _mindate =
CALCULATE ( MIN ( Data[Date] ), FILTER ( Data, Data[ID] = _currentID ) )
RETURN
CALCULATE (
DISTINCT ( Data[Name] ),
FILTER ( Data, Data[ID] = _currentID && Data[Date] = _mindate )
)
Quynhtran
5 years agoRegular Visitor
Thanks Jihwan,
It works perfectly.