Forum Discussion
nareshr89
Helper II
3 years agoDAX Help
I have a column "Table[ML]" with values from 1 to 12 and the same values in Dimension table Table1[ML] When i select a value ex 1 in Dimension table, the main table column needs to be sliced with...
amitchandak
Super User
3 years agonareshr89 , Option one they are joined
if(selectedvalues(Table1[ML]) =1, calculate(Sum(Table[Value]), filter(All(Table1), Table1[ML] in {1,2})), Sum(Table[Value]))
in case they are not joined
if(selectedvalues(Table1[ML]) =1, calculate(Sum(Table[Value]), filter((Table), Table[ML] in {1,2})), calculate(Sum(Table[Value]), filter( Table, Table[ML] in Values(Table1[ML]) ) ) )