Forum Discussion
Anonymous
4 years agoNot applicable
DAX to retrive a value from multiple column based on condition.
Hello Community, I need help in writing a DAX for retrieving a value from multiple column based on condition. For example from column "Name" i need to select only Alice and display the sum of...
- 4 years ago
Anonymous , New measure
= sum(Table[Salary]) + Sum(Table[Bonus])
If you need you column
Sumx(filter(Table, [Name] + earlier([Name]) ) , [Salary] +[Bonus])
- 4 years ago
Hi,
Please check the below picture and the attached pbix file.
It is for creating a new column.
Total CC = VAR _condition = Data[Name] = "Alice" RETURN ( Data[Salary] + Data[Bonus] ) * DIVIDE ( _condition, _condition )
amitchandak
Super User
4 years agoAnonymous , New measure
= sum(Table[Salary]) + Sum(Table[Bonus])
If you need you column
Sumx(filter(Table, [Name] + earlier([Name]) ) , [Salary] +[Bonus])