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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Ivak
Contributor
Contributor

Static Headers in Pivot Table

Hello All,

I have input like below:

C# Location Mrkt value
C1 Loc1 US 1
C1 Loc2 US 2
C2 Loc1 US 5
C2 Loc2 US 6
C2 Loc3 US 1


Trying to visualize above data (Location, Market, value) in Pivot table, C# in filter pane.
If user select 'C1' data from 'C#' from filter pane, I am expecting output like below:

Mrkt Loc1 Loc2 Loc3
USA 1 2 0
 
 

Headers should be static.
In Pivot:
Dimension as 'Mrkt'
Column as 'Location'
Measure as Sum(value).

I tried multiple approach like loading separate inline table for Location values with this expression Sum({<Location={'Loc1','Loc2','Loc3'}>}value), but not works.

Thank you in advance for your solutions.


Qlik Sense Enterprise on Windows 

Labels (1)
1 Solution

Accepted Solutions
MatheusC
Specialist II
Specialist II

Hi @Ivak 
This should return a value of zero to you, which in your example would be Loc3.

Sum(value) + sum({1} 0)


- Matheus

Did you find a solution to your question? Mark the solution as accepted and if you found it useful, press the like button!

View solution in original post

2 Replies
MatheusC
Specialist II
Specialist II

Hi @Ivak 
This should return a value of zero to you, which in your example would be Loc3.

Sum(value) + sum({1} 0)


- Matheus

Did you find a solution to your question? Mark the solution as accepted and if you found it useful, press the like button!
Ivak
Contributor
Contributor
Author

Thankyou @MatheusC , Its working!!