Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi,
I'm trying to do the following:
ID | A | B | C |
x | 0 | 1 | 2 |
y | 1 | 1 | 1 |
x | 1 | 0 | 0 |
I need to know which ID's have a value >0 for A, B and C.
Based on the table above I expect both x and y to be returned.
I think I need a calculated column for this where I use EARLIER to evaluate all ID's in combination with a couple of IF statements.
Hopefully you can help me in the right direction.
Cheers,
Joost
Solved! Go to Solution.
is this what you want?
Column =
var a=sumx(FILTER('Table','Table'[ID]=EARLIER('Table'[ID])),'Table'[A])
var b=sumx(FILTER('Table','Table'[ID]=EARLIER('Table'[ID])),'Table'[B])
var c=sumx(FILTER('Table','Table'[ID]=EARLIER('Table'[ID])),'Table'[C])
return if(a>0&&b>0&&c>0,"Yes")
Proud to be a Super User!
is this what you want?
Column =
var a=sumx(FILTER('Table','Table'[ID]=EARLIER('Table'[ID])),'Table'[A])
var b=sumx(FILTER('Table','Table'[ID]=EARLIER('Table'[ID])),'Table'[B])
var c=sumx(FILTER('Table','Table'[ID]=EARLIER('Table'[ID])),'Table'[C])
return if(a>0&&b>0&&c>0,"Yes")
Proud to be a Super User!
Yes! thank you @ryan_mayu! I had to add the ELSE value in your solution to make it work. This helps a lot!
you are welcome
Proud to be a Super User!
User | Count |
---|---|
107 | |
87 | |
81 | |
76 | |
71 |
User | Count |
---|---|
112 | |
105 | |
96 | |
74 | |
66 |