Forum Discussion
Anonymous
3 years agoNot applicable
Measures need to replace by Table joins
i have to replace a meaure with table which is like below measure= if (sum(Total)=5, 2.33, if(sum(Total)=6,4.99, if(sum(Total)=9,8.33.......) continues...... i have above set of statements which...
rajulshah
Resident Rockstar
3 years agoAnonymous
You can use the following DAX measure:
Measure =
VAR SelectedTotalValue =
SELECTEDVALUE ( Table[Total] )
VAR TotalValue =
SUM ( Table1[Total] )
RETURN
CALCULATE (
MAX ( Table[Value] ),
FILTER ( Table, SelectedTotalValue = TotalValue )
)
Here, Table is the one that you have created and Table1 is the table from which you are calculating the sum.
Please let me know if this didn't work.