New to Qlik Sense

If you’re new to Qlik Sense, start with this Discussion Board and get up-to-speed quickly.

Announcements
cancel
Showing results for
Did you mean:
Creator II

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)

1 Solution

Accepted Solutions
MVP

May be using if statement

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

3 Replies
MVP

May be using if statement

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

MVP

Or this

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

MVP

Or maybe just using the p() function:

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