Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I use the below measure for identifying the spend against the filter in it
Contract Reference =
VAR Test =
COUNTROWS (
FILTER (
'Agreement',
'Agreement'[Supplier Group] = Sievo[Supplier group]
&& 'Agreement'[Subcategory] = Sievo[Type]
&& 'Agreement'[Entity] = Sievo[Entity]
&& Sievo[PO date] > 'Agreement'[Effective date].[Date] && Sievo[PO date] < 'Agreement'[End date].[Date]
)
)
RETURN
IF ( Test = 0, "No", "Yes" )
But in the above measure I have to insert one exclusion as
If the value of Entity = Group, "&& 'Agreement'[Entity] = Sievo[Entity]" shoud not apply
If the Entity is any value but not Group then the filter "&& 'Agreement'[Entity] = Sievo[Entity]" has to apply on the above measure.
Please help
Solved! Go to Solution.
Hi @mahra-in,
If I understand you correctly, the formula below should work in your scenario.
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
Hi @mahra-in,
If I understand you correctly, the formula below should work in your scenario.
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
User | Count |
---|---|
76 | |
75 | |
46 | |
31 | |
27 |
User | Count |
---|---|
99 | |
91 | |
51 | |
49 | |
46 |