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: 
Not applicable

calculating the working days per month

I want to calculate the working days for each route I have in my pivot table where the working days is not fixed from month to month. please see attached picture

1 Solution

Accepted Solutions
swuehl
MVP
MVP

I think you want an expression like

=Sum( If(RouteClosed=1,1,0))

evaluated in your partial sum, right?

You can use SecondaryDimensionality() to check if your expression is evaluated in a partial sum, something like

=If( SecondaryDimensionality() >1, /* might need to check if dimensionality is chosen correct for your application, check the HELP file for Dimensionality() and SecondaryDimensionality */

     If(RouteClosed=1,'Yes','No'),

     Sum( If(RouteClosed=1,1,0))

)

View solution in original post

2 Replies
swuehl
MVP
MVP

I think you want an expression like

=Sum( If(RouteClosed=1,1,0))

evaluated in your partial sum, right?

You can use SecondaryDimensionality() to check if your expression is evaluated in a partial sum, something like

=If( SecondaryDimensionality() >1, /* might need to check if dimensionality is chosen correct for your application, check the HELP file for Dimensionality() and SecondaryDimensionality */

     If(RouteClosed=1,'Yes','No'),

     Sum( If(RouteClosed=1,1,0))

)

ziadm
Specialist
Specialist

Make your Route expression in the Pivot Table as below

if(RouteClosed= 1 ,Dual('Yes',1),Dual('No',0))

The make a new expression to sum your routes