Calculation inconsistencies - Shiny app

I am trying to do some calculations based on month, day and hour as follows:

I get the following three plots with the above code:

Definitely the plots do not make sense since transactions per hour are much higher than transactions per day or transactions per month. Likewise, transactions per day are much higher than transactions per month, meaning that my calculations are wrong some where. I am trying to count the number of Items sold per month, day and hourly.

I have attached a data set example. Kindly assist in resolving my problem.


Chris[MBA_onlineSample.pdf (308.2 KB)|attachment](upload://vJ2vMLXTybwOnk2lv9QniR64GCR.pdf)


To help us help you, could you please prepare a reproducible example (reprex) illustrating your issue? Please have a look at this guide, to see how to create one:

Dear Andre

Many thanks for your response and assistance. I have just done some quick check on the figures presented in the three plots and and they tally, meaning that the calculations are ok.

Once again, thank you for your input, most appreciated



This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.