Qlik Community

New to Qlik Sense

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

Announcements
Customer & Partners, DEC. 9, 11 AM ET: Qlik Product & Strategy Roadmap Session: Data Analytics REGISTER NOW
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]))).

View solution in original post