Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
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:
Solved! Go to Solution.
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
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
Seems to be correct. I was about to write the same logic.
@Marit Kindly mark as solution .
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
25 | |
20 | |
20 | |
14 | |
13 |
User | Count |
---|---|
43 | |
37 | |
25 | |
24 | |
22 |