Forum Discussion
Trist
5 years agoFrequent Visitor
IF Issue in Measure
Hello Everybody, how are you? ı have question about writing a row context dax in a ıf clause . ı want to wrıte this query(*1) ınsıde of this query(*2). how to do that do u think? *1: IF ...
edhans
Community Champion
5 years agoSWITCH will work. You shouldn't name your measure VALUES - that is a function in DAX. Call it something else.
New Measure =
IF(
ISBLANK( [Day] ),
BLANK(),
SWITCH(
TRUE(),
A[X] = "H",
A[Y] * A[Z] * ( -1 ),
A[X,] = "S",
A[Y] * A[Z],
0
)
)