Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi,
I am using this measure to find the variance between two values in different table.
Diff = Sum(2022_comparison[owner]) - sum(2021_comparison[owner])
The measure is working fine as needed, but I wanted to see if it's possible to not show the difference if both the values dont exist. Here you can see no values for Owner 2022 in 5/25 to 5/31, but the diff still shows -94093, -94054, -93996 and so. That's what I dont want to be shown on here.
Can someone please advise? Thank you!
Solved! Go to Solution.
@sraj , Try a measure like
Diff =
Var _1 = Sum(2022_comparison[owner])
var _2 = sum(2021_comparison[owner])
return
if( not(isblank(_1)) && not(isblank(_2)) , _1-_2 , blank())
@sraj , Try a measure like
Diff =
Var _1 = Sum(2022_comparison[owner])
var _2 = sum(2021_comparison[owner])
return
if( not(isblank(_1)) && not(isblank(_2)) , _1-_2 , blank())
User | Count |
---|---|
99 | |
87 | |
80 | |
76 | |
71 |
User | Count |
---|---|
112 | |
105 | |
96 | |
74 | |
66 |