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: 
Cbhuvi27
Contributor III
Contributor III

Total in pivot table not working

Hello All,

Hello all,

I'm using the following code to show the Total header, however it doesn't work in the Total header but works in the Straight table.

=Pick(Wildmatch((IF(Type='A',Test1,Test2)),'*HAL*','*PAL*'),
'Yes','No')

3 Replies
TauseefKhan
Creator III
Creator III

Hi @Cbhuvi27,
Pivot tables require explicit aggregation. The total row in a pivot table aggregates all the rows, and you need to ensure the expression can handle this.

Check with this:
=Pick(
WildMatch(
Aggr(
Only(IF(Type='A', Test1, Test2)),
Dimension1, Dimension2, ... // Replace Dimension1, Dimension2, etc. with your actual dimension names
),
'*HAL*',
'*PAL*'
),
'Yes',
'No'
)

**********Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.******** 

Cbhuvi27
Contributor III
Contributor III
Author

its not working 🙂 . Basically what I gave is working in straight table

eneny
Contributor
Contributor

Select all rows and columns in the workbook then select format coulumns show all. Same thing happens to me when I goof up and set either a row height or a column width to 0 or hidden.