Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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!