Forum Discussion
praveen_k
Helper I
10 years agoIF to select a column value
I am trying to use a IF statement to select a column. I have a measured column which calculates percentage change. When the percentage change (measure column) is greater than 0, ID column should be se...
v-caliao-msft
Microsoft Employee
10 years agoHi Praveen_k,
According to your description, you need to display the ID which have measure value >0, right?
If that is the case, you can create a calculated column to display if the current have measure value >0 or not. I have tested it on my local environment, here is the sample DAX expression below for you reference.
Check = IF(IFfunction[measure]<0,1,0)
Sciler = IF(CALCULATE(SUM(IFfunction[Check]),ALLEXCEPT(IFfunction,IFfunction[id]))>0,"<0",">0")
Regards,
Charlie Liao