Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
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
Partner - Master

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
Partner - Master

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!