Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
stjernvd
Partner - Creator
Partner - Creator

Network Days only changes for month and year

Hi,

I need an expression where network days only changes if you select a month and year, and ignores all other filters.

Here is my equation:

=NetWorkDays(Min(Month={$(vMonthMinus10)},Year={$(vYearMinus10)}>}Date),Max(Month={$(vMonthMinus10)},Year={$(vYearMinus10)}>}Date))

However, when I select other filters, network days changes, and instead it should remain the same for each month and year, regardless of other filters.

So for example, January 2015 has 22 business days, I want it to always be 22 business day for January 2015 (trade month = Jan and trade year = 2015) regardless of other filters.

How do I set this in my expression?

FYI: vYearMinus10 = 2015 and vMonthMinus10 = January

1 Solution

Accepted Solutions
sunny_talwar

May be this:

=NetWorkDays(Min({1<TradeMonth={$(vMonthMinus10)},TradeYear={$(vYearMinus10)}>}TradeDate),Max({1<TradeMonth={$(vMonthMinus10)},TradeYear={$(vYearMinus10)}>}TradeDate))

View solution in original post

4 Replies
sunny_talwar

May be this:

=NetWorkDays(Min({1<TradeMonth={$(vMonthMinus10)},TradeYear={$(vYearMinus10)}>}TradeDate),Max({1<TradeMonth={$(vMonthMinus10)},TradeYear={$(vYearMinus10)}>}TradeDate))

Chanty4u
MVP
MVP

NetWorkDays(Min(TradeMonth={$(vMonthMinus10)},TradeYear={">=$(vYearMinus10)}>}TradeDate),Max(TradeMonth={$(vMonthMinus10)},TradeYear={$(vYearMinus10)"}>}TradeDate))




stjernvd
Partner - Creator
Partner - Creator
Author

it works thank you!:)

sunny_talwar

Awesome, I am glad it worked