Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Ame
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
Ame
Contributor III
Contributor III
Author

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
Ame
Contributor III
Contributor III
Author

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]))).