Forum Discussion
Filter based on Table
Yes when using, the selected value, it is showing it in the dax, but when i use switch command, i dont see any of my tables:
is this becuase Create a sum of Difference measure;
(Difference_Table1,Difference_Table2,Difference_table3,Difference_table4) are calculated columns not a measure.
if they are columns what could be the solution? i would highly appreciate.
- Anonymous4 years agoNot applicable
What is a=1?
Is 1,2,3,4 name of your columns or do have names as Table1,Table2,Table3 and Table4?
If Difference1,Difference2.. are columns then you will need to specify an aggregation as
Difference=
var a=Test['column_name']
return
SWITCH(TRUE(),
a=Table1,SUM([Difference_Table1]),a=Table2,SUM([Difference_Table2]),a=Table3,SUM([Difference_Table3]),a=Table4,SUM([Difference_Table4]),[Sum_Diff])
I hope that will solve your problem.
Else instead of columns you can create DifferenceTable1,DifferenceTable2... as measures and not columns.
Thanks,
Sanket - Yaya19904 years agoFrequent Visitor
a = 1 , 1,2,3,4 is the name of my columns