Forum Discussion
Anonymous
7 years agoNot applicable
DAX to replace value with another in same column depending on 2nd column
Hey all, I have a curious problem due to the way data I am using is stored. I have the table below . And I need to replace the ID (column a) of all the rows where Level is = 5, with the ID...
- 7 years ago
Anonymous Could you please check and confirm... whether the data contains same idea (duplicates) at same level (in this case it is 4). Even though it has a different ID.
Anonymous
7 years agoNot applicable
Hey PattemManohar
Thanks for the suggestion. I'm getting the same error.
NewID = VAR _CurrentIdea = ImplementationLevel[Idea] VAR _Level4ID = LOOKUPVALUE(ImplementationLevel[ID];ImplementationLevel[Idea];_CurrentIdea;ImplementationLevel[Level];"4") RETURN IF(ImplementationLevel[Level]="5";_Level4ID;ImplementationLevel[ID])
I've put the Levels in "" as they are formatted as Text (elsewhere I don't want them to be treated as numbers).
Why does it return multiple values? ID column is unique values.
PattemManohar
Community Champion
7 years agoAnonymous Could you please check and confirm... whether the data contains same idea (duplicates) at same level (in this case it is 4). Even though it has a different ID.