'Sisense, display number of days in date filter

Have a date filter on the dashboard that allows for a custom date range:

Dashboard Date Filter

How can I add a the number of days in the filter to a formula? Just trying to show the number of days in column of a pivot table. In this example the date range is 45 days. The dataset doesn't have one record for each day, so a distinct count of days from the data set returns 42.

Is it possible to use the date from and date to filter values in formula? DDIFF([datefilter-from], [datefilter-to])



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source