# Help with Rate Calculation

**URL:** <https://forum.knime.com/t/help-with-rate-calculation/43403>\
**Category:** KNIME Analytics Platform\
**Created:** [May 21, 2022, 2:07pm UTC](https://forum.knime.com/t/help-with-rate-calculation/43403 "2022-05-21T14:07:31Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![rogerius1st](https://forum-cdn.knime.com/user_avatar/forum.knime.com/rogerius1st/32/38975_2.png) [@rogerius1st](https://forum.knime.com/u/rogerius1st)\
**Post date:** [May 21, 2022, 2:07pm UTC](https://forum.knime.com/t/help-with-rate-calculation/43403/1 "2022-05-21T14:07:31Z")

</div>

Dear @gab1one,

I have a few files with Covid data divided by cities, and some columns of these tables have binary values (e.g., “hospitalized” (Y; N); “evolution” (recovered; death)).  
Also, I need to calculate the hospitalization (%) rate (=number of cases/cases that leaded patients to hospitalization_100); and lethality (%) rates (=number of cases/cases that leaded patients to death_100).  
So, I ask for your help on how to count all values in each column, and thereafter how to calculate these rates?  
The workflow is as follows:  
[Preproccess Covid data.knwf](https://forum.knime.com/uploads/short-url/awlK56rsLhidd0EkcmKhvJtutQO.knwf) (211.8 KB)  
BTW, I had to reset CSV reader, because the whole file wold be too big for this message, but the URL to CSV file is: \< [https://ti.saude.rs.gov.br/covid19/download](https://ti.saude.rs.gov.br/covid19/download) \>. It was written in Portuguese, and I upload a DOCX file to explain data, column headers, translations, etc.:  
[Terminology for columns headers - Covid Knime Project.docx](https://forum.knime.com/uploads/short-url/f5Z8n0U7nDoxch8Qb2xD0aw2Lx2.docx) (18.8 KB)  
Oh, I almost forgot to tell you: I had formerly normalized for “0” or “1” all binary values. My doubts are not on how to do this, but on counting different values, and on configuring nodes for calculating the rates.  
Can you help me with this task?  
Thanks in advance,  
Rogério.

---

<div class="post-metadata">

**Author:** ![ScottF](https://forum-cdn.knime.com/user_avatar/forum.knime.com/scottf/32/61316_2.png) [@ScottF](https://forum.knime.com/u/ScottF)\
**Post date:** [May 23, 2022, 2:47pm UTC](https://forum.knime.com/t/help-with-rate-calculation/43403/2 "2022-05-23T14:47:02Z")

</div>

Hi @rogerius1st -

I moved your question to its own topic since the other topic was quite old, and related to correlation anyway. Let’s see if the community can help 🙂

---

<div class="post-metadata">

**Author:** ![rogerius1st](https://forum-cdn.knime.com/user_avatar/forum.knime.com/rogerius1st/32/38975_2.png) [@rogerius1st](https://forum.knime.com/u/rogerius1st)\
**Post date:** [May 26, 2022, 1:13am UTC](https://forum.knime.com/t/help-with-rate-calculation/43403/3 "2022-05-26T01:13:45Z")

</div>

Thanks, Scott.  
Indeed, I had already seen some of your answers, and I expected to receive the needed help.  
The next steps, for me, are on two points:  
a) I need to plot and compare two time-series data (in two tables), with different variables, but one common primary key. Can you help me on finding the proper words to search for the adequate topic and help in the community?  
b) Second, my main goal in this research is to compare general Covid’s effects (as measured by data in the first table) on a particular market, where I have applied a survey with specific metrics for evaluating customer (and cash) inflows and outflows. Can you also help me in the same approach (i.e., finding the proper words to search for the adequate topic and help in the community)?

---

<div class="post-metadata">

**Author:** ![ScottF](https://forum-cdn.knime.com/user_avatar/forum.knime.com/scottf/32/61316_2.png) [@ScottF](https://forum.knime.com/u/ScottF)\
**Post date:** [May 27, 2022, 2:30pm UTC](https://forum.knime.com/t/help-with-rate-calculation/43403/4 "2022-05-27T14:30:13Z")

</div>

Hi @rogerius1st -

Is this question above related to what you’re already discussing in this thread?

> [@Compare two Time Series (TS)](https://forum.knime.com/t/compare-two-time-series-ts/43061/6):
>
> let’s see if I understand correctly. Each row of the dataset represents a case, which occurred in a certain year / month in a certain municipality. In the same row there is the population of the municipality, identical in each row that refers to that municipality. We want to calculate, for each municipality, year and month the incidence = (number of cases in the month / municipality population) \* 10,000 hospitalization rate lethality rate A - First we have to count the total cases in each m…

I think it is, yes? If so, please let me know, and I’ll close this thread to help keep the forum tidy.

---

<div class="post-metadata">

**Author:** ![rogerius1st](https://forum-cdn.knime.com/user_avatar/forum.knime.com/rogerius1st/32/38975_2.png) [@rogerius1st](https://forum.knime.com/u/rogerius1st)\
**Post date:** [June 16, 2022, 12:07am UTC](https://forum.knime.com/t/help-with-rate-calculation/43403/5 "2022-06-16T00:07:13Z")

</div>

Yes, Scott. This topic is related to the former ones.  
Indeed, there are still some unanswered questions, and I think I need some additional help from the Community. How should I behave in order to receive better answers? some of my questions require somewhat different approaches, and I hope that different Knimers can help me differently to solve each one of my questions…  
Thank you for your attention.  
B.R.,  
Rogério.

---

<div class="post-metadata">

**Author:** ![ScottF](https://forum-cdn.knime.com/user_avatar/forum.knime.com/scottf/32/61316_2.png) [@ScottF](https://forum.knime.com/u/ScottF)\
**Post date:** [June 16, 2022, 3:19pm UTC](https://forum.knime.com/t/help-with-rate-calculation/43403/6 "2022-06-16T15:19:11Z")

</div>

I’d say continue to post your questions in the other thread, so long as they are related to your same problem. If there are particular issues with which you still need more help, post as much detail as you can so that the community has something to work with.

In the meantime I will close this thread as a duplicate.

---

<div class="post-metadata">

**Author:** ![ScottF](https://forum-cdn.knime.com/user_avatar/forum.knime.com/scottf/32/61316_2.png) [@ScottF](https://forum.knime.com/u/ScottF)\
**Post date:** [June 16, 2022, 3:19pm UTC](https://forum.knime.com/t/help-with-rate-calculation/43403/7 "2022-06-16T15:19:14Z")

</div>


