Forum Discussion
Marit
Helper II
3 years agoSubtract two columns based on conditions
Hi! I try to calculate a new column, where I want to subtract two columns from different tables if one of the columns is not blank. I used this DAX: DB2perareal = CALCULATE(AVERAGE(Slakteegen...
- 3 years ago
So in my understanding, you dont want to substact when that column has blank right.
In that case, you rewrite as folows:if(not(blank(col1)), col1- col2, "Pass your else command")
Pass your else command when blank value appears.
Hope this solves the problem and kindly mark this as solution
saravanan_p
Resolver III
3 years agoSo in my understanding, you dont want to substact when that column has blank right.
In that case, you rewrite as folows:
if(not(blank(col1)), col1- col2, "Pass your else command")
Pass your else command when blank value appears.
Hope this solves the problem and kindly mark this as solution
- saravanan_p3 years ago
Resolver III
msbiuser1 Thanks