Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
GraceGao
Creator
Creator

pivot table

Hi Experts,

can Qlik sense realize below layout?  Please advise. Thanks.

GraceGao_0-1607360460380.png

 

1 Reply
eliran
Creator III
Creator III

Hi,

 

It can work, the idea behind this is to create two inline fields that will hold the captions, and inside the expression you address them with if statement / peek.

For example

Load * INLINE [

TimeFrame

MTD

YTD

];

 

Load * INLINE [

Department

Sales

Distribution

];

 

The expression will be as follows

OB =

if(TimeFrame='MTD',

        if(Department='Sales',sum(SalesMTD_OB ),sum(DistributionMTD_OB ),

        if(Department='Sales',sum(SalesYTD_OB ),sum(DistributionYTD_OB ))

 

I hope it helps,

Eliran.