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: 
Emma1
Contributor III
Contributor III

Excluding future quarters

Hi guys,

i have this script

[ Date.AutoCalendar.Quarter]&' : '& aggr(num(count(distinct [Amount])/count(total{<{ Date.AutoCalendar.Quarter]}>}
distinct [Amount]),'#,##0.00%'),
[Date.AutoCalendar.Quarter]))

It return the Amount for each quarter but for future quarters, it show zeros. How can i exclude any quarter that is still in future and return only past and present ones

 
 

 

 

3 Replies
Wlad_Masi
Employee
Employee

Hi @Emma1 where are you using this expression you provided us?
Quarters are in your auto calendar table, you may have to add to your expression a logic that respect your expression if quarter is equal or smaller actual quarter.

To help users find verified answers, please don't forget to mark a correct resolution or answer to your problem or question as correct.
dwforest
Specialist II
Specialist II

Change your calendar to not extend to dates in the future,

Emma1
Contributor III
Contributor III
Author

I am using this on a pie chart such that when you rotate the pie each slice shows data and percentage with needing to hover