Forum Discussion
mahra-in
Helper II
8 years agolook for match with one exception
I use the below measure for identifying the spend against the filter in it Contract Reference = VAR Test = COUNTROWS ( FILTER ( 'Agreement', 'Agreement'[Supplier Group] = Siev...
- 8 years ago
Hi mahra-in,
If I understand you correctly, the formula below should work in your scenario. :smileyhappy:
Contract Reference = VAR Test = COUNTROWS ( FILTER ( 'Agreement', 'Agreement'[Supplier Group] = Sievo[Supplier group] && 'Agreement'[Subcategory] = Sievo[Type] && ( 'Agreement'[Entity] = "Group" || 'Agreement'[Entity] = Sievo[Entity] ) && Sievo[PO date] > 'Agreement'[Effective date].[Date] && Sievo[PO date] < 'Agreement'[End date].[Date] ) ) RETURN IF ( Test = 0, "No", "Yes" )Regards
v-ljerr-msft
Microsoft Employee
8 years agoHi mahra-in,
If I understand you correctly, the formula below should work in your scenario. :smileyhappy:
Contract Reference =
VAR Test =
COUNTROWS (
FILTER (
'Agreement',
'Agreement'[Supplier Group] = Sievo[Supplier group]
&& 'Agreement'[Subcategory] = Sievo[Type]
&& ( 'Agreement'[Entity] = "Group"
|| 'Agreement'[Entity] = Sievo[Entity] )
&& Sievo[PO date] > 'Agreement'[Effective date].[Date]
&& Sievo[PO date] < 'Agreement'[End date].[Date]
)
)
RETURN
IF ( Test = 0, "No", "Yes" )
Regards