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: 
Not applicable

Calculating a numbered "month of lifecycle" dimension

Hi,

I am trying to calculate a dimension that will show the month of a customer's lifecycle.

e.g. A customer was activated on 3 April 2011. April 2011 will then become Month 1. October 2013 will be Month 31.

I have an activation date and usage periods (eg 201310), and tried to do this by:

  • =((year([Usage Period]) - year([Activation Date])) * 12) + (month([Usage Period]) - month([Activation Date]))

This did not work.

I am new to QlikView and enjoying it, but this is frustrating me. Any help will be greatly appreciated.

Cheers.

1 Reply
Gysbert_Wassenaar

That's probably calculated a lot easier in the script instead of as a (slow) calculated dimension. Can you post a document with some sample data? See this document for how to do that safely: Preparing examples for Upload - Reduction and Data Scrambling


talk is cheap, supply exceeds demand