Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
ahammadshafi
Creator
Creator

Dynamic columns based on calculation

Dear Experts:

Here is the requirement from my client.

They want to update a report monthly where the columns of a table will be generated and named dynamically based on a calculation.

For example, in the sales table they will have the following columns

Sample Data.PNG

The report will show the following

Requirement.PNG

In the report

  1. The first column will show the products which has some changes in sales against "Sales Today".

  2. Only those months will be shown where there is changes in sales

               Here, for Product "A" there is change (1 unit) against 3rd previous month.

                         for Product "B" there are changes in sales against 1st and 3rd month.

                         for Product "C" there are changes in sales against 1st and 3rd month.

               But there is no changes in sales against 2nd month - as a result the report didn't show anything like "Change against 2nd                month"

Seeking your opinions to achieve this requirement.

Sample data is attached.

Shafi

12 Replies
ahammadshafi
Creator
Creator
Author

Hi Varsha:

The data is supposed to come in proper month format.

Shafi.

varshavig12
Specialist
Specialist

Try this:

ahammadshafi
Creator
Creator
Author

Thanks Varsha.

I have got the idea.

Thanks to all for your kind support.