Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Vichuf1
Contributor II
Contributor II

Dynamically Assign M1 , M2, M3 dynamically to certain time period in qlik sense

Dynamically Assign M1 , M2, M3 to certain time period in qlik sense

(Here M1 , M2, M3 are months  )

How can add calculated column to get the expected result as shown below:

Table:

Season IDStart YearEnd yearSeason monthSeason Month year
12019202010Oct-19
12019202011Nov-19
12019202012Dec-19
1201920201Jan-20
1201920202Feb-20
2201920196Jun-19
2201920197Jul-19
2201920198Aug-19
2201920199Sep-19
22019201910Oct-19
22019201911Nov-19

 

Expected result Column 6 "Calculated field"

Season IDStart YearEnd yearSeason monthSeason Month yearCalculated Field
12019202010Oct-19M1
12019202011Nov-19M2
12019202012Dec-19M3
1201920201Jan-20M4
1201920202Feb-20M5
2201920196Jun-19M1
2201920197Jul-19M2
2201920198Aug-19M3
2201920199Sep-19M4
22019201910Oct-19M5
22019201911Nov-19M6
Labels (2)
1 Solution

Accepted Solutions
Vichuf1
Contributor II
Contributor II
Author

Thank a lot Frank, that works perfectly for my scenario , You saved my day 🙂

View solution in original post

2 Replies
Frank_Hartmann
Master II
Master II

see attached qvw.

---------------------------------------------------------------------------------

Table:
LOAD RowNo() as Row,
[Season ID],
[Start Year],
[End year],
[Season month],
[Season Month year],
'M' & Autonumber([Season Month year],[Season ID]) as Test
FROM
[https://community.qlik.com/t5/Community-Corner/Dynamically-Assign-M1-M2-M3-dynamically-to-certain-ti...]
(html, codepage is 1252, embedded labels, table is @1) ;

-------------------------------------------------------------------------------------

Unbenannt.png

Vichuf1
Contributor II
Contributor II
Author

Thank a lot Frank, that works perfectly for my scenario , You saved my day 🙂