Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

Announcements
See why BI users voted Qlik #1 in 11 categories. GET REPORT
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Contributor III
Contributor III

Show value for the current month

Hi! I have an agreement column for different projects, and I want to show the agreement for each month on my pivot table, but only for this month, I want to show the agreement divided by the number of working days until today.

What I want to have is:

For the current month=  sum([agreement])/
NetWorkDays(MonthStart(today()),today()) ,

For all the other months: sum([agreement]).

how can I show that in one pivot table?

 

Regards,

Labels (2)
1 Solution

Accepted Solutions
Highlighted
Contributor III
Contributor III

I fixed my problem by using the expression below,

if([MonthField] >= month(today()),sum([agreement])/NetWorkDays(MonthStart(today()),today()),if([MonthField] < month(today()), sum([agreement]))).

View solution in original post

1 Reply
Highlighted
Contributor III
Contributor III

I fixed my problem by using the expression below,

if([MonthField] >= month(today()),sum([agreement])/NetWorkDays(MonthStart(today()),today()),if([MonthField] < month(today()), sum([agreement]))).

View solution in original post