Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
kepiluna2
Contributor
Contributor

Is there a way to make dynamic labels for pivot table columns?

I have a pivot table that displays monthly quantities in transit, outstanding po quantities, demand, and inventory ending position. I need the labels to be dynamic and be a rolling calendar. So this month is July I want to see August through January, next month it should be September through February. The problem is i set the label to be a formula such as =month(today()) for the current month, but now I have to write that formula each time I need to reference that expression in another expression. Is there any work around?

2 Replies
Gabriel
Partner - Specialist III
Partner - Specialist III

Hi,

Create a variable and give the definition of the variable as the formula, then you can reference the variable anywhere you want to use the formula, see below.

LET vCurrMonth = MONTH(TODAY());

Hope it helps

Brett_Bleess
Former Employee
Former Employee

Check the following Design Blog post too, might be another avenue to pursue:

https://community.qlik.com/t5/Qlik-Design-Blog/The-As-Of-Table/ba-p/1466130

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.