3 Replies Latest reply: Mar 21, 2017 8:39 AM by Stefan Wühl

# Return a full set of dates when no selection is made in set analysis

Hi,

In the formula below, I have to make a selection to make it work, what I would like is when there is no selection in Master Month Date for the formula to return the full list of dates, then when dates are selected, just returns those dates.

Thanks.

count(DISTINCT {\$<[MonthLogged_Open_Balance]=[Master Month Date],[Related_Open_Balance]={'YES'}>} %KEY_CaseIDR5_Open_Balance)

• ###### Re: Return a full set of dates when no selection is made in set analysis

May be using if statement

Count(DISTINCT {\$<[Related_Open_Balance]={'YES'}>} If([MonthLogged_Open_Balance] = [Master Month Date], %KEY_CaseIDR5_Open_Balance))

• ###### Re: Return a full set of dates when no selection is made in set analysis

Or this

Count(DISTINCT {\$<%KEY_CaseIDR5_Open_Balance = {"=[MonthLogged_Open_Balance] = [Master Month Date]"}[Related_Open_Balance]={'YES'}>} %KEY_CaseIDR5_Open_Balance)

• ###### Re: Return a full set of dates when no selection is made in set analysis

Or maybe just using the p() function:

count(DISTINCT {\$<[MonthLogged_Open_Balance]= p( [Master Month Date]) ,[Related_Open_Balance]={'YES'}>} %KEY_CaseIDR5_Open_Balance)