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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Muralidhar
Contributor
Contributor

Keep the percentage of YTD static

Hi - I created a expression as shown below to get YTD percentage.

count (if([Completed on Time]='Yes',[Completed on Time]))/count([Completed on Time])

If I select a month, YTD percentage should not be changed (static). 

Any help is greatly appreciated.

Thank You

Muralidhar

Labels (1)
  • jira

1 Solution

Accepted Solutions
BrunPierre
Partner - Master II
Partner - Master II

Count({<Month=>}if([Completed on Time]='Yes',[Completed on Time]))/Count({<Month=>}[Completed on Time])

OR

Count({<[Completed on Time]={'Yes'},Month=>}[Completed on Time])/Count({<Month=>}[Completed on Time])

View solution in original post

2 Replies
BrunPierre
Partner - Master II
Partner - Master II

Count({<Month=>}if([Completed on Time]='Yes',[Completed on Time]))/Count({<Month=>}[Completed on Time])

OR

Count({<[Completed on Time]={'Yes'},Month=>}[Completed on Time])/Count({<Month=>}[Completed on Time])

Muralidhar
Contributor
Contributor
Author

Thanks much BrunPierre!