Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
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 "Salary" and "Bonus" in column "Total"
Thanks in advance,
Saurav
Solved! Go to Solution.
@Novice100 , New measure
= sum(Table[Salary]) + Sum(Table[Bonus])
If you need you column
Sumx(filter(Table, [Name] + earlier([Name]) ) , [Salary] +[Bonus])
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 )
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 )
@Novice100 , New measure
= sum(Table[Salary]) + Sum(Table[Bonus])
If you need you column
Sumx(filter(Table, [Name] + earlier([Name]) ) , [Salary] +[Bonus])
User | Count |
---|---|
11 | |
9 | |
8 | |
7 | |
5 |
User | Count |
---|---|
24 | |
16 | |
15 | |
10 | |
7 |