Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Dynamic column in table

I wonder how to make a dynamic table depending on the number of selected data. Example: counting the total sales in the month. I would like to be shown in the columns of months, depending on the date range.

example 1

Scope of the date of January 1, 2014 to March 31, 2014

ProductJanuary 2014February 2014March 2014
Car12562,32456543,4585266,32

example 2

Scope of the date of 1 November 2013 to 31 March 2014

ProductNovember 2013December 2013January 2014February 2014March 2014
Car124564,32456463,14146232,23456,361456,36
5 Replies
tresesco
MVP
MVP

Try using pivot table.

Dimension1: Product

Dimension2: Months

Expression: Sum(Amount) // or something like that you would want

Then drag the second dimension column to the top.

MK_QSL
MVP
MVP

You can do the same using Conditional check of your selected month.

If you could provide some sample data would be helpful to give you answer...

sushil353
Master II
Master II

Hi,

Create a normal pivot table with the two dimensions. Then in the table, drag the date dimension header (you'll see a marker when you start dragging) to the top of the table, and the marker will change to horizontal. Drop it there and you will have a cross table.

HTH

Sushil

its_anandrjs

You can do this any straight table also with

Dimension:- Product,Month,Year

Expression:- Sum(Sales)

its_anandrjs

Take a Straight table or a pivot table

Dimension:-

Product

Month Year

Expression :-sum(Sales)

Take a snap shot for that

Pivottable.png