Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
helen_pip
Creator III
Creator III

Pivot problem - Current Month and Current Quarter stating same

Hello

I have a pivot table which shows the current_quarter which is built like this:

I am then able to bring in the Current_Quarter into my pivot table

 

applymap

('Quarters_Map', num(month(Today())), null()) AS

Current_Quarter

I then thought I would do the same for current_month which is built like this:

applymap('RunMonth', num(month(Today())), null()) AS Current_Month

However, the results come back the same in the pivot table.

RunMonth is showing 3 for June

Quarters_Map is showing 1  for Apr-June

So I do not understand why the 2 different fields are showing the same results

Can anyone make any suggestions?

Thanks

Helen

1 Reply
er_mohit
Master II
Master II

Try this for Current Quarter

Ceil(Month(Today())/3)