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: 
Florian49000
Contributor II
Contributor II

Ignore column in pivot table expression

Hello,

I want to know how to ignore a column in a pivot table.

For example, when i choose only a dimension (Référence), and i put the following formula :

sum(if(InDayToTime(timestamp(DateTempsPlanif), timestamp(DateHeureFin), 0, timestamp(DateHeureDebut)),DureePlan))

I have :

Florian49000_0-1667386281731.png

When i add the column 'Cellule', with the same Dimension and formula, i have :

Florian49000_1-1667386362977.png

How can i have the same result as the first table when adding the column 'Cellule' ? (For example, 144 for all columns for HJB 9'' D Renault)

 

Thanks,

Florian

Labels (6)
1 Solution

Accepted Solutions
Florian49000
Contributor II
Contributor II
Author

Thanks ! 

it worked with :

aggr(nodistinct

sum(if(InDayToTime(timestamp(DateTempsPlanif), timestamp(DateHeureFin), 0, timestamp(DateHeureDebut)),TOTAL DureePlan))

,Ref)

View solution in original post

2 Replies
brunobertels
Master
Master

hi may be this 

 

aggr( nodistinct 

sum(if(InDayToTime(timestamp(DateTempsPlanif), timestamp(DateHeureFin), 0, timestamp(DateHeureDebut)),TOTAL DureePlan))

, Ref 

)

Florian49000
Contributor II
Contributor II
Author

Thanks ! 

it worked with :

aggr(nodistinct

sum(if(InDayToTime(timestamp(DateTempsPlanif), timestamp(DateHeureFin), 0, timestamp(DateHeureDebut)),TOTAL DureePlan))

,Ref)