Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
mugdhaojha
Contributor II
Contributor II

Create static column in Pivot table

Hi ,

I would like to create a table like the below screenshot where Columns in grey are dimensions in a  database table (Month-year is horizontally aligned), Columns in yellow are static and column in orange is the label of the expression e.g Samples taken = Sum(sample_taken).

I have currently saved the static part of the table in an excel sheet and loading it in the application and Summary column as expression but the expression is getting repeated at each KPI Level 1.

How can I achieve this using a pivot table?

PivotTable.PNG

Thanks in advance,

Mugdha.

3 Replies
pradosh_thakur
Master II
Master II

hi

if i understood correctly by static you mean Qlikview should not be allowed to select from those three column.

i can think of a few solutions here.

1: create a text box with transparent color and put it above those column.

2: add those three expression in set expression like sum({  < static column = {*}>}sample_taken)

PS: The second option might create problem if the static column are part of some hierarchy.

best of luck!

regards

Pradosh

Learning never stops.
mugdhaojha
Contributor II
Contributor II
Author

Thank you for your reply!

Apologies, I wasnt clear. By static column I mean those columns/ rows will be repeated for each LA (second column) in the Region.

KPI level2,Objective and Summary columns is in a hieracrchy.

I am not sure how I can achieve this in a pivot table since when adding Summary column as expression each of the expression is getting repeated for KPI level 2 and Objective but I would like to have Samples taken and Samples required expression under 12.a (KPI Level 2 column) and Sampling (Objective column) only for LA - LA1 and should not be repeated for other values of KPI level 2 and Objective.

Hope this makes sense.

PivotTable2.PNG

pradosh_thakur
Master II
Master II

do you have a sample qvw which you can post ?

Learning never stops.