Forum Discussion
IF to select a column value
Hi Anonymous
Just a quick note on your formula regarding best practise
we should avoid putting the Table name next to the measure
ref: top 5 best practise tips
praveen_kAs Eno suggested your calc column should work, but I'd suggest appending the result with something so that the reader knows that the value returned is either the Id or the result of a mesaure
Neuro81 Thanks for pointing that out. I just used the quick defaults on this one, but I typically have been referencing my calculated columns the same as normal columns (with table name), and measures as the only outlier (no table name). Must have mis-read this in my reading.
- praveen_k10 years agoHelper I
Anonymous Neuro81 Thanks for your inputs.
This is the actual measure calculation.
I tried using your expression and this is what I get -
On the reports, I would like to view the ID column when when measure2 > 0 and Null/Blank when measure2 < 0.
Hope this clarifies my original question.
- praveen_k10 years agoHelper I
Correction to the above reply -
On the reports, I would like to view the ID column when when measure1 > 0 and Null/Blank when measure1 < 0.
- Anonymous10 years agoNot applicable
praveen_k This initial code is for a Calculated Column.
This should work for a measure:
AsMeasure = IF([measure1] >= 0, VALUES('table'[id]), BLANK())