Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
kevinstanfield
Partner - Creator
Partner - Creator

Using "and" in a set expression

Hi, I'm struggling with the following set analysis - I 'm getting a syntax error

=count({$<[Overdue Account] ={'Y'}>* $ <[Debt Date] = {'$(=max([Debt Date]))'>}[Account Number])

The error is as follows - both elements work individually & the error message shows the correct value for the max([Debt Date]) i.e. 4

The error message is shown on the attachment.

 

As always thanks for looking.

 

Kevin

1 Solution

Accepted Solutions
sunny_talwar

@kevinstanfield Try this

 

=Count({$<[Overdue Account] = {'Y'}, [Debt Date] = {"$(=Max([Debt Date]))"}>}[Account Number])

 

View solution in original post

6 Replies
Anil_Babu_Samineni

Why are you trying cartesian here? How about this? 

=count({$<[Overdue Account] ={'Y'}, [Debt Date] = {"$(=Date(max([Debt Date]), 'Your Format here'))">}[Account Number])

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Vegar
MVP
MVP

Have you tried this expression?

=count({$<[Overdue Account] ={'Y'}> { $ <[Debt Date] = {'$(=max([Debt Date]))'>}[Account Number])

sunny_talwar

@kevinstanfield Try this

 

=Count({$<[Overdue Account] = {'Y'}, [Debt Date] = {"$(=Max([Debt Date]))"}>}[Account Number])

 

kevinstanfield
Partner - Creator
Partner - Creator
Author

Thanks Sunny

kevinstanfield
Partner - Creator
Partner - Creator
Author

Thanks Anil, I went with Sunny's solution but will try this and keep for future reference

kevinstanfield
Partner - Creator
Partner - Creator
Author

Thanks Vegar, I went with Sunny's solution but will take a look at this as well