Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
vmcastejon
Contributor
Contributor

How to improve this SA formula

Hi, how can I improve this formula into Set Analysis

Count(DISTINCT if(Date1 = Date2, Name))

Thanks!

 

Labels (1)
2 Replies
cristianj23a
Partner - Creator III
Partner - Creator III

 

Add the condition in script:

if ( Date1 = Date2 , Name) as Name

Then in the Set analysis  Count (DISTINCT Name)

 

regards.

https://www.linkedin.com/in/cristianjorge/
Do not forget to mark as "Accepted Solution" the comment that resolves the doubt.
marcus_sommer

It depends on your datamodel if you could use SA. You could try it with:

count({< Name = ["=Date1=Date2"}>} Name)

and if not should at least the following approach perform significantly better:

if(Date1=Date2, count(Name))

- Marcus