Forum Discussion

Mehay's avatar
Mehay
Icon for Helper I rankHelper I
6 years ago

Extract today's data from the previous date

Hi all, 

 

I got stuck with 1 probably small problem, much appreciated if anyone could bring soluation to it.

So basically im building Coronavirus report getting my data from GSSEGIS Jon Hopkins uni.

I have connected through the web and got all three columns confirmed, deaths, and recoevries.

 

Data they provide is cumulative, thus said today's data of confirmed cases, for example, would include previous dates cases too.

 

What i need is to substract today's (latest) data from the previous date's data.

 

e.g. 

 

26 Aug 2020: 24,176,836 cases

25 Aug 2020: 23,889,150 cases

 

I NEED:

26 Aug 2020: 24,176,836 - 23,889,150  = 287,686 cases.

 

So to create a separate column where it would give me cases as of today only without culculating prev days data.

 

It should be quite easy I am sure, but my brain got so much tired already.

 

Thanks all in advance.

13 Replies