Forum Discussion
Vick143
3 years agoFrequent Visitor
Calculated column with conditions
Hi, I am trying to create a new calculated column called Inforce by contract group using the following data sample, I have added that column to showcase expected result. These are the conditions for...
- 3 years ago
Hi, Vick143
You can try the following methods.
Result = CALCULATE ( MAX ( 'Table'[Inforce Flag] ), FILTER ('Table', [Contract Group] = EARLIER ( 'Table'[Contract Group] ) && [Period] = EARLIER ( 'Table'[Period] ) ) )Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-zhangti
Community Support
3 years agoHi, Vick143
You can try the following methods.
Result =
CALCULATE ( MAX ( 'Table'[Inforce Flag] ),
FILTER ('Table',
[Contract Group] = EARLIER ( 'Table'[Contract Group] )
&& [Period] = EARLIER ( 'Table'[Period] )
)
)
Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.